You need to enable JavaScript to run this app.
导航
GetAlarmRule - 获取告警策略详细信息
最近更新时间:2025.05.13 16:50:39首次发布时间:2022.12.27 10:18:24
我的收藏
有用
有用
无用
无用

获取告警策略详细信息

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

GetAlarmRule

要执行的操作,取值:GetAlarmRule。

Version
String

2022-07-01

API的版本,取值:2022-07-01。

ID
String

1913591797129412608

规则ID

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
QuotaAlarmRule
Object

{"RuleID":"1917140323878297600","RuleName":"test1","ProviderCode":"iam","ProductName":"平台服务","QuotaCode":"policy","QuotaType":"normal","Description":"","Dimensions":"[{"Name":"region_code","Value":""}]","AlarmType":"usage","Threshold":"80","SilenceTime":60,"EnableState":"enable","Statistics":"avg","MetricUnit":"Count","CreatedTime":"2025-04-29 16:54:07","UpdatedTime":"2025-04-29 16:55:15"}

告警规则

请求示例

http://open.volcengineapi.com/?Version=2022-07-01&Action=GetAlarmRule
&ID=1605781619627524096
text

返回示例

{
    "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"
        }
    }
}
text

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
500
ServiceFailure

The request processing has failed because of an unknown error.

服务错误