Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TaskId | string | Yes | The ID of the site monitoring task. | 49f7b317-7645-4cc9-94fd-ea42e522**** |
Type | string | No | The type of the monitored object whose monitoring data is to be queried. Valid values:
| metric |
MetricName | string | Yes | The name of the metric. Valid values:
| Availability |
StartTime | string | No | The beginning of the time range for the query. Supported formats:
| 1551579637000 |
EndTime | string | No | The end of the time range for the query. Supported formats:
| 1551581437000 |
Period | string | No | 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 |
NextToken | string | No | The pagination cursor. | 49f7b317-7645-4cc9-94fd-ea42e5220930ea42e5220930ea42e522**** |
Length | integer | No | The number of data points to return. | 1000 |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message |
---|---|---|
400 | InvalidQueryParameter | %s |
401 | AccessDeniedException | You donot have sufficient access to perform this action. |
402 | LimitExceeded | The quota for this customer had been reached. |
403 | Forbidden | You are not authorized to operate the specified resource. |
406 | ExceedingQuota | Exceeding quota limits. |
409 | %s | %s |
429 | ThrottlingException | The request was denied due to request throttling. |
500 | InternalError | %s |
For a list of error codes, visit the Service error codes.