All Products
Search
Document Center

CloudMonitor:DescribeSiteMonitorData

Last Updated:Mar 01, 2024

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
TaskIdstringYes

The ID of the site monitoring task.

49f7b317-7645-4cc9-94fd-ea42e522****
TypestringNo

The type of the monitored object whose monitoring data is to be queried. Valid values:

  • metric
  • event
metric
MetricNamestringYes

The name of the metric. Valid values:

  • Availability
  • ResponseTime
Availability
StartTimestringNo

The beginning of the time range for the query. Supported formats:

  • UNIX timestamp: The value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
  • Time format: The value is in the YYYY-MM-DDThh:mm:ssZ format.
1551579637000
EndTimestringNo

The end of the time range for the query. Supported formats:

  • UNIX timestamp: The value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
  • Time format: The value is in the YYYY-MM-DDThh:mm:ssZ format.
1551581437000
PeriodstringNo

The interval at which monitoring data is returned. The value is an integral multiple of 60. Unit: seconds.

Note The default value equals the minimum interval at which detection requests are sent to the monitored address.
60
NextTokenstringNo

The pagination cursor.

49f7b317-7645-4cc9-94fd-ea42e5220930ea42e5220930ea42e522****
LengthintegerNo

The number of data points to return.

1000

Response parameters

ParameterTypeDescriptionExample
object
Datastring

The returned monitoring data.

[{"Maximum":247,"Mimimum":61,"Average":154,"userId":"127067667954****","taskId":"49f7b317-7645-4cc9-94fd-ea42e522****","timestamp":1551581760000}]
NextTokenstring

The pagination cursor.

ea42e5220930ea42e522****
RequestIdstring

The ID of the request.

3febb181-0d98-4af9-8b04-7faf36b048b9
Successstring

Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.

true
Codestring

The HTTP status code.

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

The returned message.

Successful

Examples

Sample success responses

JSONformat

{
  "Data": "[{\"Maximum\":247,\"Mimimum\":61,\"Average\":154,\"userId\":\"127067667954****\",\"taskId\":\"49f7b317-7645-4cc9-94fd-ea42e522****\",\"timestamp\":1551581760000}]",
  "NextToken": "ea42e5220930ea42e522****",
  "RequestId": "3febb181-0d98-4af9-8b04-7faf36b048b9",
  "Success": "true",
  "Code": "200",
  "Message": "Successful"
}

Error codes

HTTP status codeError codeError message
400InvalidQueryParameter%s
401AccessDeniedExceptionYou donot have sufficient access to perform this action.
402LimitExceededThe quota for this customer had been reached.
403ForbiddenYou are not authorized to operate the specified resource.
406ExceedingQuotaExceeding quota limits.
409%s%s
429ThrottlingExceptionThe request was denied due to request throttling.
500InternalError%s

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