Consulte la liste des règles d'alerte déclenchées par événement.
Description de l'opération
Cette rubrique fournit un exemple pour consulter les détails de la règle d'alerte déclenchée par événement testRule.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
cms:DescribeEventRuleTargetList |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RuleName |
string |
Oui |
Le nom de la règle d'alerte déclenchée par événement. |
testRule |
Pour plus d'informations sur les paramètres de requête courants, consultez Paramètres courants.
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| Code |
string |
Le code d'état. Remarque
Une valeur de 200 indique que l'opération a réussi. |
200 |
| Message |
string |
Le message d'erreur. |
La requête n'est pas autorisée |
| RequestId |
string |
L'identifiant de la requête. |
87170bc7-e28a-4c93-b9bf-90a1dbe84736 |
| ContactParameters |
object |
||
| ContactParameter |
array<object> |
La méthode de notification du groupe de contacts d'alerte. |
|
|
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> |
La méthode de notification de 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> |
La méthode de notification de Simple Message Queue (anciennement 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> |
La méthode de notification par rappel d'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> |
La méthode de notification de 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> |
Les paramètres de l'API de rappel. |
|
|
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 |
Exemples
JSON format
{
"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"
}
]
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 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. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.