Updates a custom alert monitoring rule.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | No | The rule ID. | 105412 |
Name | string | No | The name of the rule. | collection_name |
Owner | string | No | The ID of the Alibaba Cloud account used by the owner of the rule. | 193379**** |
Enabled | boolean | No | Specifies whether to enable the rule. | true |
TriggerCondition | object | No | The alert triggering condition. | |
Type | string | No | The alert type. Valid values:
| ERROR |
Extension | object | No | The extended information about the rule. This parameter is required for specific types of alerts. | |
Error | object | No | The configuration for an alert of the Error type. | |
StreamTaskIds | array | No | The IDs of the real-time computing tasks. This parameter is required when you monitor real-time computing tasks. | |
long | No | The ID of the real-time computing task. | 123123 | |
AutoRerunAlert | boolean | No | Specifies whether to trigger an alert if a batch synchronization task is automatically rerun upon a failure. | true |
Timeout | object | No | The configuration for an alert of the Timeout type. | |
TimeoutInMinutes | integer | No | The timeout period. Unit: minutes. Valid values: [1, 21600]. | 10 |
UnFinished | object | No | The configuration for an alert of the UnFinished type. | |
UnFinishedTime | string | No | The latest completion time of the instance. The period is in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59]. | 12:00 |
CycleUnfinished | object | No | The configuration for an alert of the CycleUnfinished type. | |
CycleAndTime | array<object> | No | The configurations of the scheduling cycle and timeout period of the instance. | |
object | No | |||
CycleId | integer | No | The ID of the scheduling cycle of the instance. Valid values: [1,288]. | 1 |
Time | string | No | The latest completion time of the instance within the scheduling cycle. The time is in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59]. | 01:00 |
InstanceErrorCount | object | No | The configuration for an alert of the InstanceErrorCount type. | |
Count | integer | No | The maximum number of instances on which an error occurs. Valid values: [1,10000]. | 10 |
InstanceErrorPercentage | object | No | The configuration for an alert of the InstanceErrorPercentage type. | |
Percentage | integer | No | The maximum percentage of instances on which an error occurs in the workspace to the total number of instances. Valid values: [1-100]. | 10 |
InstanceTransferFluctuate | object | No | The configuration for an alert of the InstanceTransferFluctuate type. | |
Trend | string | No | The way in which the number of auto triggered node instances that are generated in your workspace fluctuates. Valid values:
| abs |
Percentage | integer | No | The maximum percentage of fluctuation in the number of auto triggered node instances that are generated in your workspace. Valid values: [1-100]. | 10 |
Target | object | No | The monitored objects. | |
Type | string | No | The type of the monitored objects. Valid values:
| Task |
Ids | array | No | The IDs of monitored objects. | |
long | No | The ID of the monitored object. | 1894580 | |
AllowTasks | array | No | The nodes that are not to be monitored. | |
long | No | The ID of the node that is not to be monitored. | 1111 | |
Notification | object | No | The configuration for the alert notification. | |
SilenceStartTime | string | No | The start time for silence. The time is in the HH:mm:ss format. | 00:00:00 |
SilenceEndTime | string | No | The end time for silence. The time is in the HH:mm:ss format. | 00:00:00 |
IntervalInMinutes | integer | No | The interval at which an alert notification is sent. Unit: minutes. Valid values: [5,10000]. | 30 |
Maximum | integer | No | The maximum number of times an alert notification can be sent within a calendar day. Valid values: [1, 10000]. | 3 |
Channels | array | No | The alert notification channels. | |
string | No | The alert notification channel. Valid values:
| Sms | |
Receivers | array<object> | No | The alert recipients. | |
object | No | |||
ReceiverType | string | No | The type of the alert recipient. Valid valves:
| TaskOwner |
ReceiverValues | array | No | The alert recipients. | |
string | No | The ID of the alert recipient. If the ReceiverType parameter is set to AliUid, set this parameter to an Alibaba Cloud account ID. If the ReceiverType parameter is set to ShiftSchedule, set this parameter to a shift schedule ID. If the ReceiverType parameter is set to WebhookUrl, DingdingUrl, FeishuUrl, or WeixinUrl, set this parameter to a corresponding URL. | 123123 | |
Extension | string | No | The additional configuration of the alert recipient. If the ReceiverType parameter is set to DingdingUrl, you can set this parameter to {"atAll":true} to remind all members in a DingTalk group. | {"atAll":true} |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D85FEE2B-6174-5817-AF9E-FDD02FEDA5BC",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.