Consulta a lista de regras de alerta acionadas por evento.
Descrição da operação
Este tópico fornece um exemplo para consultar os detalhes da regra de alerta acionada por evento testRule.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cms:DescribeEventRuleTargetList |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RuleName |
string |
Sim |
O nome da regra de alerta acionada por evento. |
testRule |
Para mais informações sobre parâmetros de solicitação comuns, consulte Parâmetros comuns.
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Code |
string |
O código de status. Nota
Um valor de 200 indica sucesso. |
200 |
| Message |
string |
A mensagem de erro. |
The Request is not authorization. |
| RequestId |
string |
O ID da solicitação. |
87170bc7-e28a-4c93-b9bf-90a1dbe84736 |
| ContactParameters |
object |
||
| ContactParameter |
array<object> |
O método de notificação do grupo de contatos de alerta. |
|
|
object |
|||
| ContactGroupName |
string |
The name of the alert contact group. |
Default alert notification group |
| Level |
string |
The notification level. Valid values: 4: DingTalk and email. . |
3 |
| Id |
string |
The unique identifier of the alert contact group notification method. |
1 |
| FcParameters |
object |
||
| FCParameter |
array<object> |
O método de notificação do Function Compute. |
|
|
object |
|||
| ServiceName |
string |
The service name of Function Compute. |
service1 |
| FunctionName |
string |
The function name. |
fcTest1 |
| Arn |
string |
The Alibaba Cloud Resource Name (ARN). Format:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Id |
string |
The unique identifier of the Function Compute notification method. |
3 |
| Region |
string |
The region of the Function Compute service. |
cn-qingdao |
| MnsParameters |
object |
||
| MnsParameter |
array<object> |
O método de notificação do Simple Message Queue (anteriormente MNS). |
|
|
object |
|||
| Queue |
string |
The name of the Simple Message Queue (formerly MNS) queue. |
testQueue |
| Arn |
string |
The Alibaba Cloud Resource Name (ARN). Format:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Region |
string |
The region of the Simple Message Queue (formerly MNS) service. |
cn-hangzhou |
| Id |
string |
The unique identifier of the Simple Message Queue (formerly MNS) notification method. |
2 |
| Topic |
string |
The topic of the Simple Message Queue (formerly MNS) service. |
topic_sample |
| WebhookParameters |
object |
||
| WebhookParameter |
array<object> |
O método de notificação por callback de URL. |
|
|
object |
|||
| Url |
string |
The callback URL. |
http://www.aliyun.com |
| Method |
string |
The HTTP request method for the callback. GET and POST methods are supported. |
GET |
| Protocol |
string |
The protocol type. |
HTTP |
| Id |
string |
The unique identifier of the URL callback notification method. |
5 |
| SlsParameters |
object |
||
| SlsParameter |
array<object> |
O método de notificação do Simple Log Service (SLS). |
|
|
object |
|||
| Project |
string |
The project name. |
project_test |
| LogStore |
string |
The Logstore name. |
logstore_test |
| Arn |
string |
The Alibaba Cloud Resource Name (ARN). Format:
|
acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c*** |
| Region |
string |
The region of the project. |
cn-hangzhou |
| Id |
string |
The unique identifier of the Simple Log Service notification method. |
4 |
| OpenApiParameters |
object |
||
| OpenApiParameters |
array<object> |
Os parâmetros da API de callback. |
|
|
object |
|||
| Action |
string |
The API name. |
PutLogs |
| Arn |
string |
The Alibaba Cloud Resource Name (ARN).
Format:
|
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx*** |
| Id |
string |
The unique identifier of the API callback notification method. |
3 |
| Product |
string |
The ID of the Alibaba Cloud service to which the API belongs. |
log |
| Region |
string |
The region of the resource. |
cn-hangzhou |
| Role |
string |
The role name. |
MyRole |
| Version |
string |
The API version. |
2019-01-01 |
Exemplos
Resposta de sucesso
JSON formato
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
"ContactParameters": {
"ContactParameter": [
{
"ContactGroupName": "Default alert notification group",
"Level": "3",
"Id": "1"
}
]
},
"FcParameters": {
"FCParameter": [
{
"ServiceName": "service1",
"FunctionName": "fcTest1",
"Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
"Id": "3",
"Region": "cn-qingdao"
}
]
},
"MnsParameters": {
"MnsParameter": [
{
"Queue": "testQueue",
"Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
"Region": "cn-hangzhou",
"Id": "2",
"Topic": "topic_sample"
}
]
},
"WebhookParameters": {
"WebhookParameter": [
{
"Url": "http://www.aliyun.com",
"Method": "GET",
"Protocol": "HTTP",
"Id": "5"
}
]
},
"SlsParameters": {
"SlsParameter": [
{
"Project": "project_test",
"LogStore": "logstore_test",
"Arn": "acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***",
"Region": "cn-hangzhou",
"Id": "4"
}
]
},
"OpenApiParameters": {
"OpenApiParameters": [
{
"Action": "PutLogs",
"Arn": "acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***",
"Id": "3",
"Product": "log",
"Region": "cn-hangzhou",
"Role": "MyRole",
"Version": "2019-01-01"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameterValue | Illegal parameters. | Illegal parameters. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.