获取自定义监控告警规则
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Id | string | 否 | 自定义告警规则 ID。 | 28547072 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "8abcb91f-d266-4073-b907-2ed670378ed1",
"AlertRule": {
"Id": 16035,
"Name": "error_rule",
"Owner": "279961421580845157",
"Enabled": true,
"Notification": {
"SilenceStartTime": "00:00:00",
"SilenceEndTime": "00:00:00",
"IntervalInMinutes": 30,
"Maximum": 3,
"Channels": [
"Sms"
],
"Receivers": [
{
"ReceiverType": "WebhookUrl",
"ReceiverValues": [
"123123123"
],
"Extension": "{\"atAll\":true}"
}
]
},
"TriggerCondition": {
"Type": "Error",
"Extension": {
"Error": {
"StreamTaskIds": [
123123
],
"AutoRerunAlert": false
},
"Timeout": {
"TimeoutInMinutes": 10
},
"UnFinished": {
"UnFinishedTime": "12:00"
},
"CycleUnfinished": {
"CycleAndTime": [
{
"CycleId": 1,
"Time": "12:00"
}
]
},
"InstanceErrorCount": {
"Count": 10
},
"InstanceErrorPercentage": {
"Percentage": 10
},
"InstanceTransferFluctuate": {
"Trend": "10",
"Percentage": 10
}
},
"Target": {
"Type": "Task",
"Ids": [
32570
],
"AllowTasks": [
123123
]
}
}
}
}
错误码
访问错误中心查看更多错误码。