Consulta uma regra de monitoramento de alerta personalizada.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Id |
string |
Não |
O ID da regra. |
28547072 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
8abcb91f-d266-4073-b907-2ed**** |
| AlertRule |
object |
As informações sobre a regra. |
|
| Id |
integer |
O ID da regra. |
16035 |
| Name |
string |
O nome da regra. |
error_rule |
| Owner |
string |
O ID da conta Alibaba Cloud utilizada pelo proprietário da regra. |
279961421580845157 |
| Enabled |
boolean |
Indica se a regra está ativada. |
true |
| Notification |
object |
A configuração para a notificação de alerta. |
|
| SilenceStartTime |
string |
The start time for silence. The time is in the HH:mm:ss format. |
00:00:00 |
| SilenceEndTime |
string |
The end time for silence. The time is in the HH:mm:ss format. |
00:00:00 |
| IntervalInMinutes |
integer |
The interval at which an alert notification is sent. Unit: minutes. Valid values: [5,10000]. |
30 |
| Maximum |
integer |
The maximum number of times an alert notification can be sent within a calendar day. Valid values: [1, 10000]. |
3 |
| Channels |
array |
The alert notification channels. |
|
|
string |
The alert notification channel. Valid values:
|
Sms |
|
| Receivers |
array<object> |
The alert recipients. |
|
|
object |
|||
| ReceiverType |
string |
The type of the alert recipient. Valid valves:
|
WebhookUrl |
| ReceiverValues |
array |
The alert recipients. |
|
|
string |
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. |
123123123 |
|
| Extension |
string |
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} |
| TriggerCondition |
object |
A condição de acionamento do alerta. |
|
| Type |
string |
The alert type. Valid values:
|
Error |
| Extension |
object |
The extended information about the rule. This parameter is required for specific types of alerts. |
|
| Error |
object |
The configuration for an alert of the Error type. |
|
| StreamTaskIds |
array |
The IDs of the real-time computing tasks. This parameter is required when you monitor real-time computing tasks. |
|
|
integer |
The ID of the real-time computing task. |
123123 |
|
| AutoRerunAlertEnabled |
boolean |
Indicates whether an alert is triggered if a batch synchronization task is automatically rerun upon a failure. |
false |
| Timeout |
object |
The configuration for an alert of the Timeout type. |
|
| TimeoutInMinutes |
integer |
The timeout period. Unit: minutes. Valid values: [1, 21600]. |
10 |
| UnFinished |
object |
The configuration for an alert of the UnFinished type. |
|
| UnFinishedTime |
string |
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 |
The configuration for an alert of the CycleUnfinished type. |
|
| CycleAndTime |
array<object> |
The configurations of the scheduling cycle and timeout period of the instance. |
|
|
object |
|||
| CycleId |
integer |
The ID of the scheduling cycle of the instance. Valid values: [1,288]. |
1 |
| Time |
string |
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]. |
12:00 |
| InstanceErrorCount |
object |
The configuration for an alert of the InstanceErrorCount type. |
|
| Count |
integer |
The maximum number of instances on which an error occurs. Valid values: [1,10000]. |
10 |
| InstanceErrorPercentage |
object |
The configuration for an alert of the InstanceErrorPercentage type. |
|
| Percentage |
integer |
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 |
The configuration for an alert of the InstanceTransferFluctuate type. |
|
| Trend |
string |
The way in which the number of auto triggered node instances that are generated in your workspace fluctuates. Valid values:
|
10 |
| Percentage |
integer |
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 |
The monitored objects. |
|
| Type |
string |
The type of the monitored objects. Valid values:
|
Task |
| Ids |
array |
The IDs of monitored objects. |
|
|
integer |
The ID of the monitored object. |
32570 |
|
| AllowTasks |
array |
The nodes that are not to be monitored. |
|
|
integer |
The ID of the node that is not to be monitored. |
123123 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "8abcb91f-d266-4073-b907-2ed****",
"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
],
"AutoRerunAlertEnabled": 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
]
}
}
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.