All Products
Search
Document Center

Global Accelerator:DescribeApplicationMonitor

Last Updated:Jul 31, 2024

Queries the detailed information about an origin probing task.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ga:DescribeApplicationMonitorget
  • ApplicationMonitor
    acs:ga:{#regionId}:{#accountId}:sitemonitor/{#TaskId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region where the Global Accelerator (GA) instance is deployed. Set the value to cn-hangzhou.

cn-hangzhou
ClientTokenstringNo

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
123e4567-e89b-12d3-a456-426655440000
TaskIdstringYes

The ID of the origin probing task.

sm-bp1fpdjfju9k8yr1y****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
AcceleratorIdstring

The ID of the GA instance on which the origin probing task ran.

ga-bp1odcab8tmno0hdq****
ListenerIdstring

The ID of the listener on which the origin probing task ran.

lsr-bp1bpn0kn908w4nbw****
TaskIdstring

The ID of the origin probing task.

sm-bp1fpdjfju9k8yr1y****
TaskNamestring

The name of the origin probing task.

task1
Addressstring

The URL or IP address that was probed.

https://www.aliyun.com
OptionsJsonstring

The extended options of the listener protocol that is used by the origin probing task. The options vary based on the listener protocol.

{ "http_method": "get","header": "key:asd","acceptable_response_code": "500","cert_verify": true }
IspCityListarray<object>

The probe points of the Internet service provider (ISP).

object
Ispstring

The probe point ID of the ISP.

465
IspNamestring

The probe point name of the ISP.

Alibaba
Citystring

The ID of the city in which the probe point of the ISP is deployed.

375
CityNamestring

The name of the city in which the probe point of the ISP is deployed.

Singapore
DetectEnableboolean

Indicates whether the automatic diagnostics feature is enabled. Valid values:

  • true
  • false
true
DetectThresholdinteger

The threshold that is used to trigger automatic diagnostics.

If the availability of the origin server drops below the specified threshold, the automatic diagnostics feature is triggered.

0
DetectTimesinteger

The number of times that are required to reach the threshold before the automatic diagnostics feature is triggered.

1
SilenceTimeinteger

The silence period of the automatic diagnostics feature. This parameter indicates the interval at which the automatic diagnostics feature is triggered. If the availability rate does not return to normal after GA triggers automatic diagnostics, GA must wait until the silence period ends before GA can trigger another automatic diagnostic.

If the number of consecutive times that the availability rate drops below the automatic diagnostics threshold reaches the value of DetectTimes, the automatic diagnostics feature is triggered. The automatic diagnostics feature is not triggered again within the silence period regardless of whether the availability rate remains below the threshold. If the availability rate does not return to normal after the silence period ends, the automatic diagnostics feature is triggered again.

Unit: seconds.

300
RegionIdstring

The region ID of the GA instance. Set the value to cn-hangzhou.

cn-hangzhou
Statestring

The status of the origin probing task. Valid values:

  • init
  • active
  • updating
  • inactive
  • deleting
active

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "AcceleratorId": "ga-bp1odcab8tmno0hdq****",
  "ListenerId": "lsr-bp1bpn0kn908w4nbw****",
  "TaskId": "sm-bp1fpdjfju9k8yr1y****",
  "TaskName": "task1",
  "Address": "https://www.aliyun.com",
  "OptionsJson": "{ \"http_method\": \"get\",\"header\": \"key:asd\",\"acceptable_response_code\": \"500\",\"cert_verify\": true }",
  "IspCityList": [
    {
      "Isp": "465",
      "IspName": "Alibaba\n",
      "City": "375",
      "CityName": "Singapore\n"
    }
  ],
  "DetectEnable": true,
  "DetectThreshold": 0,
  "DetectTimes": 1,
  "SilenceTime": 300,
  "RegionId": "cn-hangzhou",
  "State": "active"
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionNo permissions.No permissions.
400NotExist.SiteMonitorThe siteMonitor %s is not exist.Site monitoring% s does not exist.

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

Change history

Change timeSummary of changesOperation
2024-07-23The Error code has changedView Change Details
2023-10-12The response structure of the API has changedView Change Details