请求参数
接口参数
参数 | 类型 | 位置 | 是否必填 | 描述 |
---|
Action | string | Query | 是 | GetAlarmRule |
Version | string | Query | 是 | 2022-07-01 |
业务变量参数
参数 | 类型 | 位置 | 是否必填 | 描述 |
---|
ID | string | Body | 是 | 告警策略ID |
请求示例
http://open.volcengineapi.com/?Version=2022-07-01&Action=GetAlarmRule
&ID=1605781619627524096
返回示例
{
"ResponseMetadata": {
"RequestId": "20221222130006CE11B28C4C5299E7788C"
},
"Result": {
"QuotaAlarmRule": {
"RuleID": "1605781619627524096",
"RuleName": "策略名",
"ProviderCode": "platformServices",
"ProductName": "平台服务",
"QuotaCode": "quota_test",
"QuotaType": "normal",
"Description": "",
"Dimensions": "[{\"Name\":\"region_code\",\"Value\":\"cn-exclusive-test1\"}]",
"AlarmType": "usage",
"Threshold": "35",
"SilenceTime": 60,
"ReportWays": [
"Sms"
],
"EnableState": "enable",
"Statistics": "avg",
"MetricUnit": "Count",
"CreatedTime": "2022-12-22 12:25:47",
"UpdatedTime": "2022-12-22 12:25:47"
}
}
}