文档目录

监控报警相关接口

时序数据(Metric)

获取所有metric元数据(GetAllMetricMetadata)

API请求

URLs
GET zstack/v1/zwatch/metrics/meta-data
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/metrics/meta-data?name=VMHAProcess
参数列表
名字 类型 位置 描述 可选值 起始版本
name (可选) String query 监控指标名称 3.9.0
namespace (可选) String query 监控指标命名空间 3.9.0
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3

API返回

返回示例
{
  "metrics": [
    {
      "namespace": "ZStack/VM",
      "name": "org.zstack.zwatch.datatype.Metric@4efa6b58",
      "description": "CPUIdleUtilization",
      "labelNames": [
        "VMUuid",
        "CPUNum"
      ],
      "driver": "PrometheusDatabaseDriver"
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
metrics List 详情参考metrics 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6
#metrics
名字 类型 描述 起始版本
namespace String 名字空间 2.3
name String 资源名称 2.3
description String 描述 3.9.0
labelNames List 标签名 2.3

SDK示例

Java SDK
GetAllMetricMetadataAction action = new GetAllMetricMetadataAction();
action.name = "VMHAProcess";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAllMetricMetadataAction.Result res = action.call();
Python SDK
GetAllMetricMetadataAction action = GetAllMetricMetadataAction()
action.name = "VMHAProcess"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAllMetricMetadataAction.Result res = action.call()

获取metric的标签值(GetMetricLabelValue)

API请求

URLs
GET zstack/v1/zwatch/metrics/label-values
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/metrics/label-values?namespace=ZStack/VM&metricName=CPUIdleUtilization&startTime=1.58806818E9&endTime=1.58806824E9&labelNames=CPUNum&filterLabels=VMUuid=e47f7145f4cd4fca8e2856038ecdf3e1
参数列表
名字 类型 位置 描述 可选值 起始版本
namespace String query 名字空间名称 2.3
metricName String query 监控指标名称 2.3
labelNames List query 要获取值得标签名列表 2.3
filterLabels (可选) List query 标签过滤器列表,例如可以指定标签HostUuid=e47f7145f4cd4fca8e2856038ecdf3e1来选择特定物理机的,labelNames中指定标签的值 2.3
startTime (可选) Long query 起始时间 3.9.0
endTime (可选) Long query 结束时间 3.9.0
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3

API返回

返回示例
{
  "labels": [
    {
      "VMUuid": "e47f7145f4cd4fca8e2856038ecdf3e1",
      "CPUNum": "1"
    }
  ]
}
名字 类型 描述 起始版本
labels List 标签值 0.6
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 0.6
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6

SDK示例

Java SDK
GetMetricLabelValueAction action = new GetMetricLabelValueAction();
action.namespace = "ZStack/VM";
action.metricName = "CPUIdleUtilization";
action.startTime = 1.58806818E9;
action.endTime = 1.58806824E9;
action.labelNames = asList("CPUNum");
action.filterLabels = asList("VMUuid=e47f7145f4cd4fca8e2856038ecdf3e1");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetMetricLabelValueAction.Result res = action.call();
Python SDK
GetMetricLabelValueAction action = GetMetricLabelValueAction()
action.namespace = "ZStack/VM"
action.metricName = "CPUIdleUtilization"
action.startTime = 1.58806818E9
action.endTime = 1.58806824E9
action.labelNames = [CPUNum]
action.filterLabels = [VMUuid=e47f7145f4cd4fca8e2856038ecdf3e1]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetMetricLabelValueAction.Result res = action.call()

获取metric数据(GetMetricData)

API请求

URLs
GET zstack/v1/zwatch/metrics
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/metrics?namespace=ZStack/VM&metricName=CPUIdleUtilization&startTime=
1.588831825415E12&period=30.0&labels=VMUuid=b89391d8b93b470a99055001a4383cc7&labels=CPUNum=4
参数列表
名字 类型 位置 描述 可选值 起始版本
namespace String query 名字空间 2.3
metricName String query 监控项 2.3
startTime (可选) Long query 起始时间 2.3
endTime (可选) Long query 结束时间 2.3
period (可选) Integer query 数据精度 2.3
labels (可选) List query 过滤标签 2.3
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3
functions (可选) List query 函数列表 2.3
offsetAheadOfCurrentTime (可选) Long query 2.3

API返回

返回示例
{
  "data": [
    {
      "value": 101.02,
      "time": 1.519829245957E12,
      "labels": {
        "VMUuid": "9304ab73d9b84852ad1d5061fd4760a5"
      }
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
data List 详情参考data 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6
#data
名字 类型 描述 起始版本
value double 监控值 0.6
time long 记录生成时间 0.6
labels Map 标签 0.6

SDK示例

Java SDK
GetMetricDataAction action = new GetMetricDataAction();
action.namespace = "ZStack/VM";
action.metricName = "CPUIdleUtilization";
action.startTime = 1.519829246005E12;
action.period = 30.0;
action.labels = asList("VMUuid=3bb5b754320a4331bd907f10d8683568","CPUNum=4");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetMetricDataAction.Result res = action.call();
Python SDK
GetMetricDataAction action = GetMetricDataAction()
action.namespace = "ZStack/VM"
action.metricName = "CPUIdleUtilization"
action.startTime = 1.519829246005E12
action.period = 30.0
action.labels = [VMUuid=b577cfe6aad447c1b2e793fdc6d7975b, CPUNum=4]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetMetricDataAction.Result res = action.call()

存入自定义metric数据(PutMetricData)

API请求

URLs
POST zstack/v1/zwatch/metrics
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "namespace": "MyNameSpace",
    "data": [
      {
        "metricName": "UserDefinedName",
        "value": 100.01,
        "labels": {
          "label1": "value1"
        }
      }
    ]
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"namespace":"MyNameSpace","data":[{"metricName":"UserDefinedName","value":100.01,"labels":{"label1":"value1"}}]}}' \
http://localhost:8080/zstack/v1/zwatch/metrics
参数列表
名字 类型 位置 描述 可选值 起始版本
namespace String body(包含在params结构中) 自定义名字空间名称 2.3
data List body(包含在params结构中) 数据 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
    "error": {
        "code": "SYS.1001",
        "description": "A message or a operation timeout",
        "details": "Create VM on KVM timeout after 300s"
    }
}

SDK示例

Java SDK
PutMetricDataAction action = new PutMetricDataAction();
action.namespace = "MyNameSpace";
action.data = asList([metricName:UserDefinedName, value:100.01, labels:[label1:value1]]);
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
PutMetricDataAction.Result res = action.call();
Python SDK
PutMetricDataAction action = PutMetricDataAction()
action.namespace = "MyNameSpace"
action.data = [[metricName:UserDefinedName, value:100.01, labels:[label1:value1]]]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
PutMetricDataAction.Result res = action.call()

事件(Event)

获取所有event元数据(GetAllEventMetadata)

API请求

URLs
GET zstack/v1/zwatch/events/meta-data
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/events/meta-data?name=VMHAProcess
参数列表
名字 类型 位置 描述 可选值 起始版本
name (可选) String query 事件名称 3.9.0
namespace (可选) String query 事件命名空间 3.9.0
systemTags (可选) List query 系统标签 0.6
userTags (可选) List query 用户标签 0.6

API返回

返回示例
{
  "events": [
    {
      "namespace": "ZStack/VM",
      "name": "org.zstack.zwatch.datatype.EventFamily@631b5229",
      "description": "VMHAProcess",
      "labelNames": [
        "HAProcess",
        "HADetails"
      ]
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
events List 详情参考events 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6
#events
名字 类型 描述 起始版本
namespace String 名字空间 2.3
name String 资源名称 2.3
description String 描述 3.9.0
labelNames List 标签名 2.3

SDK示例

Java SDK
GetAllEventMetadataAction action = new GetAllEventMetadataAction();
action.name = "VMHAProcess";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAllEventMetadataAction.Result res = action.call();
Python SDK
GetAllEventMetadataAction action = GetAllEventMetadataAction()
action.name = "VMHAProcess"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAllEventMetadataAction.Result res = action.call()

获取事件(GetEventData)

API请求

URLs
GET zstack/v1/zwatch/events
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/events?startTime=1.596444516295E12&limit=10.0&conditions=HostUuid=99ca12b945a8489c93a3412cbc744193&count=false&start=0.0
参数列表
名字 类型 位置 描述 可选值 起始版本
startTime (可选) Long query 起始时间 2.3
endTime (可选) Long query 结束时间 2.3
limit (可选) Integer query 最大返回条数 2.3
offsetAheadOfCurrentTime (可选) Long query 早于当前时间的毫秒数,例如:查询最近一小时的消息,则传入3600000 3.3.0
conditions (可选) List query 查询条件 3.3.0
count (可选) boolean query 是否查询事件数量 3.3.0
endpointUuid (可选) String query 接收端Uuid 3.10.0
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3

API返回

返回示例
{
  "events": [
    {
      "namespace": "ZStack/VM",
      "name": "org.zstack.zwatch.datatype.EventFamily@2c24d960",
      "labels": {},
      "emergencyLevel": "Normal",
      "resourceId": "b7bbe5fb9ab049c5a36bf8a646471cff",
      "resourceName": "VmInstanceVO",
      "time": 1.596444516324E12
    }
  ]
}
名字 类型 描述 起始版本
total Long 事件数目 3.3.0
success boolean 3.3.0
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
events List 详情参考events 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#events
名字 类型 描述 起始版本
namespace String 名字空间 2.3
name String 事件名 2.3
labels Map 标签 2.3
resourceId String 产生事件资源的ID(如果为ZStack Cloud资源则为资源UUID) 2.3
resourceName String 资源名称 2.3
error String 如果事件代表错误,该字段为错误详情 2.3
time long 事件产生时间 2.3
dataUuid String 消息UUID 3.3
accountUuid String 账户UUID 3.3
emergencyLevel EmergencyLevel 详情参考emergencyLevel 2.3
#emergencyLevel
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3

SDK示例

Java SDK
GetEventDataAction action = new GetEventDataAction();
action.startTime = 1.596444516404E12;
action.limit = 10.0;
action.conditions = asList("HostUuid=00d80d7c47124d6d8e2c7736e9af1c34");
action.count = false;
action.start = 0.0;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetEventDataAction.Result res = action.call();
Python SDK
GetEventDataAction action = GetEventDataAction()
action.startTime = 1.596444516405E12
action.limit = 10.0
action.conditions = [HostUuid=7581302347d0439fbdde32b914e2449a]
action.count = false
action.start = 0.0
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetEventDataAction.Result res = action.call()

更新事件消息(UpdateEventData)

API请求

URLs
PUT zstack/v1/zwatch/events/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateEventData": {
    "dataUuid": "a24e9918fdf83d0aae19846bd52411e4",
    "updateMode": "OnlyOne",
    "readStatus": "Read"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateEventData":{"dataUuid":"a24e9918fdf83d0aae19846bd52411e4","updateMode":"OnlyOne","readStatus":"Read"}}' http://localhost:8080/zstack/v1/zwatch/events/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
dataUuid (可选) String body(包含在updateEventData结构中) 资源的UUID,唯一标示该资源 3.3.0
dataStartTime (可选) Long body(包含在updateEventData结构中) 选择目标消息的起始时间,updateMode需要传入InRange 3.3.0
dataEndTime (可选) Long body(包含在updateEventData结构中) 选择目标消息的结束时间,updateMode需要传入InRange 3.3.0
updateMode String body(包含在updateEventData结构中) 选择更新目标消息的范围,OnlyOne表示只更新指定的消息,InRange表示更新某个时间范围产生的消息, All表示更新所有消息
  • OnlyOne
  • InRange
  • All
3.3.0
readStatus (可选) String body(包含在updateEventData结构中) 更新消息已读状态
  • Read
  • Unread
3.3.0
systemTags (可选) List body 系统标签 3.3.0
userTags (可选) List body 用户标签 3.3.0

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK
UpdateEventDataAction action = new UpdateEventDataAction();
action.dataUuid = "a24e9918fdf83d0aae19846bd52411e4";
action.updateMode = "OnlyOne";
action.readStatus = "Read";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateEventDataAction.Result res = action.call();
Python SDK
UpdateEventDataAction action = UpdateEventDataAction()
action.dataUuid = "a24e9918fdf83d0aae19846bd52411e4"
action.updateMode = "OnlyOne"
action.readStatus = "Read"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateEventDataAction.Result res = action.call()

查询事件报警器报警记录(QueryEventRecord)

API请求

URLs
GET zstack/v1/zwatch/event-records
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/event-records?q=dataUuid=bcb5816592553e04a101e37c69d1837a

可查询字段

运行CLI命令行工具,输入QueryEventRecord并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

返回示例
{
  "inventories": [
    {
      "id": 1.0,
      "createTime": 1.510669257141E12,
      "namespace": "ZStack/PrimaryStorage",
      "name": "PrimaryStorageDisconnected",
      "emergencyLevel": "Emergent",
      "resourceId": "ff1d1d9429da35cfb3d4dfad772d0f3a",
      "dataUuid": "64f3d04e7144348db07585dfc9293582",
      "accountUuid": "1f2c621ce02d37268da28bb368f6b265",
      "subscriptionUuid": "e30c7668d9c13585915da7e6442f6749",
      "readStatus": true,
      "labels": "{\"Error\":\"No Host state is Enabled, Please check the availability of the host\"}"
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 4.1.0
inventories List 详情参考inventories 4.1.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 4.1.0
description String 错误的概要描述 4.1.0
details String 错误的详细信息 4.1.0
elaboration String 保留字段,默认为null 4.1.0
opaque LinkedHashMap 保留字段,默认为null 4.1.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 4.1.0
#inventories
名字 类型 描述 起始版本
time long 时间 4.1.0
count long 数量 4.1.0
id long 消息ID 4.1.0
createTime long 创建时间 4.1.0
namespace String 名字空间 4.1.0
name String 名称 4.1.0
emergencyLevel String 报警等级 4.1.0
resourceId String 资源UUID 4.1.0
error String 错误信息 4.1.0
dataUuid String 消息UUID 4.1.0
accountUuid String 账户UUID 4.1.0
subscriptionUuid String 事件报警器UUID 4.1.0
readStatus Boolean 已读状态 4.1.0
labels String 标签列表 4.1.0

SDK示例

Java SDK
QueryEventRecordAction action = new QueryEventRecordAction();
action.conditions = asList("dataUuid=1e5badf2a4a43bae91b16dbd1aee0c0b");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryEventRecordAction.Result res = action.call();
Python SDK
QueryEventRecordAction action = QueryEventRecordAction()
action.conditions = ["dataUuid=60290f65736a317cb52b0721d90ce315"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryEventRecordAction.Result res = action.call()

报警器(Alarm)

创建报警器 (CreateAlarm)

API请求

URLs
POST zstack/v1/zwatch/alarms
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@53fa9b19",
    "threshold": 60.0,
    "repeatInterval": 1800.0,
    "enableRecovery": true,
    "labels": [
      {
        "key": "VMUuid",
        "value": "ca6b4ad7a0e446c6a8c4f52d93215f6e",
        "op": "Equal"
      }
    ],
    "actions": [
      {
        "actionUuid": "19b7cfaf6134408897d95588b01308fe",
        "actionType": "sns"
      }
    ],
    "repeatCount": -1.0,
    "type": "Any"
    "enableRecovery": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"name":"VM CPU Alarm","comparisonOperator":"LessThanOrEqualTo","period":60.0,"namespace":"ZStack/VM","metricName":"org.zstack.zwatch.datatype.Metric@53fa9b19","threshold":60.0,"repeatInterval":1800.0,"labels":[{"key":"VMUuid","value":"61f6b705fcb944df8138ea6b52b0b4a6","op":"Equal"}],"actions":[{"actionUuid":"699541db497e4d3e9c49020c2dad8d6c","actionType":"sns"}],"repeatCount":-1.0,"type":"Any","enableRecovery":true}}' http://localhost:8080/zstack/v1/zwatch/alarms
参数列表
名字 类型 位置 描述 可选值 起始版本
name String body(包含在params结构中) 资源名称 2.3
description (可选) String body(包含在params结构中) 资源的详细描述 2.3
comparisonOperator String body(包含在params结构中) 阈值比较符
  • GreaterThanOrEqualTo
  • GreaterThan
  • LessThan
  • LessThanOrEqualTo
2.3
period(可选) Integer body(包含在params结构中) 阈值持续时间 2.3
namespace String body(包含在params结构中) 名字空间 2.3
metricName String body(包含在params结构中) 监控项名 2.3
threshold Double body(包含在params结构中) 阈值 2.3
repeatInterval (可选) Integer body(包含在params结构中) 报警重复时间 2.3
labels (可选) List body(包含在params结构中) 标签列表 2.3
actions (可选) List body(包含在params结构中) 报警动作列表 2.3
resourceUuid (可选) String body(包含在params结构中) 2.3
repeatCount (可选) Integer body(包含在params结构中) 报警重复次数 3.3.0
type (可选) String body(包含在params结构中) 报警器类型 3.3.0
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3
enableRecovery Boolean body(包含在params结构中) 开启恢复通知 3.4.0
emergencyLevel (可选) String body(包含在params结构中) 报警等级
  • Emergent
  • Important
  • Normal
3.8.0

API返回

返回示例
{
  "inventory": {
    "uuid": "6ff094db7e8b4640880751c5a17e7b63",
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@c2e79f0",
    "threshold": 30.0,
    "repeatInterval": 1800.0,
    "repeatCount": -1.0,
    "status": "Alarm",
    "state": "Enabled",
    "enableRecovery": true,
    "createDate": "Jul 6, 2018 1:51:02 PM",
    "lastOpDate": "Jul 6, 2018 1:51:02 PM",
    "labels": [
      {
        "uuid": "cccd980c3bb84f4486d96a960eb08edb",
        "key": "VMUuid",
        "operator": "\u003d",
        "value": "f486fd81583747459d8a6cd47f9228e5"
      }
    ],
    "actions": [
      {
        "alarmUuid": "8a6a98e3cc484388a746d725265886b3",
        "actionType": "sns",
        "actionUuid": "86a2b51fbc7f406c906711081852fa49"
      }
    ]
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
enableRecovery Boolean 开启恢复通知 3.4.0
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
CreateAlarmAction action = new CreateAlarmAction();
action.name = "VM CPU Alarm";
action.comparisonOperator = "LessThanOrEqualTo";
action.period = 60.0;
action.namespace = "ZStack/VM";
action.metricName = "org.zstack.zwatch.datatype.Metric@c2e79f0";
action.threshold = 60.0;
action.repeatInterval = 1800.0;
action.labels = asList([key:VMUuid, value:45821a26f579447fa77bfb82b1b0268e, op:Equal]);
action.actions = asList([actionUuid:8e06ec09862c46c3aaf9fc6337815ffb, actionType:sns]);
action.repeatCount = -1.0;
action.type = "Any";
action.enableRecovery = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CreateAlarmAction.Result res = action.call();
Python SDK
CreateAlarmAction action = CreateAlarmAction()
action.name = "VM CPU Alarm"
action.comparisonOperator = "LessThanOrEqualTo"
action.period = 60.0
action.namespace = "ZStack/VM"
action.metricName = "org.zstack.zwatch.datatype.Metric@c2e79f0"
action.threshold = 60.0
action.repeatInterval = 1800.0
action.labels = [[key:VMUuid, value:7dd44bfe750f42859528b27ef90f1412, op:Equal]]
action.actions = [[actionUuid:b1acb139666140d09f4f93b8dd96f49f, actionType:sns]]
action.repeatCount = -1.0
action.type = "Any"
action.enableRecovery = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
CreateAlarmAction.Result res = action.call()

删除报警器(DeleteAlarm)

API请求

URLs
DELETE zstack/v1/zwatch/alarms/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/zwatch/alarms/2aae360b1240374696d79a0cca10bf24
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
deleteMode (可选) String body 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK
DeleteAlarmAction action = new DeleteAlarmAction();
action.uuid = "2aae360b1240374696d79a0cca10bf24";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DeleteAlarmAction.Result res = action.call();
Python SDK
DeleteAlarmAction action = DeleteAlarmAction()
action.uuid = "2aae360b1240374696d79a0cca10bf24"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DeleteAlarmAction.Result res = action.call()

修改报警器 (UpdateAlarm)

API请求

URLs
PUT zstack/v1/zwatch/alarms/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateAlarm": {
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "enableRecovery": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateAlarm":{"name":"VM CPU Alarm","comparisonOperator":"LessThanOrEqualTo","period":60.0,"enableRecovery":true}}' http://localhost:8080/zstack/v1/zwatch/alarms/28397feb3d083fdc9346edb066fbf589/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
name (可选) String body(包含在updateAlarm结构中) 资源名称 2.3
description (可选) String body(包含在updateAlarm结构中) 资源的详细描述 2.3
comparisonOperator (可选) String body(包含在updateAlarm结构中) 阈值比较符
  • GreaterThanOrEqualTo
  • GreaterThan
  • LessThan
  • LessThanOrEqualTo
2.3
period (可选) Integer body(包含在updateAlarm结构中) 阈值持续时间 2.3
threshold (可选) Double body(包含在updateAlarm结构中) 阈值 2.3
repeatInterval (可选) Integer body(包含在updateAlarm结构中) 报警重复时间 2.3
repeatCount (可选) Integer body(包含在updateAlarm结构中) 报警重复次数 3.3.0
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3
repeatCount (可选) Integer body(包含在updateAlarm结构中) 报警重复次数 3.2
enableRecovery (可选) Boolean 开启恢复通知 3.4.0
emergencyLevel (可选) String body(包含在updateAlarm结构中) 报警等级
  • Emergent
  • Important
  • Normal
3.8.0

API返回

返回示例
{
  "inventory": {
    "uuid": "33e642a1eb3c4f27a7da7acc5891de0a",
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@22c0dd63",
    "threshold": 30.0,
    "repeatInterval": 1800.0,
    "repeatCount": -1.0,
    "status": "Alarm",
    "state": "Enabled",
    "createDate": "Jan 8, 2019 4:11:27 PM",
    "lastOpDate": "Jan 8, 2019 4:11:27 PM",
    "labels": [
      {
        "uuid": "c4da2db2fa454368a3a05016ae8c8070",
        "key": "VMUuid",
        "operator": "\u003d",
        "value": "396d863211e446938ea01eb10bc9fd18"
      }
    ],
    "actions": [
      {
        "alarmUuid": "0d18a844bbf544bb914ab9287651f59f",
        "actionType": "sns",
        "actionUuid": "17b884822b284e6e9a0b67307a28955c"
      }
    ]
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
enableRecovery Boolean 开启恢复通知 3.4.0
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
UpdateAlarmAction action = new UpdateAlarmAction();
action.uuid = "28397feb3d083fdc9346edb066fbf589";
action.name = "VM CPU Alarm";
action.comparisonOperator = "LessThanOrEqualTo";
action.period = 60.0;
action.enableRecovery = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAlarmAction.Result res = action.call();
Python SDK
UpdateAlarmAction action = UpdateAlarmAction()
action.uuid = "28397feb3d083fdc9346edb066fbf589"
action.name = "VM CPU Alarm"
action.comparisonOperator = "LessThanOrEqualTo"
action.period = 60.0
action.enableRecovery = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAlarmAction.Result res = action.call()

修改事件报警器 (UpdateSubscribeEvent)

API请求

URLs
PUT zstack/v1/zwatch/events/subscriptions/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateSubscribeEvent": {
    "emergencyLevel": "Emergent"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateSubscribeEvent":{"emergencyLevel":"Emergent"}}' http://localhost:8080/zstack/v1/zwatch/events/subscriptions/37fc1fcc0fa93fb493702469039edbfb/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 事件报警器UUID 3.8.0
emergencyLevel (可选) String body(包含在updateSubscribeEvent结构中) 报警等级
  • Emergent
  • Important
  • Normal
3.8.0
systemTags (可选) List body 3.8.0
userTags (可选) List body 3.8.0

API返回

返回示例:
{
  "inventory": {
    "uuid": "d1b38b37691948218df07900a2c1c065",
    "name": "vm_state_change_event",
    "namespace": "ZStack/VM",
    "eventName": "org.zstack.zwatch.datatype.EventFamily@35324244",
    "state": "Enabled",
    "actions": [
      {
        "subscriptionUuid": "30d1075270c94f6e9312c1a4404cc67a",
        "actionType": "sns",
        "actionUuid": "33308113390a472286df32a99cd477ef"
      }
    ],
    "labels": [
      {
        "uuid": "26246baade39495c99d018d826ae576e",
        "key": "DestinationHostUuid",
        "operator": "Equal",
        "value": "79e249b6995a4c819d8e6cd33798135a"
      }
    ],
    "lastOpDate": "Jan 11, 2020 11:48:35 PM",
    "createDate": "Jan 11, 2020 11:48:35 PM",
    "emergencyLevel": "Emergent"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 3.8.0
inventory EventSubscriptionInventory 详情参考inventory 3.8.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 3.8.0
description String 错误的概要描述 3.8.0
details String 错误的详细信息 3.8.0
elaboration String 保留字段,默认为null 3.8.0
opaque LinkedHashMap 保留字段,默认为null 3.8.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 3.8.0
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 3.8.0
name String 资源名称 3.8.0
namespace String 名字空间 3.8.0
eventName String 事件名 3.8.0
lastOpDate Timestamp 最后一次修改时间 3.8.0
createDate Timestamp 创建时间 3.8.0
emergencyLevel String 报警等级 3.8.0
state EventSubscriptionState 详情参考state 3.8.0
actions List 详情参考actions 3.8.0
labels List 详情参考labels 3.8.0
#state
名字 类型 描述 起始版本
name String 资源名称 3.8.0
ordinal int 3.8.0
#actions
名字 类型 描述 起始版本
subscriptionUuid String 事件订阅UUID 3.8.0
actionType String 动作类型 3.8.0
actionUuid String 动作UUID 3.8.0
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 3.8.0
key String 标签名 3.8.0
value String 标签值 3.8.0
operator Operator 详情参考operator 3.8.0
#operator
名字 类型 描述 起始版本
op String 3.8.0
name String 资源名称 3.8.0
ordinal int 3.8.0

SDK示例

Java SDK
UpdateSubscribeEventAction action = new UpdateSubscribeEventAction();
action.uuid = "37fc1fcc0fa93fb493702469039edbfb";
action.emergencyLevel = "Emergent";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateSubscribeEventAction.Result res = action.call();
Python SDK
UpdateSubscribeEventAction action = UpdateSubscribeEventAction()
action.uuid = "37fc1fcc0fa93fb493702469039edbfb"
action.emergencyLevel = "Emergent"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateSubscribeEventAction.Result res = action.call()

增加报警动作 (AddActionToAlarm)

API请求

URLs
POST zstack/v1/zwatch/alarms/{alarmUuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "actionUuid": "a48c9fa0454238a4b731279b92d8bad1",
    "actionType": "sns"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"actionUuid":"a48c9fa0454238a4b731279b92d8bad1","actionType":"sns"}}' http://localhost:8080/zstack/v1/zwatch/alarms/3edde2bd29493568a2640f75d218ed05/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
alarmUuid String url 报警器UUID 2.3
actionUuid String body(包含在params结构中) 报警动作UUID 2.3
actionType String body(包含在params结构中) 报警动作类型 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "6b9ce7e8a6c04476aa22ce6c851a7f80",
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@565e1ebe",
    "threshold": 30.0,
    "repeatInterval": 1800.0,
    "status": "Alarm",
    "state": "Enabled",
    "createDate": "Jul 6, 2018 1:50:39 PM",
    "lastOpDate": "Jul 6, 2018 1:50:39 PM",
    "labels": [
      {
        "uuid": "f183fec66c3d40938621568943f4c0bf",
        "key": "VMUuid",
        "operator": "\u003d",
        "value": "7d46ab7f0f104ad0908f23d648bcaa9e"
      }
    ],
    "actions": [
      {
        "alarmUuid": "7379b3951c9f4c82a0571cc55ebc98b3",
        "actionType": "sns",
        "actionUuid": "27e18067eb614fd4bcb047c008e3a4c0"
      }
    ]
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
AddActionToAlarmAction action = new AddActionToAlarmAction();
action.alarmUuid = "3edde2bd29493568a2640f75d218ed05";
action.actionUuid = "a48c9fa0454238a4b731279b92d8bad1";
action.actionType = "sns";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
AddActionToAlarmAction.Result res = action.call();
Python SDK
AddActionToAlarmAction action = AddActionToAlarmAction()
action.alarmUuid = "3edde2bd29493568a2640f75d218ed05"
action.actionUuid = "a48c9fa0454238a4b731279b92d8bad1"
action.actionType = "sns"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
AddActionToAlarmAction.Result res = action.call()

删除报警动作 (RemoveActionFromAlarm)

API请求

URLs
DELETE zstack/v1/zwatch/alarms/{alarmUuid}/actions/{actionUuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/zwatch/alarms/2c95bdf5490131bbb421622579b59eb8/actions/41c582ab1cea31d5addd02bb00bb173d
参数列表
名字 类型 位置 描述 可选值 起始版本
alarmUuid String url 报警器UUID 2.3
actionUuid String url 报警动作UUID 2.3
deleteMode (可选) String body 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "3f753a2f9dd44becb0435b2a517fd5d4",
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@565e1ebe",
    "threshold": 30.0,
    "repeatInterval": 1800.0,
    "status": "Alarm",
    "state": "Enabled",
    "createDate": "Jul 6, 2018 1:50:59 PM",
    "lastOpDate": "Jul 6, 2018 1:50:59 PM",
    "labels": [
      {
        "uuid": "cf7ff04d570f4f509e6b22851ceb231d",
        "key": "VMUuid",
        "operator": "\u003d",
        "value": "cda155f903f1417f951578ea74623f5e"
      }
    ],
    "actions": [
      {
        "alarmUuid": "5d2a502edc8d4c34b90ae499c7fdb437",
        "actionType": "sns",
        "actionUuid": "4b7903efe370462aab75bb5890971e6d"
      }
    ]
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
RemoveActionFromAlarmAction action = new RemoveActionFromAlarmAction();
action.alarmUuid = "2c95bdf5490131bbb421622579b59eb8";
action.actionUuid = "41c582ab1cea31d5addd02bb00bb173d";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RemoveActionFromAlarmAction.Result res = action.call();
Python SDK
RemoveActionFromAlarmAction action = RemoveActionFromAlarmAction()
action.alarmUuid = "2c95bdf5490131bbb421622579b59eb8"
action.actionUuid = "41c582ab1cea31d5addd02bb00bb173d"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RemoveActionFromAlarmAction.Result res = action.call()

增加标签到报警器(AddLabelToAlarm)

API请求

URLs
POST zstack/v1/zwatch/alarms/{alarmUuid}/labels
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "key": "VMUuid",
    "value": "2840f151485641cca48b190ebb989cbf",
    "operator": "Equal"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"key":"VMUuid","value":"165af818089b4e9f8c07691de549f8d4","operator":"Equal"}}' http://localhost:8080/zstack/v1/zwatch/alarms/00b90ca9d59d3f539530fbcc8572c403/labels
参数列表
名字 类型 位置 描述 可选值 起始版本
alarmUuid String url 报警器UUID 2.3
key String body(包含在params结构中) 标签键 2.3
value String body(包含在params结构中) 标签值 2.3
operator String body(包含在params结构中) 操作符
  • Regex
  • Equal
2.3
resourceUuid (可选) String body(包含在params结构中) 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "3f54b760c8d64e17bc282258335b718a",
    "key": "VMUuid",
    "operator": "\u003d",
    "value": "dd5b28c103594573b7bb21a02cb000c4"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
AddLabelToAlarmAction action = new AddLabelToAlarmAction();
action.alarmUuid = "00b90ca9d59d3f539530fbcc8572c403";
action.key = "VMUuid";
action.value = "bfaa02ec5c37490d829ae95bebf15b78";
action.operator = "Equal";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
AddLabelToAlarmAction.Result res = action.call();
Python SDK
AddLabelToAlarmAction action = AddLabelToAlarmAction()
action.alarmUuid = "00b90ca9d59d3f539530fbcc8572c403"
action.key = "VMUuid"
action.value = "b4eb5d369bfb45719fbe862484011563"
action.operator = "Equal"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
AddLabelToAlarmAction.Result res = action.call()

修改报警器标签(UpdateAlarmLabel)

API请求

URLs
PUT zstack/v1/zwatch/alarms/labels/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateAlarmLabel": {
    "key": "VMUuid",
    "value": "e9859e9eb51e4ea583a7c529407208a2",
    "operator": "Equal"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateAlarmLabel":{"key":"VMUuid","value":"59ab62f070784eb2b0d98f0d12386f0d","operator":"Equal"}}' http://localhost:8080/zstack/v1/zwatch/alarms/labels/3c228226ca213c18b54627668dd37d80/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 3.3
key String body(包含在updateAlarmLabel结构中) 标签键 3.3
value String body(包含在updateAlarmLabel结构中) 标签值 3.3
operator String body(包含在updateAlarmLabel结构中) 标签操作符
  • Regex
  • Equal
3.3
systemTags (可选) List body 系统标签 3.3
userTags (可选) List body 用户标签 3.3

API返回

返回示例
{
  "inventory": {
    "uuid": "5ea6d350f0e64d0b9467d033e9c6d052",
    "key": "VMUuid",
    "operator": "\u003d",
    "value": "35956236f261467cb2cef1db8626024e"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 3.3.0
inventory AlarmLabelInventory 详情参考inventory 3.3.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 3.3.0
description String 错误的概要描述 3.3.0
details String 错误的详细信息 3.3.0
elaboration String 保留字段,默认为null 3.3.0
opaque LinkedHashMap 保留字段,默认为null 3.3.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 3.3.0
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 3.3.0
key String 3.3.0
operator String 3.3.0
value String 3.3.0

SDK示例

Java SDK
UpdateAlarmLabelAction action = new UpdateAlarmLabelAction();
action.uuid = "3c228226ca213c18b54627668dd37d80";
action.key = "VMUuid";
action.value = "1a33d5ce225241e0b2cbc80123e36351";
action.operator = "Equal";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAlarmLabelAction.Result res = action.call();
Python SDK
UpdateAlarmLabelAction action = UpdateAlarmLabelAction()
action.uuid = "3c228226ca213c18b54627668dd37d80"
action.key = "VMUuid"
action.value = "20034c6b21a24918912857c8ed923c6b"
action.operator = "Equal"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAlarmLabelAction.Result res = action.call()

从报警器上删除标签 (RemoveLabelFromAlarm)

API请求

URLs
DELETE zstack/v1/zwatch/alarms/labels/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/zwatch/alarms/labels/160037fc792d3815ba25fe8a48d1b237
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
deleteMode (可选) String body 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK
RemoveLabelFromAlarmAction action = new RemoveLabelFromAlarmAction();
action.uuid = "160037fc792d3815ba25fe8a48d1b237";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RemoveLabelFromAlarmAction.Result res = action.call();
Python SDK
RemoveLabelFromAlarmAction action = RemoveLabelFromAlarmAction()
action.uuid = "160037fc792d3815ba25fe8a48d1b237"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RemoveLabelFromAlarmAction.Result res = action.call()

更改报警器状态 (ChangeAlarmState)

API请求

URLs
PUT zstack/v1/zwatch/alarms/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "changeAlarmState": {
    "stateEvent": "disable"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"changeAlarmState":{"stateEvent":"disable"}}' http://localhost:8080/zstack/v1/zwatch/alarms/226149ca389f387e95d0f671bd6b551f/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
stateEvent String body(包含在changeAlarmState结构中) 状态事件
  • enabled
  • disabled
2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "3b57de3128b545a18bb7da2f086f6362",
    "name": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60.0,
    "namespace": "ZStack/VM",
    "metricName": "org.zstack.zwatch.datatype.Metric@565e1ebe",
    "threshold": 30.0,
    "repeatInterval": 1800.0,
    "status": "Alarm",
    "state": "Enabled",
    "createDate": "Jul 6, 2018 1:50:57 PM",
    "lastOpDate": "Jul 6, 2018 1:50:57 PM",
    "labels": [
      {
        "uuid": "61f43f3a05f74ef39b5b2c30354a5246",
        "key": "VMUuid",
        "operator": "\u003d",
        "value": "23958e475ae34735a4ca0b808df0cf50"
      }
    ],
    "actions": [
      {
        "alarmUuid": "f01eb4d0ec1d4cdc81dc478c87f9fceb",
        "actionType": "sns",
        "actionUuid": "c9d79c14e37a4ebb83cf0d76fb7b8dbc"
      }
    ]
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory AlarmInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
ChangeAlarmStateAction action = new ChangeAlarmStateAction();
action.uuid = "226149ca389f387e95d0f671bd6b551f";
action.stateEvent = "disable";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
ChangeAlarmStateAction.Result res = action.call();
Python SDK
ChangeAlarmStateAction action = ChangeAlarmStateAction()
action.uuid = "226149ca389f387e95d0f671bd6b551f"
action.stateEvent = "disable"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
ChangeAlarmStateAction.Result res = action.call()

查询报警器 (QueryAlarm)

API请求

URLs
GET zstack/v1/zwatch/alarms
GET zstack/v1/zwatch/alarms/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms?q=name=VM
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms/572c61c4a1393b6ebce520a0102dc46c

可查询字段

运行CLI命令行工具,输入QueryAlarm并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

返回示例
{
  "inventories": [
    {
      "uuid": "5c9ef4b25c2a485da77eab50745d53cf",
      "name": "VM CPU Alarm",
      "comparisonOperator": "LessThanOrEqualTo",
      "period": 60.0,
      "namespace": "ZStack/VM",
      "metricName": "org.zstack.zwatch.datatype.Metric@565e1ebe",
      "threshold": 30.0,
      "repeatInterval": 1800.0,
      "status": "Alarm",
      "state": "Enabled",
      "createDate": "Jul 6, 2018 1:50:51 PM",
      "lastOpDate": "Jul 6, 2018 1:50:51 PM",
      "labels": [
        {
          "uuid": "5ab29656f8df43a3a78d672af8940896",
          "key": "VMUuid",
          "operator": "\u003d",
          "value": "b128326b8b944c0499992c00cabd4711"
        }
      ],
      "actions": [
        {
          "alarmUuid": "2028f51e88b6449fb33442215810845f",
          "actionType": "sns",
          "actionUuid": "9486671b2f4c4413976f1d6938ac1d01"
        }
      ]
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventories List 详情参考inventories 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventories
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
period Integer 阈值持续时间 2.3
namespace String 名字空间 2.3
metricName String 监控项名称 2.3
threshold Double 阈值 2.3
repeatInterval Integer 报警重复时间 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3
comparisonOperator ComparisonOperator 详情参考comparisonOperator 2.3
status AlarmStatus 详情参考status 2.3
labels List 详情参考labels 2.3
actions List 详情参考actions 2.3
#comparisonOperator
名字 类型 描述 起始版本
name String 资源名称 2.3
ordinal int 2.3
#status
名字 类型 描述 起始版本
OK AlarmStatus 监控中 2.3
Alarm AlarmStatus 已触发 2.3
InsufficientData AlarmStatus 数据不足 2.3
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
key String 标签键 2.3
operator String 比较符 2.3
value String 标签值 2.3
#actions
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
actionType String 报警动作类型 2.3
actionUuid String 报警动作UUID 2.3

SDK示例

Java SDK
QueryAlarmAction action = new QueryAlarmAction();
action.conditions = asList("name=VM");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryAlarmAction.Result res = action.call();
Python SDK
QueryAlarmAction action = QueryAlarmAction()
action.conditions = ["name=VM"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryAlarmAction.Result res = action.call()

获取资源报警器历史(GetAlarmData)

API请求

URLs
GET zstack/v1/zwatch/alarm-histories
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarm-histories?startTime=1.596444525E9&endTime=1.596530925E9&limit=200.0&count=false&excludeOtherAccount=false&start=0.0
参数列表
名字 类型 位置 描述 可选值 起始版本
startTime (可选) Long query 起始时间 2.3
endTime (可选) Long query 结束时间 2.3
limit (可选) Integer query 返回记录条数数量 2.3
conditions (可选) List query 条件列表,用于过滤结果 2.3
count (可选) boolean query 是否查询消息数量 3.3.0
excludeOtherAccount (可选) boolean query 是否排除非当前账号的消息(只对SystemAdmin生效) 3.3.0
endpointUuid (可选) String query 接收端Uuid 3.10.0
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3

API返回

返回示例
{
  "histories": [
    {
      "alarmUuid": "143b24a12d193c1992c4774dc3b34fda",
      "namespace": "ZStack/VM",
      "metricName": "CPUUsedUtilization",
      "accountUuid": "90aea7a1dfe93cf7bd3379254dddbdf9",
      "resourceUuid": "4e6bb5390d3938cb9ce830a4766ee4d8",
      "resourceType": "VmInstanceVO",
      "alarmStatus": "Alarm",
      "alarmName": "test-alarm",
      "threshold": 90.0,
      "labels": "VMUuid Equal 4e6bb5390d3938cb9ce830a4766ee4d8, CPUNum Equal 2",
      "metricValue": 10.0,
      "comparisonOperator": "LessThan",
      "time": 1.510669257141E12
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
histories List 详情参考histories 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#histories
名字 类型 描述 起始版本
alarmUuid String 报警器UUID 2.3
namespace String 名字空间名称 2.3
metricName String 监控项名称 2.3
accountUuid String 账户UUID 2.3
resourceUuid String 资源UUID 2.3
resourceType String 资源类型 2.3
alarmStatus String 报警器状态 2.3
alarmName String 报警器名称 2.3
threshold Double 报警阈值 2.3
period Integer 阈值持续周期 2.3
labels String 标签列表 2.3
metricValue Double 监控项当时值 2.3
time long 报警纪录生成时间 2.3

SDK示例

Java SDK
GetAlarmDataAction action = new GetAlarmDataAction();
action.startTime = 1.530856218E9;
action.endTime = 1.530942618E9;
action.limit = 200.0;
action.count = false;
action.excludeOtherAccount = false;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAlarmDataAction.Result res = action.call();
Python SDK
GetAlarmDataAction action = GetAlarmDataAction()
action.startTime = 1.530856218E9
action.endTime = 1.530942618E9
action.limit = 200.0
action.count = false;
action.excludeOtherAccount = false;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAlarmDataAction.Result res = action.call()

更新报警器历史消息(UpdateAlarmData)

API请求

URLs
PUT zstack/v1/zwatch/alarm-histories/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateAlarmData": {
    "dataUuid": "514d4a1ed3573bf8a14ac350de0a2513",
    "updateMode": "OnlyOne",
    "readStatus": "Read"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateAlarmData":{"dataUuid":"514d4a1ed3573bf8a14ac350de0a2513","updateMode":"OnlyOne","readStatus":"Read"}}' http://localhost:8080/zstack/v1/zwatch/alarm-histories/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
dataUuid (可选) String body(包含在updateAlarmData结构中) 资源的UUID,唯一标示该资源 3.3.0
dataStartTime (可选) Long body(包含在updateAlarmData结构中) 选择目标消息的起始时间,updateMode需要传入InRange 3.3.0
dataEndTime (可选) Long body(包含在updateAlarmData结构中) 选择目标消息的结束时间,updateMode需要传入InRange 3.3.0
updateMode String body(包含在updateAlarmData结构中) 选择更新目标消息的范围,OnlyOne表示只更新指定的消息,InRange表示更新某个时间范围产生的消息, All表示更新所有消息
  • OnlyOne
  • InRange
  • All
3.3.0
readStatus (可选) String body(包含在updateAlarmData结构中) 更新消息已读状态
  • Read
  • Unread
3.3.0
systemTags (可选) List body 系统标签 3.3.0
userTags (可选) List body 用户标签 3.3.0

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
	"error": {
		"code": "SYS.1001",
		"description": "A message or a operation timeout",
		"details": "Create VM on KVM timeout after 300s"
	}
}

SDK示例

Java SDK
UpdateAlarmDataAction action = new UpdateAlarmDataAction();
action.dataUuid = "514d4a1ed3573bf8a14ac350de0a2513";
action.updateMode = "OnlyOne";
action.readStatus = "Read";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAlarmDataAction.Result res = action.call();
Python SDK
UpdateAlarmDataAction action = UpdateAlarmDataAction()
action.dataUuid = "514d4a1ed3573bf8a14ac350de0a2513"
action.updateMode = "OnlyOne"
action.readStatus = "Read"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAlarmDataAction.Result res = action.call()

统计报警消息数量(GetZWatchAlertHistogram)

API请求

URLs
GET zstack/v1/zwatch/alert-histories/histogram
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alert-histories/histogram?startTime=1.623414899E9&endTime=1.623501299E9&intervalHours=8.0&groupColumns=emergencyLevel
参数列表
名字 类型 位置 描述 可选值 起始版本
tableName String query 消息类型 4.1.0
startTime Long query 起始时间 4.1.0
endTime Long query 结束时间 4.1.0
intervalHours String query 间隔小时 4.1.0
groupColumns (可选) List query 分组属性 4.1.0
systemTags (可选) List query 系统标签 4.1.0
userTags (可选) List query 用户标签 4.1.0

API返回

返回示例
{
  "histograms": [
    {
      "time": 1.510669257141E12,
      "count": 50.0,
      "tags": [
        {
          "name": "emergencyLevel",
          "value": "Emergent"
        }
      ]
    }
  ]
}
名字 类型 描述 起始版本
success boolean 4.1.0
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 4.1.0
histograms List 4.1.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 4.1.0
description String 错误的概要描述 4.1.0
details String 错误的详细信息 4.1.0
elaboration String 保留字段,默认为null 4.1.0
opaque LinkedHashMap 保留字段,默认为null 4.1.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 4.1.0
#histories
名字 类型 描述 起始版本
time long 时间 4.1.0
count long 数量 4.1.0
tags List 详情参考tags 4.1.0
#tags
名字 类型 描述 起始版本
name String tag名称 4.1.0
value String tag值 4.1.0

SDK示例

Java SDK
GetZWatchAlertHistogramAction action = new GetZWatchAlertHistogramAction();
action.startTime = 1.623414899E9;
action.endTime = 1.623501299E9;
action.intervalHours = 8.0;
action.groupColumns = asList("emergencyLevel");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetZWatchAlertHistogramAction.Result res = action.call();
Python SDK
GetZWatchAlertHistogramAction action = GetZWatchAlertHistogramAction()
action.startTime = 1.623414899E9
action.endTime = 1.623501299E9
action.intervalHours = 8.0
action.groupColumns = [emergencyLevel]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetZWatchAlertHistogramAction.Result res = action.call()

查询资源报警器报警记录(QueryAlarmRecord)

API请求

URLs
GET zstack/v1/zwatch/alarm-records
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarm-records?q=dataUuid=f30e0a92898a3cf39b98c7b20d5d09d7

可查询字段

运行CLI命令行工具,输入QueryAlarmRecord并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

返回示例
{
  "inventories": [
    {
      "id": 1.0,
      "createTime": 1.510669257141E12,
      "accountUuid": "ce8e0ae7bfb93fb09c3339443fb79b5a",
      "alarmName": "ZStack Primary Storage Physical Available Capacity Alarm",
      "alarmStatus": "Alarm",
      "alarmUuid": "701f9528318737bb9db81c4f9b5721a7",
      "comparisonOperator": "LessThan",
      "context": "{\"PrimaryStorageType\":\"LocalStorage\"}",
      "dataUuid": "2e6afdb668443ef9a9a82fcba794d21b",
      "emergencyLevel": "Emergent",
      "metricName": "AvailablePhysicalCapacityInPercent",
      "metricValue": 20.0,
      "namespace": "ZStack/PrimaryStorage",
      "period": 600.0,
      "readStatus": false,
      "resourceUuid": "8a596bd1689c3e83a408c2713d99fc6e",
      "threshold": 21.0
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 4.1.0
histograms List 4.1.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 4.1.0
description String 错误的概要描述 4.1.0
details String 错误的详细信息 4.1.0
elaboration String 保留字段,默认为null 4.1.0
opaque LinkedHashMap 保留字段,默认为null 4.1.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 4.1.0
#inventories
名字 类型 描述 起始版本
id long 消息ID 4.1.0
createTime long 创建时间 4.1.0
accountUuid String 账户UUID 4.1.0
alarmName String 报警器名称 4.1.0
alarmStatus String 报警状态 4.1.0
alarmUuid String 报警器UUID 4.1.0
comparisonOperator String 阈值比较符 4.1.0
context String 内容 4.1.0
dataUuid String 消息UUID 4.1.0
emergencyLevel String 报警等级 4.1.0
labels String 标签列表 4.1.0
metricName String 监控项名称 4.1.0
metricValue Double 监控项值 4.1.0
namespace String 名字空间 4.1.0
period int 阈值持续时间 4.1.0
readStatus Boolean 已读状态 4.1.0
resourceUuid String 资源UUID 4.1.0
threshold Double 阈值 4.1.0

SDK示例

Java SDK
QueryAlarmRecordAction action = new QueryAlarmRecordAction();
action.conditions = asList("dataUuid=8860f33a964e3141aee2c3ffde2918b7");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryAlarmRecordAction.Result res = action.call();
Python SDK
QueryAlarmRecordAction action = QueryAlarmRecordAction()
action.conditions = ["dataUuid=a83224ddc145340b9b7b12170ba614ba"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryAlarmRecordAction.Result res = action.call()

修改一键报警模板(UpdateActiveAlarmTemplate)

API请求

URLs
PUT zstack/v1/zwatch/activealarms/templates/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateActiveAlarmTemplate": {
    "alarmName": "VM-CPUAverageUsedUtilization",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60,
    "threshold": 80.0,
    "repeatInterval": 1800,
    "repeatCount": -1,
    "emergencyLevel": "Emergent"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateActiveAlarmTemplate":{"alarmName":"VM-CPUAverageUsedUtilization","comparisonOperator":"LessThanOrEqualTo","period":60,"threshold":80.0,"repeatInterval":1800,"repeatCount":-1,"emergencyLevel":"Emergent"}}' http://localhost:8080/zstack/v1/zwatch/activealarms/templates/c3e82dade74732009d5f4fd0b462f65d/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 模板UUID 4.7.0
alarmName (可选) String body (包含在updateActiveAlarmTemplate结构中) 模板名称 4.7.0
comparisonOperator (可选) String body (包含在updateActiveAlarmTemplate结构中) 阈值比较符
  • GreaterThanOrEqualTo
  • GreaterThan
  • LessThan
  • LessThanOrEqualTo
4.7.0
period (可选) Integer body (包含在updateActiveAlarmTemplate结构中) 阈值持续时间 4.7.0
threshold (可选) Double body (包含在updateActiveAlarmTemplate结构中) 阈值 4.7.0
repeatInterval (可选) Integer body (包含在updateActiveAlarmTemplate结构中) 报警重复时间 4.7.0
repeatCount (可选) Integer body (包含在updateActiveAlarmTemplate结构中) 报警重复次数 4.7.0
emergencyLevel (可选) String body (包含在updateActiveAlarmTemplate结构中) 报警等级
  • Emergent
  • Important
  • Normal
4.7.0
labels (可选) String body (包含在updateActiveAlarmTemplate结构中) 4.7.0
systemTags (可选) List body 系统标签 4.7.0
userTags (可选) List body 用户标签 4.7.0

API返回

返回示例
{
  "inventory": {
    "uuid": "ea8aa7b6b2e43d4a9f3a19ba121ab72a",
    "alarmName": "VM CPU Alarm",
    "comparisonOperator": "LessThanOrEqualTo",
    "period": 60,
    "repeatInterval": 60,
    "repeatCount": -1,
    "namespace": "zstack/VM",
    "metricName": "CPUIdleUtilization",
    "threshold": 30.0,
    "emergencyLevel": "Emergent",
    "labels": "[{\"uuid\":\"48cc4d3273a249009ea2166b71495785\",\"key\":\"VMUuid\",\"operator\":\"\u003d\",\"value\":\"c69d93586ca349b9a3bc074e2739e20a\"}]",
    "createDate": "Nov 14, 2017 10:20:57 PM",
    "lastOpDate": "Nov 14, 2017 10:20:57 PM"
  }
}
名字 类型 描述 起始版本
success boolean 4.7.0
inventory ActiveAlarmTemplateInventory 详情参考inventory 4.7.0
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 4.7.0
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 4.7.0
alarmName String 4.7.0
period int 4.7.0
repeatInterval int 4.7.0
repeatCount int 4.7.0
namespace String 4.7.0
metricName String 4.7.0
threshold double 4.7.0
labels String 4.7.0
createDate Timestamp 创建时间 4.7.0
lastOpDate Timestamp 最后一次修改时间 4.7.0
comparisonOperator ComparisonOperator 详情参考comparisonOperator 4.7.0
emergencyLevel EmergencyLevel 详情参考emergencyLevel 4.7.0
#comparisonOperator
名字 类型 描述 起始版本
GreaterThanOrEqualTo ComparisonOperator 4.7.0
GreaterThan ComparisonOperator 4.7.0
LessThan ComparisonOperator 4.7.0
LessThanOrEqualTo ComparisonOperator 4.7.0
#emergencyLevel
名字 类型 描述 起始版本
Emergent EmergencyLevel 4.7.0
Important EmergencyLevel 4.7.0
Normal EmergencyLevel 4.7.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 4.7.0
description String 错误的概要描述 4.7.0
details String 错误的详细信息 4.7.0
elaboration String 保留字段,默认为null 4.7.0
opaque LinkedHashMap 保留字段,默认为null 4.7.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 4.7.0

SDK示例

Java SDK
UpdateActiveAlarmTemplateAction action = new UpdateActiveAlarmTemplateAction();
action.uuid = "c3e82dade74732009d5f4fd0b462f65d";
action.alarmName = "VM-CPUAverageUsedUtilization";
action.comparisonOperator = "LessThanOrEqualTo";
action.period = 60;
action.threshold = 80.0;
action.repeatInterval = 1800;
action.repeatCount = -1;
action.emergencyLevel = "Emergent";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateActiveAlarmTemplateAction.Result res = action.call();
Python SDK
UpdateActiveAlarmTemplateAction action = UpdateActiveAlarmTemplateAction()
action.uuid = "c3e82dade74732009d5f4fd0b462f65d"
action.alarmName = "VM-CPUAverageUsedUtilization"
action.comparisonOperator = "LessThanOrEqualTo"
action.period = 60
action.threshold = 80.0
action.repeatInterval = 1800
action.repeatCount = -1
action.emergencyLevel = "Emergent"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateActiveAlarmTemplateAction.Result res = action.call()

修改事件报警器状态(ChangeEventSubscriptionState)

API请求

URLs
PUT zstack/v1/zwatch/change/eventSubscription/{uuid}/state
Headers
Authorization: OAuth the-session-uuid
Body
{
  "changeEventSubscriptionState": {
    "state": "Disabled"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" /
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" /
-X PUT -d '{"changeEventSubscriptionState":{"state":"Disabled"}}' http://localhost:8080/zstack/v1/zwatch/change/eventSubscription/2140655d1d183a6690c0eecdbc721ec0/state
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 4.7.0
state String body (包含在changeEventSubscriptionState结构中) 事件报警器状态
  • Enabled
  • Disabled
4.7.0
systemTags (可选) List body 系统标签 4.7.0
userTags (可选) List body 用户标签 4.7.0

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
	"error": {
		"code": "SYS.1001",
		"description": "A message or a operation timeout",
		"details": "Create VM on KVM timeout after 300s"
	}
}

SDK示例

Java SDK
ChangeEventSubscriptionStateAction action = new ChangeEventSubscriptionStateAction();
action.uuid = "2140655d1d183a6690c0eecdbc721ec0";
action.state = "Disabled";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
ChangeEventSubscriptionStateAction.Result res = action.call();
Python SDK
ChangeEventSubscriptionStateAction action = ChangeEventSubscriptionStateAction()
action.uuid = "2140655d1d183a6690c0eecdbc721ec0"
action.state = "Disabled"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
ChangeEventSubscriptionStateAction.Result res = action.call()

事件订阅(Event Subscription)

订阅事件 (SubscribeEvent)

API请求

URLs
POST zstack/v1/zwatch/events/subscriptions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "namespace": "ZStack/VM",
    "eventName": "VMUuid",
    "actions": [
      {
        "actionUuid": "2fbeae18082445d09c890fa076ff9fd9",
        "actionType": "sns"
      }
    ],
    "labels": [
      {
        "key": "VMUuid",
        "value": "0c60949d81964f23a0d860b30472c51b",
        "op": "Equal"
      }
    ]
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"namespace":"ZStack/VM","eventName":"VMUuid","actions":[{"actionUuid":"c7b1b7e054494aeab843a9c7371cdfc4","actionType":"sns"}],"labels":[{"key":"VMUuid","value":"47056270f2ea45409a419f1165f83945","op":"Equal"}]}}' \
http://localhost:8080/zstack/v1/zwatch/events/subscriptions
参数列表
名字 类型 位置 描述 可选值 起始版本
namespace String body(包含在params结构中) 名字空间 2.3
eventName String body(包含在params结构中) 事件名 2.3
actions (可选) List body(包含在params结构中) 事件动作 2.3
labels (可选) List body(包含在params结构中) 事件标签 2.3
resourceUuid (可选) String body(包含在params结构中) 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3
name (可选) String body(包含在params结构中) 资源名称 3.0.0
emergencyLevel (可选) String body(包含在params结构中) 报警等级
  • Emergent
  • Important
  • Normal
3.8.0
tagUuids (可选) List body(包含在params结构中) 标签UUID列表 3.8.0

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK
SubscribeEventAction action = new SubscribeEventAction();
action.namespace = "ZStack/VM";
action.eventName = "VMUuid";
action.actions = asList([actionUuid:08a502ad6e944ceb8c70f523b69385e3, actionType:sns]);
action.labels = asList([key:VMUuid, value:896391b873dc41288c0841b5fe8cb71b, op:Equal]);
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
SubscribeEventAction.Result res = action.call();
Python SDK
SubscribeEventAction action = SubscribeEventAction()
action.namespace = "ZStack/VM"
action.eventName = "VMUuid"
action.actions = [[actionUuid:393df28f2bab49aba01fc229dae849c8, actionType:sns]]
action.labels = [[key:VMUuid, value:abd2e73d08d248b6be73e31eb6a97e82, op:Equal]]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
SubscribeEventAction.Result res = action.call()

退订事件(UnsubscribeEvent)

API请求

URLs
DELETE zstack/v1/zwatch/events/subscriptions/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/zwatch/events/subscriptions/298e2e2506163851a268907ed8ea7995
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
deleteMode (可选) String body 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK
UnsubscribeEventAction action = new UnsubscribeEventAction();
action.uuid = "298e2e2506163851a268907ed8ea7995";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UnsubscribeEventAction.Result res = action.call();
Python SDK
UnsubscribeEventAction action = UnsubscribeEventAction()
action.uuid = "298e2e2506163851a268907ed8ea7995"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UnsubscribeEventAction.Result res = action.call()

查询事件订阅 (QueryEventSubscription)

API请求

URLs
GET zstack/v1/zwatch/events/subscriptions
GET zstack/v1/zwatch/events/subscriptions/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/events/subscriptions?q=name=test
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/events/subscriptions/57618e9763ce3b7e990870c3a7ae8c53

可查询字段

运行CLI命令行工具,输入QueryEventSubscription并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

返回示例
{
  "inventories": [
    {
      "uuid": "9404fe697a6b4d7dbac98065af20dc57",
      "namespace": "ZStack/VM",
      "eventName": "org.zstack.zwatch.datatype.EventFamily@80723ca",
      "state": "Enabled",
      "actions": [
        {
          "subscriptionUuid": "650cf6a269284671a42f93631c87dfec",
          "actionType": "sns",
          "actionUuid": "fe296dcbc31c4afa9f76494b1930c8cc"
        }
      ],
      "labels": [
        {
          "uuid": "d29fe54ca47540a9b20b308429f21434",
          "key": "DestinationHostUuid",
          "operator": "Equal",
          "value": "733509c8c5684c678ffe99f59d4aba21"
        }
      ],
      "lastOpDate": "Jul 6, 2018 1:51:00 PM",
      "createDate": "Jul 6, 2018 1:51:00 PM"
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3.1
inventories List 详情参考inventories 2.3.1
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3.1
description String 错误的概要描述 2.3.1
details String 错误的详细信息 2.3.1
elaboration String 保留字段,默认为null 2.3.1
opaque LinkedHashMap 保留字段,默认为null 2.3.1
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3.1
#inventories
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3.1
name String 资源名称 3.0.0
namespace String 名字空间 2.3.1
eventName String 事件名 2.3.1
lastOpDate Timestamp 最后一次修改时间 2.3.1
createDate Timestamp 创建时间 2.3.1
state EventSubscriptionState 详情参考state 2.3.1
actions List 详情参考actions 2.3.1
labels List 详情参考labels 2.3.1
#state
名字 类型 描述 起始版本
name String 资源名称 2.3.1
ordinal int 2.3.1
#actions
名字 类型 描述 起始版本
subscriptionUuid String 事件订阅UUID 2.3.1
actionType String 动作类型 2.3.1
actionUuid String 动作UUID 2.3.1
#labels
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3.1
key String 标签名 2.3.1
value String 标签值 2.3.1
operator Operator 详情参考operator 2.3.1
#operator
名字 类型 描述 起始版本
op String 2.3.1
name String 资源名称 2.3.1
ordinal int 2.3.1

SDK示例

Java SDK
QueryEventSubscriptionAction action = new QueryEventSubscriptionAction();
action.conditions = asList("name=test");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryEventSubscriptionAction.Result res = action.call();
Python SDK
QueryEventSubscriptionAction action = QueryEventSubscriptionAction()
action.conditions = ["name=test"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryEventSubscriptionAction.Result res = action.call()

更新事件订阅的标签(UpdateEventSubscriptionLabel)

API请求

URLs
PUT zstack/v1/zwatch/events/subscriptions/labels/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateEventSubscriptionLabel": {
    "key": "VMUuid",
    "value": "42c233c17c6e4907b7be1f11a41f3a17",
    "operator": "Equal"
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateEventSubscriptionLabel":{"key":"VMUuid","value":"228fc2c5041248df9b0d317f6f7a8585","operator":"Equal"}}' http://localhost:8080/zstack/v1/zwatch/events/subscriptions/labels/cfb859d412933a1da57ae99e2aa442ce/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 原事件订阅标签的UUID,唯一标示该资源 3.9.0
key String body(包含在updateEventSubscriptionLabel结构中) 标签的新名 3.9.0
value String body(包含在updateEventSubscriptionLabel结构中) 标签的新值 3.9.0
operator String body(包含在updateEventSubscriptionLabel结构中) 标签的新操作符
  • Regex
  • Equal
3.9.0
systemTags (可选) List body 3.9.0
userTags (可选) List body 3.9.0

API返回

返回示例
{
  "inventory": {
    "uuid": "d937a1c6d9de3f2285b0cb23316624a8",
    "key": "VMUuid",
    "operator": "Equal",
    "value": "19cf33283b484ff6b73a6d98e1d762f5"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 3.9.0
inventory EventSubscriptionLabelInventory 详情参考inventory 3.9.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 3.9.0
description String 错误的概要描述 3.9.0
details String 错误的详细信息 3.9.0
elaboration String 保留字段,默认为null 3.9.0
opaque LinkedHashMap 保留字段,默认为null 3.9.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 3.9.0
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 3.9.0
key String 标签名 3.9.0
value String 标签值 3.9.0
operator Operator 详情参考operator 3.9.0
#operator
名字 类型 描述 起始版本
op String 3.9.0
name String 资源名称 3.9.0
ordinal int 3.9.0

SDK示例

Java SDK
UpdateEventSubscriptionLabelAction action = new UpdateEventSubscriptionLabelAction();
action.uuid = "cfb859d412933a1da57ae99e2aa442ce";
action.key = "VMUuid";
action.value = "9d7099dd361049aaaf801ca6b17b2858";
action.operator = "Equal";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateEventSubscriptionLabelAction.Result res = action.call();
Python SDK
UpdateEventSubscriptionLabelAction action = UpdateEventSubscriptionLabelAction()
action.uuid = "cfb859d412933a1da57ae99e2aa442ce"
action.key = "VMUuid"
action.value = "27e59f9fe7ed46118a2f6b8a383ce494"
action.operator = "Equal"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateEventSubscriptionLabelAction.Result res = action.call()

报警文本模板(Text Template)

创建报警消息模板(CreateSNSTextTemplate)

API请求

URLs
POST zstack/v1/zwatch/alarms/sns/text-templates
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "name": "email template",
    "applicationPlatformType": "Email",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"name":"email template","applicationPlatformType":"Email","template":"Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}","recoveryTemplate":"Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}","defaultTemplate":true}}' http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates
参数列表
名字 类型 位置 描述 可选值 起始版本
name String body(包含在params结构中) 资源名称 2.3
description (可选) String body(包含在params结构中) 资源的详细描述 2.3
applicationPlatformType String body(包含在params结构中) SNS应用平台类型 2.3
template String body(包含在params结构中) 报警消息模板文本 2.3
recoveryTemplate String body(包含在params结构中) 恢复报警模板文本 3.4.0
defaultTemplate (可选) Boolean body(包含在params结构中) 是否作为默认模板 2.3
resourceUuid (可选) String body(包含在params结构中) 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "0b13c60e86c44fc08829f40ff73923f7",
    "name": "email template",
    "applicationPlatformType": "Email",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": false,
    "createDate": "Jul 6, 2018 1:51:04 PM",
    "lastOpDate": "Jul 6, 2018 1:51:04 PM"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory SNSTextTemplateInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
applicationPlatformType String 应用平台类型 2.3
template String 模板文本 2.3
defaultTemplate Boolean 是否为默认模板 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3

SDK示例

Java SDK
CreateSNSTextTemplateAction action = new CreateSNSTextTemplateAction();
action.name = "email template";
action.applicationPlatformType = "Email";
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}";
action.recoveryTemplate = "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}";
action.defaultTemplate = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CreateSNSTextTemplateAction.Result res = action.call();
Python SDK
CreateSNSTextTemplateAction action = CreateSNSTextTemplateAction()
action.name = "email template"
action.applicationPlatformType = "Email"
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}"
action.recoveryTemplate = "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}"
action.defaultTemplate = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
CreateSNSTextTemplateAction.Result res = action.call()

删除报警消息模板(DeleteSNSTextTemplate)

删除报警消息模板。

API请求

URLs
DELETE zstack/v1/zwatch/alarms/sns/text-templates/{uuid}?deleteMode={deleteMode}
Headers

Authorization: OAuth the-session-uuid
Curl示例

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/a4ce47e628303c4fa55743f1b84c61b4?deleteMode=Permissive
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
deleteMode (可选) String url 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Create VM on KVM timeout after 300s"
}
}

SDK示例

Java SDK

DeleteSNSTextTemplateAction action = new DeleteSNSTextTemplateAction();
action.uuid = "a4ce47e628303c4fa55743f1b84c61b4";
action.deleteMode = "Permissive";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DeleteSNSTextTemplateAction.Result res = action.call();
Python SDK

DeleteSNSTextTemplateAction action = DeleteSNSTextTemplateAction()
action.uuid = "a4ce47e628303c4fa55743f1b84c61b4"
action.deleteMode = "Permissive"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
DeleteSNSTextTemplateAction.Result res = action.call()

更新报警消息模板(UpdateSNSTextTemplate)

更新报警消息模板。

API请求

URLs
PUT zstack/v1/zwatch/alarms/sns/text-templates/{uuid}/actions
Headers

Authorization: OAuth the-session-uuid
Body
{
  "updateSNSTextTemplate": {
    "name": "email template",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateSNSTextTemplate":{"name":"email template","template":"Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}","recoveryTemplate":"Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}","defaultTemplate":true}}' http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/108482a9d3153463abd49712701ad937/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 2.3
name (可选) String body(包含在updateSNSTextTemplate结构中) 资源名称 2.3
description (可选) String body(包含在updateSNSTextTemplate结构中) 资源的详细描述 2.3
template (可选) String body(包含在updateSNSTextTemplate结构中) 报警消息模板文本 2.3
recoveryTemplate (可选) String body(包含在updateSNSTextTemplate结构中) 恢复报警消息模板文本 3.4.0
defaultTemplate (可选) Boolean body(包含在updateSNSTextTemplate结构中) 是否为默认模板 2.3
systemTags (可选) List body 系统标签 2.3
userTags (可选) List body 用户标签 2.3

API返回

返回示例
{
  "inventory": {
    "uuid": "cc881c03f4c04ea9a0e0dda61f4c2f00",
    "name": "email template",
    "applicationPlatformType": "Email",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": false,
    "createDate": "Jul 6, 2018 1:51:22 PM",
    "lastOpDate": "Jul 6, 2018 1:51:22 PM"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventory SNSTextTemplateInventory 详情参考inventory 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
applicationPlatformType String 应用平台类型 2.3
template String 模板文本 2.3
recoveryTemplate String 模板文本 3.4.0
defaultTemplate Boolean 是否为默认模板 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3

SDK示例

Java SDK
UpdateSNSTextTemplateAction action = new UpdateSNSTextTemplateAction();
action.uuid = "108482a9d3153463abd49712701ad937";
action.name = "email template";
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}";
action.recoveryTemplate = "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}";
action.defaultTemplate = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateSNSTextTemplateAction.Result res = action.call();
Python SDK
UpdateSNSTextTemplateAction action = UpdateSNSTextTemplateAction()
action.uuid = "108482a9d3153463abd49712701ad937"
action.name = "email template"
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}"
action.recoveryTemplate = "Alarm ${ALARM_NAME} Resource ${ALARM_RESOURCE_NAME} changes status to ${ALARM_CURRENT_STATUS}"
action.defaultTemplate = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateSNSTextTemplateAction.Result res = action.call()

查询报警消息模板(QuerySNSTextTemplate)

查询报警消息模板。

API请求

URLs
GET zstack/v1/zwatch/alarms/sns/text-templates
GET zstack/v1/zwatch/alarms/sns/text-templates/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates?q=name=test
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/1dc97bd699e739c6968fb3e702ab4cb6
可查询字段

运行CLI命令行工具,输入QuerySNSTextTemplate并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

返回示例
{
  "inventories": [
    {
      "uuid": "c275ce35fae13a09bcd4c54a7406bd3e",
      "name": "Test-SNS-Template",
      "description": "sns text template",
      "applicationPlatformType": "Email",
      "template": "报警器 ${ALARM_NAME} 状态改变成 ${ALARM_CURRENT_STATUS}",
      "defaultTemplate": false,
      "createDate": "Nov 14, 2017 10:20:57 PM",
      "lastOpDate": "Nov 14, 2017 10:20:57 PM"
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
inventories List 详情参考inventories 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 2.3
description String 错误的概要描述 2.3
details String 错误的详细信息 2.3
elaboration String 保留字段,默认为null 2.3
opaque LinkedHashMap 保留字段,默认为null 2.3
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 2.3
#inventories
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 2.3
name String 资源名称 2.3
description String 资源的详细描述 2.3
applicationPlatformType String 应用平台类型 2.3
template String 模板文本 2.3
defaultTemplate Boolean 是否为默认模板 2.3
createDate Timestamp 创建时间 2.3
lastOpDate Timestamp 最后一次修改时间 2.3

SDK示例

Java SDK
QuerySNSTextTemplateAction action = new QuerySNSTextTemplateAction();
action.conditions = asList("name=test");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSTextTemplateAction.Result res = action.call();
Python SDK
QuerySNSTextTemplateAction action = QuerySNSTextTemplateAction()
action.conditions = ["name=test"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSTextTemplateAction.Result res = action.call()

创建SNS监控阿里云短信模板(CreateAliyunSmsSNSTextTemplate)

API请求

URLs
POST zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms
Headers
Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "sign": "举个例子",
    "alarmTemplateCode": "SMS_153055065",
    "eventTemplateCode": "SMS_153055066",
    "eventTemplate": "Event ${EVENT_NAME} happend.",
    "name": "aliyunSMS Template",
    "applicationPlatformType": "AliyunSms",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X POST -d '{"params":{"sign":"举个例子","alarmTemplateCode":"SMS_153055065","eventTemplateCode":"SMS_153055066","eventTemplate":"Event ${EVENT_NAME} happend.","name":"aliyunSMS Template","applicationPlatformType":"AliyunSms","template":"Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}","defaultTemplate":true}}' http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms
参数列表
名字 类型 位置 描述 可选值 起始版本
sign String body(包含在params结构中) 短信签名名称 3.7.0
alarmTemplateCode String body(包含在params结构中) 资源报警器模板Code 3.7.0
eventTemplateCode String body(包含在params结构中) 事件报警器模板Code 3.7.0
eventTemplate (可选) String body(包含在params结构中) 事件报警器模板文本 3.7.0
name String body(包含在params结构中) 模板名称 3.7.0
description (可选) String body(包含在params结构中) 模板的详细描述 3.7.0
applicationPlatformType String body(包含在params结构中) SNS应用平台类型 3.7.0
template String body(包含在params结构中) 资源报警器模板文本 3.7.0
recoveryTemplate (可选) String body(包含在params结构中) 恢复模板文本 3.7.0
defaultTemplate (可选) Boolean body(包含在params结构中) 是否作为默认模板 3.7.0
resourceUuid (可选) String body(包含在params结构中) 3.7.0
tagUuids (可选) List body(包含在params结构中) 标签UUID列表 3.7.0
systemTags (可选) List body 系统标签 3.7.0
userTags (可选) List body 用户标签 3.7.0

API返回

返回示例
{
  "inventory": {
    "uuid": "335d5580cfad41d98e699d5d80830818",
    "name": "email template",
    "applicationPlatformType": "Email",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Resource ${EVENT_RESOURCE_ID} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": false,
    "createDate": "Oct 8, 2019 5:31:52 PM",
    "lastOpDate": "Oct 8, 2019 5:31:52 PM"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 3.7.0
inventory SNSTextTemplateInventory 详情参考inventory 3.7.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 3.7.0
description String 错误的概要描述 3.7.0
details String 错误的详细信息 3.7.0
elaboration String 保留字段,默认为null 3.7.0
opaque LinkedHashMap 保留字段,默认为null 3.7.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 3.7.0
#inventory
名字 类型 描述 起始版本
uuid String 资源的UUID,唯一标示该资源 3.7.0
name String 资源名称 3.7.0
description String 资源的详细描述 3.7.0
applicationPlatformType String 应用平台类型 3.7.0
template String 模板文本 3.7.0
recoveryTemplate String 恢复模板文本 3.7.0
defaultTemplate Boolean 是否为默认模板 3.7.0
createDate Timestamp 创建时间 3.7.0
lastOpDate Timestamp 最后一次修改时间 3.7.0

SDK示例

Java SDK
CreateAliyunSmsSNSTextTemplateAction action = new CreateAliyunSmsSNSTextTemplateAction();
action.sign = "举个例子";
action.alarmTemplateCode = "SMS_153055065";
action.eventTemplateCode = "SMS_153055066";
action.eventTemplate = "Event ${EVENT_NAME} happend.";
action.name = "aliyunSMS Template";
action.applicationPlatformType = "AliyunSms";
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}";
action.defaultTemplate = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CreateAliyunSmsSNSTextTemplateAction.Result res = action.call();
Python SDK
CreateAliyunSmsSNSTextTemplateAction action = CreateAliyunSmsSNSTextTemplateAction()
action.sign = "举个例子"
action.alarmTemplateCode = "SMS_153055065"
action.eventTemplateCode = "SMS_153055066"
action.eventTemplate = "Event ${EVENT_NAME} happend."
action.name = "aliyunSMS Template"
action.applicationPlatformType = "AliyunSms"
action.template = "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}"
action.defaultTemplate = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
CreateAliyunSmsSNSTextTemplateAction.Result res = action.call()

更新SNS阿里云短信文本模板(UpdateAliyunSmsSNSTextTemplate)

API请求

URLs
PUT zstack/v1/zwatch/alarms/sns/text-templates/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateAliyunSmsSNSTextTemplate": {
    "alarmTemplateCode": "SMS_123456789",
    "sign": "示例签名",
    "eventTemplateCode": "SMS_987654321",
    "eventTemplate": "your aliyun sms event template here",
    "name": "aliyunSmsTemplate",
    "description": "description",
    "template": "your aliyun sms alarm template here",
    "defaultTemplate": true
  },
  "systemTags": [],
  "userTags": []
}
Note: 上述示例中systemTagsuserTags字段可以省略。列出是为了表示body中可以包含这两个字段。
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateAliyunSmsSNSTextTemplate":{"alarmTemplateCode":"SMS_123456789","sign":"示例签名","eventTemplateCode":"SMS_987654321","eventTemplate":"your aliyun sms event template here","name":"aliyunSmsTemplate","description":"description","template":"your aliyun sms alarm template here","defaultTemplate":true}}' http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/d7e89644ef273ca8baf451bf845553fd/actions
参数列表
名字 类型 位置 描述 可选值 起始版本
alarmTemplateCode (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 资源报警器模板Code 3.7.0
sign (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 短信签名名称 3.7.0
eventTemplateCode (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 事件报警器模板Code 3.7.0
eventTemplate (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 事件报警器模板文本 3.7.0
uuid String url 模板的UUID,唯一标示该资源 3.7.0
name (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 模板名称 3.7.0
description (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 模板的详细描述 3.7.0
template (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 资源报警器模板文本 3.7.0
recoveryTemplate (可选) String body(包含在updateAliyunSmsSNSTextTemplate结构中) 恢复模板文本 3.7.0
defaultTemplate (可选) Boolean body(包含在updateAliyunSmsSNSTextTemplate结构中) 是否为默认模板 3.7.0
systemTags (可选) List body 系统标签 3.7.0
userTags (可选) List body 用户标签 3.7.0

API返回

返回示例
{
  "inventory": {
    "alarmTemplateCode": "SMS_153055065",
    "sign": "示例签名",
    "eventTemplateCode": "SMS_123456789",
    "eventTemplate": "Event ${EVENT_NAME} had just happened",
    "uuid": "f8b819b8af9c402fac43932ef95cb468",
    "name": "email template",
    "applicationPlatformType": "AliyunSms",
    "template": "Alarm ${ALARM_NAME} changes status to ${ALARM_CURRENT_STATUS}",
    "recoveryTemplate": "Resource ${EVENT_RESOURCE_ID} changes status to ${ALARM_CURRENT_STATUS}",
    "defaultTemplate": false,
    "createDate": "Oct 8, 2019 5:32:12 PM",
    "lastOpDate": "Oct 8, 2019 5:32:12 PM"
  }
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 3.7.0
inventory AliyunSmsSNSTextTemplateInventory 详情参考inventory 3.7.0
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 3.7.0
description String 错误的概要描述 3.7.0
details String 错误的详细信息 3.7.0
elaboration String 保留字段,默认为null 3.7.0
opaque LinkedHashMap 保留字段,默认为null 3.7.0
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 3.7.0
#inventory
名字 类型 描述 起始版本
alarmTemplateCode String 资源报警器模板Code 3.7.0
sign String 短信签名名称 3.7.0
eventTemplateCode String 事件报警器模板Code 3.7.0
eventTemplate String 事件报警器模板文本 3.7.0
uuid String 资源的UUID,唯一标示该资源 3.7.0
name String 模板名称 3.7.0
description String 模板的详细描述 3.7.0
applicationPlatformType String 应用平台类型 3.7.0
template String 资源报警器模板文本 3.7.0
recoveryTemplate String 恢复模板文本 3.7.0
defaultTemplate Boolean 是否为默认模板 3.7.0
createDate Timestamp 创建时间 3.7.0
lastOpDate Timestamp 最后一次修改时间 3.7.0

SDK示例

Java SDK
UpdateAliyunSmsSNSTextTemplateAction action = new UpdateAliyunSmsSNSTextTemplateAction();
action.alarmTemplateCode = "SMS_123456789";
action.sign = "示例签名";
action.eventTemplateCode = "SMS_987654321";
action.eventTemplate = "your aliyun sms event template here";
action.uuid = "d7e89644ef273ca8baf451bf845553fd";
action.name = "aliyunSmsTemplate";
action.description = "description";
action.template = "your aliyun sms alarm template here";
action.defaultTemplate = true;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateAliyunSmsSNSTextTemplateAction.Result res = action.call();
Python SDK
UpdateAliyunSmsSNSTextTemplateAction action = UpdateAliyunSmsSNSTextTemplateAction()
action.alarmTemplateCode = "SMS_123456789"
action.sign = "示例签名"
action.eventTemplateCode = "SMS_987654321"
action.eventTemplate = "your aliyun sms event template here"
action.uuid = "d7e89644ef273ca8baf451bf845553fd"
action.name = "aliyunSmsTemplate"
action.description = "description"
action.template = "your aliyun sms alarm template here"
action.defaultTemplate = true
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateAliyunSmsSNSTextTemplateAction.Result res = action.call()

查询SNS监控阿里云短信模板(QueryAliyunSmsSNSTextTemplate)

API请求

URLs
GET zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms
GET zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms?q=smsTemplateCode=SMS_123456789
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/alarms/sns/text-templates/aliyun-sms/f7ffc76a46233bc590acd41e1954ed29

可查询字段

运行CLI命令行工具,输入QueryAliyunSmsSNSTextTemplate并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
	"error": {
		"code": "SYS.1001",
		"description": "A message or a operation timeout",
		"details": "Create VM on KVM timeout after 300s"
	}
}

SDK示例

Java SDK
QueryAliyunSmsSNSTextTemplateAction action = new QueryAliyunSmsSNSTextTemplateAction();
action.conditions = asList("smsTemplateCode=SMS_123456789");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryAliyunSmsSNSTextTemplateAction.Result res = action.call();
Python SDK
QueryAliyunSmsSNSTextTemplateAction action = QueryAliyunSmsSNSTextTemplateAction()
action.conditions = ["smsTemplateCode=SMS_123456789"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryAliyunSmsSNSTextTemplateAction.Result res = action.call()

审计

获取审计数据(GetAuditData)

API请求

URLs
GET zstack/v1/zwatch/audits
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/zwatch/audits?startTime=1.557300700509E12&limit=50.0&auditType=Resource
参数列表
名字 类型 位置 描述 可选值 起始版本
startTime (可选) Long query 起始时间 2.3
endTime (可选) Long query 结束时间 2.3
limit (可选) Integer query 最大返回条数 2.3
labels (可选) List query 过滤标签列表 2.3
auditType (可选) AuditType query 审计类型,默认为Resource
  • Login
  • Resource
3.5.0
systemTags (可选) List query 系统标签 2.3
userTags (可选) List query 用户标签 2.3

API返回

返回示例
{
  "audits": [
    {
      "resourceUuid": "b1ca3fab6ebc4302ad9249d5402cb06c",
      "resourceType": "VmInstanceVO",
      "clientIp": "172.0.0.1",
      "clientBrowser": "Chrome/69.0.3497.81",
      "apiName": "org.zstack.header.vm.APISetVmRDPMsg",
      "operatorAccountUuid": "36c27e8ff05c4780bf6d2fa65700f22e",
      "duration": 22.0,
      "requestUuid": "d78093c0b2fb3850b3ce563b3a0b029d",
      "responseUuid": "08cf3fd2c4614811b4acc0620e20a98e",
      "sessionUuid": "05e5c663eb794faab5c5606c38103a17",
      "responseDump": "{\"success\":true}",
      "time": 1.512037844556E12
    }
  ]
}
名字 类型 描述 起始版本
error ErrorCode 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error 2.3
audits List 详情参考audits 2.3
#error
名字 类型 描述 起始版本
code String 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 0.6
description String 错误的概要描述 0.6
details String 错误的详细信息 0.6
elaboration String 保留字段,默认为null 0.6
opaque LinkedHashMap 保留字段,默认为null 0.6
cause ErrorCode 根错误,引发当前错误的源错误,若无原错误,该字段为null 0.6
#audits
名字 类型 描述 起始版本
resourceUuid String 资源UUID 2.3
resourceType String 资源类型 2.3
apiName String API名称 2.3
error String 错误详情 2.3
operatorAccountUuid String 发起API账号UUID 2.3
duration long API耗时 2.3
requestUuid String API请求UUID 2.3
responseUuid String API返回UUID 2.3
sessionUuid String 会话UUID 2.3
requestDump String API请求JSON存档 2.3
responseDump String API返回JSON存档 2.3
time long 记录生成时间 2.3

SDK示例

Java SDK
GetAuditDataAction action = new GetAuditDataAction();
action.startTime = 1.557300701132E12;
action.limit = 50.0;
action.conditions = asList("VMUuid=4ca37b1e21e846bf8d35b23d4138489c");
action.auditType = "Resource";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAuditDataAction.Result res = action.call();
Python SDK
GetAuditDataAction action = GetAuditDataAction()
action.startTime = 1.557300701178E12
action.limit = 50.0
action.conditions = [VMUuid=6623c395df0d44b6afc3732e76aac0ac]
action.auditType = "Resource"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAuditDataAction.Result res = action.call()

附录

所有Metric元数据

用户可以用GetAllMetricMetadata获取系统中已定义的metric以及其元数据。以ZStack Cloud 4.4.0版本为例:

{
    "metrics": [
        {
            "description": "管理节点数据目录磁盘空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementServerDirFreeCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点数据目录磁盘空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementServerDirFreeCapacityInPercent",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点数据目录磁盘已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementServerDirUsedCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点数据目录磁盘占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementServerDirUsedCapacityInPercent",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点influxdb目录磁盘占用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementInfluxDBUsedCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点prometheus目录磁盘占用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementPrometheusUsedCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点ZStack日志目录磁盘占用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementZStackLogCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点ZStack备份目录磁盘占用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementZStackDBBackupCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "管理节点Mysql目录磁盘占用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "DirPath"
            ],
            "name": "ManagementMysqlCapacityInBytes",
            "namespace": "ZStack/System"
        },
        {
            "description": "CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CPUIdleUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CPUSystemUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CPUUserUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CPUWaitUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAllIdleUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CPUUsedUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAllUsedUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "平均CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAverageUsedUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "平均CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAverageUserUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "平均CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAverageWaitUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "平均CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAverageSystemUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "平均CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "CPUAverageIdleUtilization",
            "namespace": "ZStack/Host"
        },
        {
            "description": "内存未使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "MemoryFreeBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "内存未使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "MemoryFreeInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "内存使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "MemoryUsedBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "内存使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "MemoryUsedInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的读IOPS总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadOps",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllReadOps",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的写IOPS总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteOps",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllWriteOps",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的读带宽总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllReadBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的写带宽总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllWriteBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInPackets",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllInPackets",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInErrors",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllInErrors",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllOutBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutPackets",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllOutPackets",
            "namespace": "ZStack/Host"
        },
        {
            "description": "网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutErrors",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkAllOutErrors",
            "namespace": "ZStack/Host"
        },
        {
            "description": "Conntrack连接数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkConntrackCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "Conntrack已使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "NetworkConntrackInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskTotalCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "磁盘容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "云平台系统文件占用磁盘容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskZStackUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "云平台系统文件占用磁盘容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskZStackUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "客户业务数据占用磁盘容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskTransUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "客户业务数据占用磁盘容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskTransUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "根盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskRootUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "根盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskRootUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的IO平均时延",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskLatency",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的IO平均时延",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "Wwid"
            ],
            "name": "DiskLatencyWwid",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的写IOPS总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "Wwid"
            ],
            "name": "DiskWriteOpsWwid",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的读IOPS总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "Wwid"
            ],
            "name": "DiskReadOpsWwid",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的写带宽总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "Wwid"
            ],
            "name": "DiskWriteBytesWwid",
            "namespace": "ZStack/Host"
        },
        {
            "description": "所有物理机对同一磁盘标识的读带宽总量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "Wwid"
            ],
            "name": "DiskReadBytesWwid",
            "namespace": "ZStack/Host"
        },
        {
            "description": "卷组总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "VolumeGroupName"
            ],
            "name": "VolumeGroupCapacityInbytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "卷组可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "VolumeGroupName"
            ],
            "name": "VolumeGroupFreeCapacityInbytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "卷组已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "VolumeGroupName"
            ],
            "name": "VolumeGroupUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "RAID状态(0为正常,5为降级)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "TargetId"
            ],
            "name": "RaidState",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理磁盘状态",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "SlotNumber",
                "DiskGroup"
            ],
            "name": "PhysicalDiskState",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理磁盘温度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "SlotNumber",
                "DiskGroup"
            ],
            "name": "PhysicalDiskTemperature",
            "namespace": "ZStack/Host"
        },
        {
            "description": "供电单元状态(0为正常,其他为异常)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "PowerSupplyId"
            ],
            "name": "PowerSupply",
            "namespace": "ZStack/Host"
        },
        {
            "description": "IPMI模块状态(0为正常,其他为异常)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "IpmiStatus",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理网卡状态(0为正常,其他为异常,Speed单位为Mb/s,表示千兆/万兆网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "InterfaceName",
                "InterfaceSpeed"
            ],
            "name": "PhysicalNetworkInterface",
            "namespace": "ZStack/Host"
        },
        {
            "description": "XFS文件系统碎片化程度百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "DiskXfsFragInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "HostTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ConnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ConnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DisconnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DisconnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "KVM物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "KVMHostTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连KVM接物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "KVMConnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接KVM物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "KVMConnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接KVM物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "KVMDisconnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接KVM物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "KVMDisconnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "ESX物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ESXHostTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接ESX物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ESXConnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接ESX物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ESXConnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接ESX物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ESXDisconnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接ESX物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ESXDisconnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "神龙物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "XDragonHostTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接神龙物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "XDragonConnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接神龙物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "XDragonConnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接神龙物理机数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "XDragonDisconnectedHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接神龙物理机百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "XDragonDisconnectedHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "弹性裸金属网关节点数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "Baremetal2GateWayTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接弹性裸金属网关节点数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "Baremetal2ConnectedGateWayCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已连接弹性裸金属网关节点百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "Baremetal2ConnectedGateWayInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接弹性裸金属网关节点数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "Baremetal2DisconnectedGateWayCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "未连接弹性裸金属网关节点百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "Baremetal2DisconnectedGateWayInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "全部CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPUCapacityTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已使用CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPUUsedCapacityCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已禁用CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPULockedCapacityCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已使用CPU百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPUUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已禁用CPU百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPULockedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "可用CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPUAvailableCapacityCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "可用CPU百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "CPUAvailableCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机已使用CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "CPUUsedCapacityPerHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机已使用CPU百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "CPUUsedCapacityPerHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机可用CPU数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "CPUAvailableCapacityPerHostCount",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机可用CPU百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "CPUAvailableCapacityPerHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryCapacityTotal",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已使用内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已使用内存百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已禁用内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryLockedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "已禁用内存容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryLockedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "剩余内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryAvailableCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "剩余内存容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "MemoryAvailableCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机已使用内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "MemoryUsedCapacityPerHostInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机已使用内存容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "MemoryUsedCapacityPerHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机可用内存容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "MemoryAvailableCapacityPerHostInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机可用内存容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "HypervisorType"
            ],
            "name": "MemoryAvailableCapacityPerHostInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "v2v迁移主机容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "V2VAvailableCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "v2v迁移主机容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "V2VAvailableCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "v2v迁移主机己用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "V2VUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "v2v迁移主机己用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "V2VUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机风扇转速",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "FanSpeedName"
            ],
            "name": "FanSpeedRpm",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机风扇状态(0为正常,其他为异常)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "FanSpeedName"
            ],
            "name": "FanSpeedState",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机CPU温度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "CpuTemperature",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机SSD剩余寿命",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter",
                "SerialNumber"
            ],
            "name": "SSDLifeLeft",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机块设备已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "BlockDeviceUsedCapacityInBytes",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机块设备已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "BlockDeviceUsedCapacityInPercent",
            "namespace": "ZStack/Host"
        },
        {
            "description": "虚拟IP下行网络流量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VipUUID"
            ],
            "name": "VIPInBoundTrafficInBytes",
            "namespace": "ZStack/VIP"
        },
        {
            "description": "虚拟IP下行网络包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VipUUID"
            ],
            "name": "VIPInBoundTrafficInPackages",
            "namespace": "ZStack/VIP"
        },
        {
            "description": "虚拟IP上行网络流量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VipUUID"
            ],
            "name": "VIPOutBoundTrafficInBytes",
            "namespace": "ZStack/VIP"
        },
        {
            "description": "虚拟IP上行网络包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VipUUID"
            ],
            "name": "VIPOutBoundTrafficInPackages",
            "namespace": "ZStack/VIP"
        },
        {
            "description": "项目虚拟机quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VmQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目运行主机百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "RunningVMInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目CPUquota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "CPUQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目内存quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "MemoryQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目GPU quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "GPUQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目亲和组quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "AffinityGroupQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目云盘快照quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VolumeSnapshotQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目数据云盘quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VolumeDataQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目使用存储容量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VolumeCapacityQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目镜像数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "ImageQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目镜像容量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "ImageCapacityQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目使用备份容量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "BackupStorageCapacityQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目备份数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "BackupStorageQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目vxlan 数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VxlanNetworkQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目三层网络数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "L3NetworkQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目安全组数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "SecurityGroupQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目虚拟ip数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "VipQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目弹性IP数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "EipQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目端口转发数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "PortForwardQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目负载均衡数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "LoadBalancerQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "项目监听器数量quota百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [
                "projectUuid"
            ],
            "name": "LoadBalancerListenerQuotaUsedInPercent",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "双管理节点数据库不同步",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "TimeNeededToSyncDB",
            "namespace": "ZStack/MN"
        },
        {
            "description": "仲裁IP不可达",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "DbFencerIpReachable",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点运行时长",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "MNProgressLasts",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点打开的socket数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "MNProgressSocketNum",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点的Java GC情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MNProgressGCStatus",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点的开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MNProgressExpends",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点处理消息数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MNProgressMsgNum",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点线程池情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MNThreadPoolStatus",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点队列情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MNQueueStatus",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql进程运行时长",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "MysqlLasts",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql进程开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MysqlProgressExpends",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql慢SQL数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "MysqlSlowQuery",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysqlprocesslist情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "db",
                "type"
            ],
            "name": "MysqlProcessLists",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql表大小",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "db",
                "type"
            ],
            "name": "MysqlTableSize",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql读请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MysqlQuerys",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql写请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MysqlTransactions",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql打开表及锁情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "table"
            ],
            "name": "MysqlOpenttables",
            "namespace": "ZStack/MN"
        },
        {
            "description": "mysql读cache命中",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MysqlQueryCache",
            "namespace": "ZStack/MN"
        },
        {
            "description": "数据库错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "MysqlDbError",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ManagementNodeIP",
                "type"
            ],
            "name": "ErrorCodes",
            "namespace": "ZStack/MN"
        },
        {
            "description": "prometheus进程运行时长",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip"
            ],
            "name": "PrometheusLasts",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "prometheus进程打开socket数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip"
            ],
            "name": "PrometheusSocketNum",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "prometheus进程开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "PrometheusExpends",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "prometheus进程磁盘空间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "PrometheusDiskSpace",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "prometheus请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "target",
                "type"
            ],
            "name": "PrometheusQueries",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "prometheus单位时间请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "target",
                "type"
            ],
            "name": "PrometheusDeltaQueries",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb进程运行时长",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip"
            ],
            "name": "InfluxdbLasts",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb进程打开socket数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip"
            ],
            "name": "InfluxdbSocketNum",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb进程开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "InfluxdbExpends",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb进程磁盘空间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "InfluxdbDiskSpace",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "table",
                "type"
            ],
            "name": "InfluxdbQueries",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "influxdb单位时间请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "table",
                "type"
            ],
            "name": "InfluxdbDeltaQueries",
            "namespace": "ZStack/Prometheus"
        },
        {
            "description": "内部监控CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUSystemUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "内部监控CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUserUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "内部监控CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUWaitUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "内部监控CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUIdleUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "内部监控CPU已使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUsedUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "内部监控CPU系统进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemCPUAverageSystemUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内部监控CPU用户进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUserUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内部监控CPU等待IO完成平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemCPUAverageWaitUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内部监控CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemCPUAverageIdleUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内部监控CPU平均已使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUsedUtilization",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskTotalCapacityInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘每秒读字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskReadBytesPerSecond",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘每秒读请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskReadRequestPerSecond",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘每秒写字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskWriteBytesPerSecond",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机磁盘每秒写请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskWriteRequestPerSecond",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡接收字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡接收字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllInBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡接收报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInPackets",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡接收报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllInPackets",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡接收错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInErrors",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡接收错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllInErrors",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡发送字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡发送字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡发送报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutPackets",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡发送报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutPackets",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机网卡发送错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutErrors",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机全部网卡发送错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutErrors",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存总字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryTotalBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存空余节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryFreeBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存已使用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存可用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryAvailableBytes",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryFreePercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "弹性裸金属云主机内存使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "Baremetal2VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedPercent",
            "namespace": "ZStack/Baremetal2VM"
        },
        {
            "description": "rest同步API",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "SyncAPIs",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest异步API",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "ASyncAPIs",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest同步API增加量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "IncreaseSyncAPIs",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest异步API增加量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "IncreaseASyncAPIs",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest同步调用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "SyncRests",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest异步调用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "ASyncRests",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest同步调用量增量数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "IncreaseSyncRests",
            "namespace": "ZStack/REST"
        },
        {
            "description": "rest异步调用量增加数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ip",
                "type"
            ],
            "name": "IncreaseASyncRests",
            "namespace": "ZStack/REST"
        },
        {
            "description": "CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAverageUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUSystemUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUserUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUWaitUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU系统进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageSystemUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU用户进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUserUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU等待IO完成平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageWaitUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadOps",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadOps",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteOps",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteOps",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInPackets",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInPackets",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInErrors",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInErrors",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutPackets",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutPackets",
            "namespace": "ZStack/VM"
        },
        {
            "description": "网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutErrors",
            "namespace": "ZStack/VM"
        },
        {
            "description": "全部网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutErrors",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内存已用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控全部内存总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryTotalBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreeBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控内存可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryAvailableBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控内存空闲容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreePercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "内部监控内存已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "zwatch客户端版本",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentVersion",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例崩溃检查模块运行情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentFeaturePvpanic",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUSystemUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUserUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUWaitUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU平均系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageSystemUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU平均用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUserUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU平均IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageWaitUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageIdleUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUsedUtilization",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例全部磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例全部磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例全部磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例全部磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存总字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryTotalBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存空余节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreeBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存已使用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存可用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryAvailableBytes",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreePercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例内存使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例占用物理机的cpu开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUOccupiedByVm",
            "namespace": "ZStack/VM"
        },
        {
            "description": "负载均衡实例占用物理机的内存开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryOccupiedByVm",
            "namespace": "ZStack/VM"
        },
        {
            "description": "5分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn5Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "5分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn5Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "5分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn5Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "5分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn5Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "1分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn1Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "1分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn1Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "1分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn1Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "1分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn1Min",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "TotalVMCount",
            "namespace": "ZStack/VM"
        },
        {
            "description": "运行云主机数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "RunningVMCount",
            "namespace": "ZStack/VM"
        },
        {
            "description": "运行云主机百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "RunningVMInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "停止云主机数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "StoppedVMCount",
            "namespace": "ZStack/VM"
        },
        {
            "description": "停止云主机百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "StoppedVMInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "其他状态云主机数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "OtherStateVMCount",
            "namespace": "ZStack/VM"
        },
        {
            "description": "其他状态云主机百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "OtherStateVMInPercent",
            "namespace": "ZStack/VM"
        },
        {
            "description": "CDP任务已用分配容量使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "CdpTaskUuid",
                "CdpTaskStatus"
            ],
            "name": "CdpTaskUsedCapacityInPercent",
            "namespace": "ZStack/CdpTask"
        },
        {
            "description": "全部可用IP数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableIPCount",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "全部可用IP百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableIPInPercent",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "全部已用IP数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedIPCount",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "全部已用IP百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedIPInPercent",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "全部已禁用IP数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedIPCount",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "全部已禁用IP百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedIPInPercent",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "可用IP数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "L3NetworkUuid",
                "L3NetworkType"
            ],
            "name": "AvailableIPCount",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "可用IP百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "L3NetworkUuid",
                "L3NetworkType"
            ],
            "name": "AvailableIPInPercent",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "已用IP数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "L3NetworkUuid",
                "L3NetworkType"
            ],
            "name": "UsedIPCount",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "已用IP百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "L3NetworkUuid",
                "L3NetworkType"
            ],
            "name": "UsedIPInPercent",
            "namespace": "ZStack/L3Network"
        },
        {
            "description": "云盘总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalVolumeCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "根云盘总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "根云盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "数据云盘总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "数据云盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "可用数据云盘总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ReadyDataVolumeCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "可用数据云盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "ReadyDataVolumeInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "云盘快照总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalVolumeSnapshotCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "根云盘快照总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeSnapshotCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "根云盘快照百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeSnapshotInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "数据云盘快照总数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeSnapshotCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "数据云盘快照百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeSnapshotInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "云盘使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VolumeUuid"
            ],
            "name": "VolumeActualSizeInPercent",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "云盘碎片程度(Ext总数)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VolumeUuid"
            ],
            "name": "VolumeXfsFragCount",
            "namespace": "ZStack/Volume"
        },
        {
            "description": "内部监控CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUSystemUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUserUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUWaitUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUIdleUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU已使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUsedUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU系统进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemCPUAverageSystemUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU用户进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemCPUAverageUserUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU等待IO完成平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemCPUAverageWaitUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemCPUAverageIdleUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "内部监控CPU平均已使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemCPUAverageUsedUtilization",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskTotalCapacityInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘每秒读字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskReadBytesPerSecond",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘每秒读请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskReadRequestPerSecond",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘每秒写字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskWriteBytesPerSecond",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "磁盘每秒写请求数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskWriteRequestPerSecond",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡接收字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡接收字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllInBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡接收报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInPackets",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡接收报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllInPackets",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡接收错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkInErrors",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡接收错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllInErrors",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡发送字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡发送字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡发送报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutPackets",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡发送报数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutPackets",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机网卡发送错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "OperatingSystemNetworkOutErrors",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机全部网卡发送错误报字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemNetworkAllOutErrors",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存总字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryTotalBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存空余节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryFreeBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存已使用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryUsedBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存可用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryAvailableBytes",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryFreePercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "裸金属云主机内存使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BaremetalVMUuid"
            ],
            "name": "OperatingSystemMemoryUsedPercent",
            "namespace": "ZStack/BaremetalVM"
        },
        {
            "description": "全部镜像存储可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableCapacityInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部镜像存储可用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableCapacityInPercent",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像服务器可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "BackupStorageType"
            ],
            "name": "AvailableCapacityInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像服务器可用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "BackupStorageType"
            ],
            "name": "AvailableCapacityInPercent",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部镜像存储已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedCapacityInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部镜像存储已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedCapacityInPercent",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像服务器已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "BackupStorageType"
            ],
            "name": "UsedCapacityInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像服务器已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "BackupStorageType"
            ],
            "name": "UsedCapacityInPercent",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像存储禁用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedCapacityInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像存储禁用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedCapacityInPercent",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllInBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInPackets",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllInPackets",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInErrors",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllInErrors",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllOutBytes",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutPackets",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllOutPackets",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutErrors",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "全部网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "BackupStorageUuid"
            ],
            "name": "NetworkAllOutErrors",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "云主机CPU使用率(兆赫)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmCPUUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机CPU使用率(兆赫)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VmCPUUsageMHZ",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机CPU空闲状态时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VmCPUIdle",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机CPU使用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VmCPUUsed",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机内存使用率(百分比)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "为云主机映射的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryGranted",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机主动读取或写入的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryActive",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "从云主机上回收的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryVmMemCtl",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "备份云主机内存的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryConsumed",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机所需的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VmMemoryEntitlement",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机磁盘使用率(百分比)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmDiskUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机磁盘读速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmDiskRead",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机磁盘写速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmDiskWrite",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机磁盘最大时延",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmDiskMaxTotalLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒向虚拟磁盘发出的读取命令的平均数目",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskNumberReadAveraged",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒向虚拟磁盘发出的写入命令的平均数目",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskNumberWriteAveraged",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机虚拟磁盘读速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskRead",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机虚拟磁盘写速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskWrite",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "读虚拟磁盘耗费的平均时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskTotalReadLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "写虚拟磁盘耗费的平均时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "VmVirtualDiskTotalWriteLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机网络总负载",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机接收数据包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkPacketRx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机发送数据包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkPacketTx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机接收数据包平均速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkReceived",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机发送数据包平均速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkTransmitted",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒接收的平均数据量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkByteRx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒发送的平均数据量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "VmNetworkByteTx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机CPU使用率(兆赫)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostCPUUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机CPU使用率(兆赫)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "HostCPUUsageMHZ",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机CPU空闲状态时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "HostCPUIdle",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机CPU使用量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "CPUNum"
            ],
            "name": "HostCPUUsed",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机内存使用率(百分比)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "为物理机分配的内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryGranted",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机主动读取或写入的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryActive",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "从云主机上回收的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryHostMemCtl",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "备份云主机内存的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryConsumed",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云主机所需的物理内存量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid"
            ],
            "name": "HostMemoryEntitlement",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机磁盘使用率(百分比)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostDiskUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机磁盘读速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostDiskRead",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机磁盘写速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostDiskWrite",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机磁盘最大时延",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostDiskMaxTotalLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机每秒向虚拟磁盘发出的读取命令的平均数目",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskNumberReadAveraged",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机每秒向虚拟磁盘发出的写入命令的平均数目",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskNumberWriteAveraged",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机虚拟磁盘读速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskRead",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机虚拟磁盘写速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskWrite",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "读取虚拟磁盘耗费的平均时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskTotalReadLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "写入虚拟磁盘耗费的平均时间",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "DiskDeviceLetter"
            ],
            "name": "HostVirtualDiskTotalWriteLatency",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机网络总负载",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkUsage",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机接收数据包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkPacketRx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机发送数据包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkPacketTx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机接收数据包平均速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkReceived",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "物理机发送数据包平均速率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkTransmitted",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒接收的平均数据量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkByteRx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "每秒发送的平均数据量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "HostUuid",
                "NetworkDeviceLetter"
            ],
            "name": "HostNetworkByteTx",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "主存储全部容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部可用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalAvailableCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalUsedCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部已禁用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储全部已禁用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [],
            "name": "TotalLockedCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "TotalPhysicalCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "AvailableCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储可用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "AvailableCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "UsedCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "UsedCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储可用物理容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "AvailablePhysicalCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储可用物理容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "AvailablePhysicalCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储已用物理容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "UsedPhysicalCapacityInBytes",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储已用物理容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "UsedPhysicalCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "根云盘数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "RootVolumeCount",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "数据云盘数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "DataVolumeCount",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "快照数量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PrimaryStorageType"
            ],
            "name": "SnapshotCount",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "Ceph存储池可用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PoolName"
            ],
            "name": "PoolAvailableCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "Ceph存储池已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "PrimaryStorageUuid",
                "PoolName"
            ],
            "name": "PoolUsedCapacityInPercent",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "镜像总数",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "TotalImageCount",
            "namespace": "ZStack/Image"
        },
        {
            "description": "可用镜像总数",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "ReadyImageCount",
            "namespace": "ZStack/Image"
        },
        {
            "description": "可用镜像百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "ReadyImageInPercent",
            "namespace": "ZStack/Image"
        },
        {
            "description": "根云盘镜像数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeTemplateCount",
            "namespace": "ZStack/Image"
        },
        {
            "description": "根云盘镜像百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "RootVolumeTemplateInPercent",
            "namespace": "ZStack/Image"
        },
        {
            "description": "数据云盘镜像数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeTemplateCount",
            "namespace": "ZStack/Image"
        },
        {
            "description": "数据云盘镜像百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "DataVolumeTemplateInPercent",
            "namespace": "ZStack/Image"
        },
        {
            "description": "ISO镜像数量",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "ISOCount",
            "namespace": "ZStack/Image"
        },
        {
            "description": "ISO镜像百分比",
            "driver": "MysqlDatabaseDriver",
            "labelNames": [],
            "name": "ISOInPercent",
            "namespace": "ZStack/Image"
        },
        {
            "description": "CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAverageUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUSystemUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUserUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUWaitUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU系统进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageSystemUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU用户进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUserUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU等待IO完成平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageWaitUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadOps",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadOps",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteOps",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteOps",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInPackets",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInPackets",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInErrors",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInErrors",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutPackets",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutPackets",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutErrors",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "全部网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutErrors",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内存已用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控全部内存总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryTotalBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreeBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控内存可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryAvailableBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控内存空闲容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreePercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "内部监控内存已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "zwatch客户端版本",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentVersion",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例崩溃检查模块运行情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentFeaturePvpanic",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUSystemUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUserUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUWaitUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU平均系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageSystemUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU平均用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUserUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU平均IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageWaitUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageIdleUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUsedUtilization",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例全部磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例全部磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例全部磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例全部磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存总字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryTotalBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存空余节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreeBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存已使用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存可用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryAvailableBytes",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreePercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例内存使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedPercent",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例占用物理机的cpu开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUOccupiedByVm",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例占用物理机的内存开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryOccupiedByVm",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "5分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn5Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "5分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn5Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "5分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn5Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "5分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn5Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "1分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn1Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "1分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn1Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "1分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn1Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "1分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn1Min",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "许可证有效期(天)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "UUID",
                "ResourceType"
            ],
            "name": "LicenseEnabledDays",
            "namespace": "ZStack/License"
        },
        {
            "description": "负载均衡监听器健康状态(单个网卡,1表示正常,0表示异常)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "LoadBalancerUuid",
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendStatus",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器活跃连接数(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器流入流量(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendTrafficInBytes",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器流出流量(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendTrafficOutBytes",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器健康状态(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerStatus",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器活跃连接数(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器流入流量(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerTrafficInBytes",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器流出流量(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerTrafficOutBytes",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器连接使用率(单个服务器,百分比)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerSessionUsage",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器拒绝连接数(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerRefusedSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器并发连接数(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerConcurrentSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器新建连接数(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerNewSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器全部连接数(单个服务器)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid"
            ],
            "name": "LoadBalancerTotalSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器拒绝连接数(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendRefusedSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器并发连接数(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendConcurrentSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器新建连接数(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendNewSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "负载均衡监听器全部连接数(单个网卡)",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "ListenerUuid",
                "NicIpAddress"
            ],
            "name": "LoadBalancerBackendTotalSessionNumber",
            "namespace": "ZStack/LoadBalancer"
        },
        {
            "description": "CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAverageUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "CPUIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUAllIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU系统进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUSystemUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU用户进程使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUserUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU等待IO完成使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUWaitUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "OperatingSystemCPUUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU系统进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageSystemUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU用户进程平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUserUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU等待IO完成平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageWaitUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemCPUAverageUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadOps",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘读IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadOps",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteOps",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘写IOPS",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteOps",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskReadBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘读速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllReadBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter"
            ],
            "name": "DiskWriteBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘写速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllWriteBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllFreeCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "DiskAllUsedCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘剩余容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘剩余容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskFreeCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘已使用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "磁盘已使用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "DiskDeviceLetter",
                "MountPoint",
                "FSType"
            ],
            "name": "DiskUsedCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡入速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInPackets",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡入包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInPackets",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkInErrors",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡入错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllInErrors",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡出速度",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutPackets",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡出包数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutPackets",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "NetworkOutErrors",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "全部网卡出错误数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "NetworkAllOutErrors",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryFreeInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内存已用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryUsedInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控全部内存总容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryTotalBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控内存空闲容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreeBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控内存已用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控内存可用容量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryAvailableBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控内存空闲容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryFreePercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "内部监控内存已用容量百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "OperatingSystemMemoryUsedPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "zwatch客户端版本",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentVersion",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例崩溃检查模块运行情况",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "ZWatchAgentFeaturePvpanic",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUSystemUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUserUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUWaitUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "CPUNum"
            ],
            "name": "VRouterCPUUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU平均系统占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageSystemUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU平均用户占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUserUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU平均IO等待占用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageWaitUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU平均空闲率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageIdleUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例CPU平均使用率",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterCPUAverageUsedUtilization",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例全部磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例全部磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllFreeCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例全部磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例全部磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterDiskAllUsedCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例磁盘可用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例磁盘百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskFreeCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例磁盘使用字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例磁盘使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "MountPoint",
                "FSType"
            ],
            "name": "VRouterDiskUsedCapacityInPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存总字节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryTotalBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存空余节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreeBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存已使用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存可用节数",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryAvailableBytes",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存空闲百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryFreePercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例内存使用百分比",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "VRouterMemoryUsedPercent",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例占用物理机的cpu开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "CPUOccupiedByVm",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例占用物理机的内存开销",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid"
            ],
            "name": "MemoryOccupiedByVm",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "5分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn5Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "5分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn5Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "5分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn5Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "5分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn5Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "1分钟网卡入字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInBytesIn1Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "1分钟网卡入包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkInPacketsIn1Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "1分钟网卡出字节量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutBytesIn1Min",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "1分钟网卡出包量",
            "driver": "PrometheusDatabaseDriver",
            "labelNames": [
                "VMUuid",
                "NetworkDeviceLetter"
            ],
            "name": "TotalNetworkOutPacketsIn1Min",
            "namespace": "ZStack/SlbVmInstance"
        }

所有事件元数据

用户可以用GetAllEventMetadata获得系统所有已定义事件以及其元数据,以3.9.0版本为例:

{
    "events": [
        {
            "description": "密码机状态变化",
            "labelNames": [
                "OldState",
                "NewState",
                "Reason"
            ],
            "name": "SecurityMachineStateChange",
            "namespace": "ZStack/SecurityMachine"
        },
        {
            "description": "第三方平台报警",
            "labelNames": [
                "Uuid",
                "PlatformUuid",
                "Product",
                "Service",
                "Message",
                "DataSource",
                "Metric",
                "AlertLevel",
                "AlertTime",
                "Dimensions"
            ],
            "name": "ThirdpartyAlert",
            "namespace": "ZStack/Thirdparty"
        },
        {
            "description": "物理机状态发生变化",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "HostStatusChanged",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机上发现了未受系统管控的云主机",
            "labelNames": [
                "UnknownVMIdentity"
            ],
            "name": "HostUnknownVMDetected",
            "namespace": "ZStack/Host"
        },
        {
            "description": "对物理机上云主机操作失败",
            "labelNames": [
                "VmUuidsString",
                "ErrorVMOperation",
                "Details"
            ],
            "name": "HostVMOperateErrorDetected",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机失联",
            "labelNames": [
                "Error"
            ],
            "name": "HostDisconnected",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机连通性检测",
            "labelNames": [
                "CheckProcess",
                "Details"
            ],
            "name": "HostCheckAlive",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机上高可用云主机自我仲裁已触发",
            "labelNames": [
                "PrimaryStorageUuid",
                "VmUuidsString",
                "Reason"
            ],
            "name": "VMHAHostSelfFencerTriggered",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机上挂载路径错误",
            "labelNames": [
                "FaultMountPoint"
            ],
            "name": "FaultMountPointOnHost",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机已连接",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "HostConnected",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机网络链路上线",
            "labelNames": [
                "PhysicalNicFromBond",
                "PhysicalNicName",
                "PhysicalNicAddr",
                "PhysicalNicStatus"
            ],
            "name": "HostPhysicalNicStatusUp",
            "namespace": "ZStack/Host"
        },
        {
            "description": "物理机网络链路离线",
            "labelNames": [
                "PhysicalNicFromBond",
                "PhysicalNicName",
                "PhysicalNicAddr",
                "PhysicalNicStatus"
            ],
            "name": "HostPhysicalNicStatusDown",
            "namespace": "ZStack/Host"
        },
        {
            "description": "项目回收策略",
            "labelNames": [
                "Retire"
            ],
            "name": "IAM2ProjecRetire",
            "namespace": "ZStack/IAM2Project"
        },
        {
            "description": "Session强制退出",
            "labelNames": [
                "accountUuid",
                "userUuid"
            ],
            "name": "SessionForceLogout",
            "namespace": "ZStack/Identity"
        },
        {
            "description": "管理节点失联",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "ManagementNodeLeft",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点已连接",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "ManagementNodeJoin",
            "namespace": "ZStack/MN"
        },
        {
            "description": "管理节点时间回溯",
            "labelNames": [
                "ManagementNodeIP"
            ],
            "name": "ManagementNodeTemporalRegression",
            "namespace": "ZStack/MN"
        },
        {
            "description": "云主机高可用进程",
            "labelNames": [
                "HAProcess",
                "HADetails"
            ],
            "name": "VMHAProcess",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机在物理机上的状态发生变化",
            "labelNames": [
                "OldState",
                "NewState"
            ],
            "name": "VMStateChanged",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机在物理机HA启动",
            "labelNames": [
                "DestinationHostUuid"
            ],
            "name": "VMHAStarted",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机在物理机上的状态发生变化",
            "labelNames": [
                "OldState",
                "NewState",
                "SourceHostUuid",
                "DestinationHostUuid"
            ],
            "name": "VMStateChangedOnHost",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机处于in shutdown状态",
            "labelNames": [
                "Error"
            ],
            "name": "VMStateInShutdown",
            "namespace": "ZStack/VM"
        },
        {
            "description": "FT辅助云主机启动失败",
            "labelNames": [
                "Error"
            ],
            "name": "VMFailedRecoverFaultTolerance",
            "namespace": "ZStack/VM"
        },
        {
            "description": "云主机崩溃",
            "labelNames": [
                "Error"
            ],
            "name": "VmCrash",
            "namespace": "ZStack/VM"
        },
        {
            "description": "FT辅助云主机开始恢复",
            "labelNames": [
                "FTDetails"
            ],
            "name": "VMRequestRecoverFaultTolerance",
            "namespace": "ZStack/VM"
        },
        {
            "description": "物理机进入维护模式触发云主机迁移失败",
            "labelNames": [
                "hostUuid",
                "vmUuid",
                "Error"
            ],
            "name": "MigrateVMFailedWithHostMaintain",
            "namespace": "ZStack/HA"
        },
        {
            "description": "CDP任务失败",
            "labelNames": [
                "Error"
            ],
            "name": "CdpTaskFailed",
            "namespace": "ZStack/CdpTask"
        },
        {
            "description": "CDP任务状态异常切换",
            "labelNames": [
                "Error"
            ],
            "name": "CdpTaskStatusAbnormallyChanged",
            "namespace": "ZStack/CdpTask"
        },
        {
            "description": "镜像服务器失联",
            "labelNames": [
                "Error"
            ],
            "name": "BackupStorageDisconnected",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "镜像服务器已连接",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "BackupStorageConnected",
            "namespace": "ZStack/BackupStorage"
        },
        {
            "description": "短信发送失败",
            "labelNames": [
                "PhoneNumber",
                "ErrCode",
                "ErrMessage"
            ],
            "name": "SendSmsFailed",
            "namespace": "ZStack/SNS"
        },
        {
            "description": "vCenter物理机时间异常",
            "labelNames": [
                "TimeDifferenceInHour"
            ],
            "name": "VCenterHostWrongDateTime",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "vCenter资源事件",
            "labelNames": [
                "Description",
                "Severity",
                "Time",
                "Target",
                "User"
            ],
            "name": "VCenterResourceEvent",
            "namespace": "ZStack/VCenter"
        },
        {
            "description": "云盘快照定时任务",
            "labelNames": [
                "VMSchedulerName",
                "VMSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "VolumeSnapshotScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "云盘备份定时任务",
            "labelNames": [
                "VMSchedulerName",
                "VMSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "VolumeBackupScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "云主机启动定时任务",
            "labelNames": [
                "VMSchedulerName",
                "VMSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "VMStartScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "云主机停止定时任务",
            "labelNames": [
                "VMSchedulerName",
                "VMSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "VMStopScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "云主机重启定时任务",
            "labelNames": [
                "VMSchedulerName",
                "VMSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "VMRebootScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "数据库备份定时任务",
            "labelNames": [
                "DatabaseSchedulerName",
                "DatabaseSchedulerExecutedResult",
                "isSuccess"
            ],
            "name": "DatabaseBackupScheduler",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "定时任务组结果失败",
            "labelNames": [
                "SchedulerJobGroupName",
                "TotalExecutionJobCount",
                "FailedExecutionJobCount",
                "SchedulerJobGroupErrors"
            ],
            "name": "JobGroupFailure",
            "namespace": "ZStack/Scheduler"
        },
        {
            "description": "yunshan网络异常事件",
            "labelNames": [
                "RequestContent",
                "Results",
                "Details"
            ],
            "name": "YunshanNSPInforEvents",
            "namespace": "ZStack/SDN"
        },
        {
            "description": "主存储失联",
            "labelNames": [
                "Error"
            ],
            "name": "PrimaryStorageDisconnected",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储已连接",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "PrimaryStorageConnected",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "主存储到物理机连接状态检查失败",
            "labelNames": [
                "Error",
                "HostUuid"
            ],
            "name": "PrimaryStorageHostDisconnected",
            "namespace": "ZStack/PrimaryStorage"
        },
        {
            "description": "路由器失联",
            "labelNames": [
                "Error"
            ],
            "name": "VRouterDisconnected",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "路由器异常停机",
            "labelNames": [
                "OldState",
                "NewState",
                "ApplianceVmType"
            ],
            "name": "VRouterPaused",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "路由器已连接",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "VRouterConnected",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "路由器状态异常",
            "labelNames": [
                "Error"
            ],
            "name": "VRouterUnhealthy",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "路由器状态正常",
            "labelNames": [
                "NewStatus"
            ],
            "name": "VRouterHealthy",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "路由器高可用组主备发生切换",
            "labelNames": [
                "Error"
            ],
            "name": "MasterVpcRouterChanged",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "VPC路由器磁盘空间被异常文件占用",
            "labelNames": [
                "DiskTotal",
                "DiskUsed",
                "DisKUsage",
                "AbnormalFiles"
            ],
            "name": "VRouterAbnormalFilesExists",
            "namespace": "ZStack/VRouter"
        },
        {
            "description": "负载均衡实例已连接",
            "labelNames": [
                "Error"
            ],
            "name": "SlbVmInstanceDisconnected",
            "namespace": "ZStack/SlbVmInstance"
        },
        {
            "description": "负载均衡实例失联",
            "labelNames": [
                "OldStatus",
                "NewStatus"
            ],
            "name": "SlbVmInstanceConnected",
            "namespace": "ZStack/SlbVmInstance"
        }
    ],
    "success": true
}
  • VMHAStarted (虚拟机在另一台物理机HA启动)
    • DestinationHostUuid:VM HA启动的物理机UUID
  • VMStateChangedOnHost (虚拟机在物理机上的状态发生变化)
    • OldState: 之前的状态,Started,Stopped ...
    • NewState:新状态
    • SourceHostUuid:之前所在物理机UUID
    • DestinationHostUuid:当前所在物理机UUID
    Note:

    SourceHostUuid和DestinationHostUuid可能相同

  • VRouterDisconnected (VR失联)
    • Error:导致失联错误的字符串
  • BackupStorageDisconnected(镜像服务器失联)
    • Error:导致失联错误的字符串
  • HostStatusChanged (物理机状态改变)
    • OldStatus:之前状态
    • NewStatus:当前状态
    Note:

    用户操作,例如执行重连,导致的状态变化不会触发该事件

  • HostUnknownVMDetected (物理机上发现了未受ZStack管控的虚拟机)
    • UnknownVMIdentity:未知虚拟机的ID(virsh list看到的VM ID)
  • HostDisconnected (物理机失联)
    • Error:导致失联错误的字符串
  • PrimaryStorageDisconnected(主存储失联)
    • Error:导致失联错误的字符串
开发手册 | 4.8.38 | ZStack Cloud · ZCF | ZStack 资源中心