Queries the targets of an event-triggered alert rule.

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.

Response parameters

Parameter Type Example Description
Message String The Request is not authorization.

The returned 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 N/A

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

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

The Alibaba Cloud Resource Name (ARN) of the MNS queue.

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

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

The ID of the target.

Queue String testQueue

The name of the MNS queue.

Region String cn-hangzhou

The region where MNS is deployed.

ContactParameters Array N/A

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

ContactParameter N/A N/A N/A
ContactGroupName String Default alert group

The name of the alert group.

Id String 1

The ID of the target.

Level String 3

The alert notification methods. Valid values:

The value 4 indicates that alert notifications are sent by using DingTalk chatbots and emails.

FcParameters Array N/A

The information about the targets in Function Compute.

FCParameter N/A N/A N/A
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}. Field description:

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

The name of the function.

Id String 3

The ID of the target.

Region String cn-qingdao

The region where Function Compute is deployed.

ServiceName String service1

The name of the Function Compute service.

SlsParameters Array N/A

The information about the targets in Log Service.

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

The ARN of the Log Service Logstore.

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

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

The ID of the target.

LogStore String logstore_test

The name of the Log Service Logstore.

Project String project_test

The name of the Log Service project.

Region String cn-hangzhou

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

WebhookParameters Array N/A

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

WebhookParameter N/A N/A N/A
Id String 5

The ID of the target.

Method String GET

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

Protocol String http

The protocol used to send a request.

Url String http://www.aliyun.com

The callback URL.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeEventRuleTargetList>
          <RequestId>87170bc7-e28a-4c93-b9bf-90a1dbe84736</RequestId>
          <ContactParameters>
                <ContactParameter>
                      <ContactGroupName>Default alert 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>
</DescribeEventRuleTargetList>

JSON format

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

Error codes

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