描述
查询指定或全部报警规则设置。
请求类型
GET/POST
请求参数
返回参数
Alarm的参数
错误编码
示例
- [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//metrics.cn-hangzhou.aliyuncs.com/?Action=ListAlarm
- [backcolor=transparent]&[backcolor=transparent]PageSize[backcolor=transparent]=[backcolor=transparent]2
- [backcolor=transparent]&[backcolor=transparent]Dimension[backcolor=transparent]=%[backcolor=transparent]7B[backcolor=transparent]%[backcolor=transparent]22instanceId[backcolor=transparent]%[backcolor=transparent]22[backcolor=transparent]%[backcolor=transparent]3A[backcolor=transparent]%[backcolor=transparent]22[backcolor=transparent] i[backcolor=transparent]-[backcolor=transparent]abcdefgh123456[backcolor=transparent]%[backcolor=transparent]22[backcolor=transparent]%[backcolor=transparent]7D
- [backcolor=transparent]&[backcolor=transparent]Namespace[backcolor=transparent]=[backcolor=transparent]acs_ecs_dashboard
- [backcolor=transparent]&[backcolor=transparent]PageNumber[backcolor=transparent]=[backcolor=transparent]1
- [backcolor=transparent]&<公共请求参数>
XML格式
- [backcolor=transparent]<ListAlarmResponse>
- [backcolor=transparent] [backcolor=transparent]<NextToken>[backcolor=transparent]2[backcolor=transparent]</NextToken>
- [backcolor=transparent] [backcolor=transparent]<RequestId>[backcolor=transparent]CC2CDD2B-4EA5-43CD-BEE3-758E93C36B7F[backcolor=transparent]</RequestId>
- [backcolor=transparent] [backcolor=transparent]<AlarmList>
- [backcolor=transparent] [backcolor=transparent]<Alarm>
- [backcolor=transparent] [backcolor=transparent]<Period>[backcolor=transparent]300[backcolor=transparent]</Period>
- [backcolor=transparent] [backcolor=transparent]<Statistics>[backcolor=transparent]Average[backcolor=transparent]</Statistics>
- [backcolor=transparent] [backcolor=transparent]<Name>[backcolor=transparent]ecs_cpu_total[backcolor=transparent]</Name>
- [backcolor=transparent] [backcolor=transparent]<MetricName>[backcolor=transparent]cpu_total[backcolor=transparent]</MetricName>
- [backcolor=transparent] [backcolor=transparent]<State>[backcolor=transparent]OK[backcolor=transparent]</State>
- [backcolor=transparent] [backcolor=transparent]<Threshold>[backcolor=transparent]90[backcolor=transparent]</Threshold>
- [backcolor=transparent] [backcolor=transparent]<Enable>[backcolor=transparent]true[backcolor=transparent]</Enable>
- [backcolor=transparent] [backcolor=transparent]<SilenceTime>[backcolor=transparent]86400[backcolor=transparent]</SilenceTime>
- [backcolor=transparent] [backcolor=transparent]<NotifyType>[backcolor=transparent]1[backcolor=transparent]</NotifyType>
- [backcolor=transparent] [backcolor=transparent]<Dimensions>[backcolor=transparent]["{\"instanceId\":\" i-abcdefgh123456\"}"][backcolor=transparent]</Dimensions>
- [backcolor=transparent] [backcolor=transparent]<Namespace>[backcolor=transparent]acs_ecs_dashboard[backcolor=transparent]</Namespace>
- [backcolor=transparent] [backcolor=transparent]<ContactGroups>[backcolor=transparent]["test4nudou"][backcolor=transparent]</ContactGroups>
- [backcolor=transparent] [backcolor=transparent]<Id>[backcolor=transparent]putNewAlarm_group_e8da18b9-bc95-4edf-a8bf-159eb6c8286b[backcolor=transparent]</Id>
- [backcolor=transparent] [backcolor=transparent]<EndTime>[backcolor=transparent]24[backcolor=transparent]</EndTime>
- [backcolor=transparent] [backcolor=transparent]<StartTime>[backcolor=transparent]0[backcolor=transparent]</StartTime>
- [backcolor=transparent] [backcolor=transparent]<ComparisonOperator>[backcolor=transparent]>=[backcolor=transparent]</ComparisonOperator>
- [backcolor=transparent] [backcolor=transparent]</Alarm>
- [backcolor=transparent] [backcolor=transparent]<Alarm>
- [backcolor=transparent] [backcolor=transparent]<Period>[backcolor=transparent]300[backcolor=transparent]</Period>
- [backcolor=transparent] [backcolor=transparent]<Statistics>[backcolor=transparent]Average[backcolor=transparent]</Statistics>
- [backcolor=transparent] [backcolor=transparent]<Name>[backcolor=transparent]ecs_diskusage_utilization[backcolor=transparent]</Name>
- [backcolor=transparent] [backcolor=transparent]<MetricName>[backcolor=transparent]diskusage_utilization[backcolor=transparent]</MetricName>
- [backcolor=transparent] [backcolor=transparent]<State>[backcolor=transparent]OK[backcolor=transparent]</State>
- [backcolor=transparent] [backcolor=transparent]<Threshold>[backcolor=transparent]90[backcolor=transparent]</Threshold>
- [backcolor=transparent] [backcolor=transparent]<Enable>[backcolor=transparent]true[backcolor=transparent]</Enable>
- [backcolor=transparent] [backcolor=transparent]<SilenceTime>[backcolor=transparent]86400[backcolor=transparent]</SilenceTime>
- [backcolor=transparent] [backcolor=transparent]<NotifyType>[backcolor=transparent]1[backcolor=transparent]</NotifyType>
- [backcolor=transparent] [backcolor=transparent]<Dimensions>[backcolor=transparent]["{\"instanceId\":\" i-abcdefgh123456\"}"][backcolor=transparent]</Dimensions>
- [backcolor=transparent] [backcolor=transparent]<Namespace>[backcolor=transparent]acs_ecs_dashboard[backcolor=transparent]</Namespace>
- [backcolor=transparent] [backcolor=transparent]<ContactGroups>[backcolor=transparent]["test4nudou"][backcolor=transparent]</ContactGroups>
- [backcolor=transparent] [backcolor=transparent]<Id>[backcolor=transparent]putNewAlarm_group_3233eba5-0dd4-4e80-a5d5-7399dec3d7cc[backcolor=transparent]</Id>
- [backcolor=transparent] [backcolor=transparent]<EndTime>[backcolor=transparent]24[backcolor=transparent]</EndTime>
- [backcolor=transparent] [backcolor=transparent]<StartTime>[backcolor=transparent]0[backcolor=transparent]</StartTime>
- [backcolor=transparent] [backcolor=transparent]<ComparisonOperator>[backcolor=transparent]>=[backcolor=transparent]</ComparisonOperator>
- [backcolor=transparent] [backcolor=transparent]</Alarm>
- [backcolor=transparent] [backcolor=transparent]</AlarmList>
- [backcolor=transparent] [backcolor=transparent]<Success>[backcolor=transparent]true[backcolor=transparent]</Success>
- [backcolor=transparent] [backcolor=transparent]<Code>[backcolor=transparent]200[backcolor=transparent]</Code>
- [backcolor=transparent] [backcolor=transparent]<Total>[backcolor=transparent]27[backcolor=transparent]</Total>
- [backcolor=transparent]</ListAlarmResponse>
JSON格式
- [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"NextToken"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]2[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"EFD27F56-5799-4CE8-B625-56DF3332331C"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"AlarmList"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Alarm"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
- [backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Period"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]300[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Statistics"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"Average"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Name"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"ecs_cpu_total"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"MetricName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"cpu_total"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"State"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"OK"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Threshold"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"90"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Enable"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"SilenceTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]86400[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"NotifyType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Dimensions"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"[\"{\\\"instanceId\\\":\\\" i-abcdefgh123456\\\"}\"]"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Namespace"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"acs_ecs_dashboard"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"ContactGroups"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"[\"test4nudou\"]"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"putNewAlarm_group_e8da18b9-bc95-4edf-a8bf-159eb6c8286b"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"EndTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]24[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"StartTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"ComparisonOperator"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]">="
- [backcolor=transparent] [backcolor=transparent]},[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Period"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]300[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Statistics"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"Average"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Name"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"ecs_diskusage_utilization"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"MetricName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"diskusage_utilization"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"State"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"OK"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Threshold"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"90"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Enable"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"SilenceTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]86400[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"NotifyType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Dimensions"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"[\"{\\\"instanceId\\\":\\\" i-abcdefgh123456\\\"}\"]"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Namespace"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"acs_ecs_dashboard"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"ContactGroups"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"[\"test4nudou\"]"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"putNewAlarm_group_3233eba5-0dd4-4e80-a5d5-7399dec3d7cc"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"EndTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]24[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"StartTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"ComparisonOperator"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]">="
- [backcolor=transparent] [backcolor=transparent]}
- [backcolor=transparent] [backcolor=transparent]]
- [backcolor=transparent] [backcolor=transparent]},[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Success"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Code"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"200"[backcolor=transparent],[backcolor=transparent]
- [backcolor=transparent] [backcolor=transparent]"Total"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]27
- [backcolor=transparent]}