最近更新时间:2021-09-10 12:19:34
获取客户账号下配置的告警策略详细信息(不含关联的实例明细)
GET
请求需包含公共参数
名称 | 类型 | 说明 | 是否必填 |
---|---|---|---|
Action | string | DescribeAlarmPolicy | 是 |
Version | string | 2021-01-01 | 是 |
PolicyId | int | 告警策略ID,详见查询告警策略 | 是 |
支持XML和JSON
{
"data":{
"alarmPolicyList":[
{
"policyId":20000,
"policyName":"磁盘监控",
"productType":0,
"policyType":0,
"enabled":0,
"InstanceInfoCount":10, // 关联实例数量
"triggerRuleList":[
{
"triggerId":10000,
"period":"3m",
"method":"avg",
"compare":"\u003e",
"triggerValue":"90",
"itemName":"磁盘使用率",
"itemKey":"vfs.fs.size",
"units":"%",
"effectBT":"00:00",
"effectET":"23:59",
"tags":"p2\u003dpused",
"interval":"5m",
"points":1,
"maxCount":3
}
],
"contactInfoList":[
{
"contactId":1,
"contactName":"sys-kop",
"contactWay":1,
"contactFlag":1 //联系人类型,1:联系组,2.联系人
}
],
"callbackUrl":""
}
]
},
"totalCount":1,
"requestId": "xxxx"
}
<Data>
<AlarmPolicyList>
<PolicyId>20000</PolicyId>
<PolicyName>磁盘监控</PolicyName>
<ProductType>0</ProductType>
<PolicyType>0</PolicyType>
<Enabled>0</Enabled>
<InstanceInfoCount>10</InstanceInfoCount>
<TriggerRuleList>
<TriggerId>10000</TriggerId>
<Period>3m</Period>
<Method>avg</Method>
<Compare>\u003e</Compare>
<TriggerValue>90</TriggerValue>
<ItemName>磁盘使用率</ItemName>
<ItemKey>vfs.fs.size</ItemKey>
<Units>%</Units>
<EffectBT>00:00</EffectBT>
<EffectET>23:59</EffectET>
<Tags>p2\u003dpused</Tags>
<Interval>5m</Interval>
<Points>1</Points>
<MaxCount>3</MaxCount>
</TriggerRuleList>
<ContactInfoList>
<ContactId>1</ContactId>
<ContactName>sys-kop</ContactName>
<ContactWay>1</ContactWay>
<ContactFlag>1</ContactFlag>
</ContactInfoList>
<CallbackUrl></CallbackUrl>
</AlarmPolicyList>
</Data>
<TotalCount>1</TotalCount>
<RequestId>xxxxx</RequestId>
纯净模式