调用DescribeMetricRuleCount接口获取各种状态报警规则的数量。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Namespace | string | 否 | 云服务的命名空间。详情请参见云产品监控项。 | acs_ecs_dashboard |
MetricName | string | 否 | 监控项名称。详情请参见云产品监控项。 | cpu_total |
返回参数
示例
正常返回示例
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 |
402 | LimitExceeded | The quota for this customer had been reached. |
429 | Throttli∂ngException | The request was denied due to request throttling. |
500 | InternalError | The request processing has failed due to some unknown error. |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史