DescribeMetricRuleCount - 获取各种状态报警规则的数量

调用DescribeMetricRuleCount接口获取各种状态报警规则的数量。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Namespacestring

云服务的命名空间。详情请参见云产品监控项

acs_ecs_dashboard
MetricNamestring

监控项名称。详情请参见云产品监控项

cpu_total

返回参数

名称类型描述示例值
object
Codestring

状态码。

说明 200 表示成功。
200
Messagestring

错误信息。

The Request is not authorization.
RequestIdstring

请求 ID。

FF38D33A-67C1-40EB-AB65-FAEE51EDB644
Successboolean

操作是否成功。取值:

  • true:成功。

  • false:失败。

true
MetricRuleCountobject

各类状态报警规则的数量。

Okinteger

正常状态报警规则的数量。

40
Nodatainteger

无数据状态报警规则的数量。

0
Disableinteger

禁用状态报警规则的数量。

0
Totalinteger

报警规则总数量。

45
Alarminteger

报警状态报警规则的数量。

5

示例

正常返回示例

JSON格式

{
  "Code": 200,
  "Message": "The Request is not authorization.",
  "RequestId": "FF38D33A-67C1-40EB-AB65-FAEE51EDB644",
  "Success": true,
  "MetricRuleCount": {
    "Ok": 40,
    "Nodata": 0,
    "Disable": 0,
    "Total": 45,
    "Alarm": 5
  }
}

错误码

HTTP status code错误码错误信息
400%s%s
402LimitExceededThe quota for this customer had been reached.
429Throttli∂ngExceptionThe request was denied due to request throttling.
500InternalErrorThe request processing has failed due to some unknown error.

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史