All Products
Search
Document Center

CloudMonitor:DescribeEventRuleTargetList

Last Updated:Mar 18, 2024

Queries the push channels of an event-triggered alert rule.

Operation description

This topic provides an example to show how to query the details of an event-triggered alert rule named testRule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleNamestringYes

The name of the event-triggered alert rule.

testRule

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

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The error message.

The Request is not authorization.
RequestIdstring

The ID of the request.

87170bc7-e28a-4c93-b9bf-90a1dbe84736
ContactParametersobject []

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

ContactGroupNamestring

The name of the alert group.

Levelstring

The alert notification methods. Valid values:

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

3
Idstring

The ID of the recipient.

1
FcParametersobject []

The information about the recipients in Function Compute.

ServiceNamestring

The name of the Function Compute service.

service1
FunctionNamestring

The name of the function.

fcTest1
Arnstring

The Alibaba Cloud Resource Name (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
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***
Idstring

The ID of the recipient.

3
Regionstring

The region where Function Compute is deployed.

cn-qingdao
MnsParametersobject []

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

Queuestring

The name of the MNS queue.

testQueue
Arnstring

The 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
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***
Regionstring

The region where MNS is deployed.

cn-hangzhou
Idstring

The ID of the recipient.

2
Topicstring

The MNS topic.

topic_sample
WebhookParametersobject []

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

Urlstring

The callback URL.

http://www.aliyun.com
Methodstring

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

GET
Protocolstring

The protocol type.

HTTP
Idstring

The ID of the recipient.

5
SlsParametersobject []

The information about the recipients in Log Service.

Projectstring

The name of the project.

project_test
LogStorestring

The name of the Logstore.

logstore_test
Arnstring

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
acs:log:cn-hangzhou::project/cms-log-mo****/logstore/c***
Regionstring

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

cn-hangzhou
Idstring

The ID of the recipient.

4
OpenApiParametersobject []

The information about the recipients in OpenAPI Explorer.

Actionstring

The name of the API operation.

PutLogs
Arnstring

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 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
acs:log:cn-hangzhou::project/cms-log-mon***/logstore/cxxxx***
Idstring

The ID of the recipient.

3
Productstring

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

log
Regionstring

The region where the resource resides.

cn-hangzhou
Rolestring

The name of the role.

MyRole
Versionstring

The version of the API.

2019-01-01

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "87170bc7-e28a-4c93-b9bf-90a1dbe84736",
  "ContactParameters": {
    "ContactParameter": [
      {
        "ContactGroupName": "",
        "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"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterValueIllegal parameters.Illegal parameters.
403AccessForbiddenUser not authorized to operate on the specified resource.-
500InternalErrorThe request processing has failed due to some unknown error.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history