Metric 類別
- 繼承
-
builtins.objectMetric
建構函式
Metric(name, value, extended_properties, schema_version='1.0')
參數
名稱 | Description |
---|---|
name
必要
|
計量的名稱。 |
value
必要
|
計量的值。 |
extended_properties
必要
|
字串字典到 Python 基本類型 (int、float、str) 。 |
schema_version
|
選擇性的計量架構版本。 如果未設定特定值,請將 設定為 METRIC_SCHEMA_VERSION_CUR。 預設值: 1.0
|
name
必要
|
計量的名稱。 |
value
必要
|
計量的值。 |
extended_properties
必要
|
字串字典到 Python 基本類型 (int、float、str) 。 |
schema_version
必要
|
選擇性的計量架構版本。 如果未設定特定值,請將 設定為 METRIC_SCHEMA_VERSION_CUR。 |
方法
add_extended_properties | |
get_extended_properties | |
validate_extended_properties_type |
add_extended_properties
add_extended_properties(ep)
參數
名稱 | Description |
---|---|
ep
必要
|
|
get_extended_properties
get_extended_properties()
validate_extended_properties_type
validate_extended_properties_type(key, value)
參數
名稱 | Description |
---|---|
key
必要
|
|
value
必要
|
|