Queries the details of an event-triggered alert rule.

This topic provides an example on how to query the details of an event-triggered alert rule. In this example, an event-triggered alert rule named testRule is used.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeEventRuleTargetList

The operation that you want to perform. Set the value to DescribeEventRuleTargetList.

RuleName String Yes testRule

The name of the event-triggered alert rule.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Message String User not authorized to operate on the specified resource.

The error message.

RequestId String 87170bc7-e28a-4c93-b9bf-90a1dbe84736

The ID of the request.

Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
MnsParameters Array of MnsParameter

The information about the recipients in Message Service (MNS).

MnsParameter
Arn String acs:log:cn-hangzhou::project/cms-log-mon****/logstore/test****

The Alibaba Cloud Resource Name (ARN) of the MNS queue. Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service
  • Region: the region ID
  • Account: the ID of an Alibaba Cloud account
  • ResourceType: the resource type
  • ResourceId: the resource ID
Id String 2

The ID of the recipient.

Queue String testQueue

The name of the MNS queue.

Region String cn-hangzhou

The region where MNS is deployed.

ContactParameters Array of ContactParameter

The information about the recipients if alert notifications are sent to alert contacts of an alert contact group.

ContactParameter
ContactGroupName String Default alert contact group

The name of the alert contact group.

Id String 1

The ID of the recipient.

Level String 3

The alert notification methods. Valid values:

4: Alert notifications are sent by using DingTalk chatbots and emails.

FcParameters Array of FCParameter

The information about the recipients in Function Compute.

FCParameter
Arn String acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***

The ARN of the function.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service
  • Region: the region ID
  • Account: the ID of an Alibaba Cloud account
  • ResourceType: the resource type
  • ResourceId: the resource ID
FunctionName String fcTest1

The name of the function.

Id String 3

The ID of the recipient.

Region String cn-qingdao

The region where Function Compute is deployed.

ServiceName String service1

The name of the Function Compute service.

SlsParameters Array of SlsParameter

The information about the recipients in Log Service.

SlsParameter
Arn String acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***

The ARN of the Log Service Logstore.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service
  • Region: the region ID
  • Account: the ID of an Alibaba Cloud account
  • ResourceType: the resource type
  • ResourceId: the resource ID
Id String 4

The ID of the recipient.

LogStore String logstore_test

The name of the Logstore.

Project String project_test

The name of the project.

Region String cn-hangzhou

The ID of the region where the Log Service project resides.

WebhookParameters Array of WebhookParameter

The information about the recipients if alert notifications are sent by sending a request to a callback URL.

WebhookParameter
Id String 5

The ID of the recipient.

Method String GET

The HTTP request method. Valid values: GET and POST.

Protocol String HTTP

The protocol type.

Url String http://www.aliyun.com

The callback URL.

OpenApiParameters Array of OpenApiParameters

The information about the recipients in OpenAPI Explorer.

OpenApiParameters
Action String PutLogs

The name of the API operation.

Arn String acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***

The ARN of the API operation.

Format: arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of an Alibaba Cloud service
  • Region: the region ID
  • Account: the ID of an Alibaba Cloud account
  • ResourceType: the resource type
  • ResourceId: the resource ID
Id String 3

The ID of the recipient.

Product String log

The ID of the cloud service to which the API operation belongs.

Region String cn-hangzhou

The region where the resource resides.

Role String MyRole

The name of the role.

Version String 2019-01-01

The version of the API.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeEventRuleTargetList
&RuleName=testRule
&<Common request parameters>

Sample success responses

XML format

<DescribeEventRuleTargetListResponse>
		  <RequestId>87170bc7-e28a-4c93-b9bf-90a1dbe84736</RequestId>
		  <ContactParameters>
			    <ContactParameter>
				      <ContactGroupName>Default alert contact group</ContactGroupName>
				      <Level>3</Level>
				      <Id>1</Id>
			    </ContactParameter>
		  </ContactParameters>
		  <SlsParameters>
			    <SlsParameter>
				      <Project>project_test</Project>
				      <LogStore>logstore_test</LogStore>
				      <Region>cn-hangzhou</Region>
				      <Arn>acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***</Arn>
				      <Id>2</Id>
			    </SlsParameter>
		  </SlsParameters>
		  <Code>200</Code>
</DescribeEventRuleTargetListResponse>

JSON format

{
    "RequestId":"87170bc7-e28a-4c93-b9bf-90a1dbe84736",
    "ContactParameters":{
        "ContactParameter":[
            {
                "ContactGroupName":"Default alert contact group",
                "Level":"3",
                "Id":"1"
            } 
        ]
    },
    "SlsParameters":{
        "SlsParameter":[
            {
                "Project":"project_test",
                "LogStore":"logstore_test",
                "Region":"cn-hangzhou",
                "Arn":"acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***",
                "Id":"2"
            }]
    },
    "Code":"200"
}

Error codes

For a list of error codes, visit the API Error Center.