Metric 類別
建構函式
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
必要
|
|