Queries the logs of one or more instant test tasks.
Operation description
You can create an instant test task only by using the Alibaba Cloud account that you used to enable Network Analysis and Monitoring.
This topic provides an example to show how to query the logs of an instant test task whose ID is afa5c3ce-f944-4363-9edb-ce919a29****
.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cms:DescribeSiteMonitorLog | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TaskIds | string | Yes | The IDs of the instant test tasks. Separate multiple task IDs with commas (,). | afa5c3ce-f944-4363-9edb-ce919a29**** |
Isp | string | No | The carrier identification code. | 465 |
City | string | No | The city identification code. | 546 |
MetricName | string | No | The name of the metric. Only the | ProbeLog |
StartTime | string | No | The start of the time range to query. The following formats are supported:
Note
| 1638422474389 |
EndTime | string | No | The end of the time range to query. Valid values:
Note
We recommend that you use UNIX timestamps to prevent time zone-related issues.
| 1638422475687 |
NextToken | string | No | The token that is used to initiate the next request if the response of the current request is truncated. You can use the token to initiate another request and obtain the remaining records.`` | IWBjqMYSy0is7zSMGu16**** |
Length | integer | No | The number of entries to return on each page. Valid values: 1 to 1440. | 1000 |
Filter | string | No | The filter condition. You can specify a simple expression, for example, | TotalTime>100 |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "IWBjqMYSy0is7zSMGu16****",
"Data": "\\[{\\\\\"redirectCount\\\\\":0.0,\\\\\"SSLConnectTime\\\\\":0.0,\\\\\"pingDetail\\\\\":\\\\\"\\\\\",\\\\\"HTTPConnectTime\\\\\":0.0,\\\\\"isp\\\\\":\\\\\"465\\\\\",\\\\\"errorCode\\\\\":611,\\\\\"ispCN\\\\\":\\\\\"Alibaba\\\\\",\\\\\"resolution\\\\\":\\\\\"\\\\\",\\\\\"areaEN\\\\\":\\\\\"HuaBei\\\\\",\\\\\"taskEndTimestamp\\\\\":1638422475687,\\\\\"targetIspEN\\\\\":\\\\\"\\\\\",\\\\\"TotalTime\\\\\":1.0,\\\\\"taskStartTimestamp\\\\\":1638422474389,\\\\\"countryCN\\\\\":\\\\\"China\\\\\",\\\\\"provinceEN\\\\\":\\\\\"Beijing\\\\\",\\\\\"countryEN\\\\\":\\\\\"China\\\\\",\\\\\"targetCityEN\\\\\":\\\\\"\\\\\",\\\\\"curlConnectTime\\\\\":0.0,\\\\\"ips\\\\\":\\\\\"\\\\\",\\\\\"route\\\\\":\\\\\"\\\\\",\\\\\"tcpConnectTime\\\\\":0.0,\\\\\"cityEN\\\\\":\\\\\"Beijing\\\\\",\\\\\"HTTPDownloadSpeed\\\\\":0.0,\\\\\"HTTPDownloadTime\\\\\":0.0,\\\\\"HTTPResponseCode\\\\\":0.0,\\\\\"areaCN\\\\\":\\\\\"North China\\\\\",\\\\\"city\\\\\":\\\\\"546\\\\\",\\\\\"expection\\\\\":\\\\\"\\\\\",\\\\\"suorceIp\\\\\":\\\\\"192.168.XX.XX \\\\\",\\\\\"ispEN\\\\\":\\\\\"Alibaba\\\\\",\\\\\"HTTPDNSTime\\\\\":1.0,\\\\\"targetIsp\\\\\":\\\\\"\\\\\",\\\\\"curlStarttransferTime\\\\\":0.0,\\\\\"provinceCN\\\\\":\\\\\"Beijing\\\\\",\\\\\"timestamp\\\\\":1638422474000,\\\\\"redirectTime\\\\\":0.0,\\\\\"targetCity\\\\\":\\\\\"\\\\\", \\\\\"expect\\\\\":\\\\\"\\\\\",\\\\\"HTTPDownloadSize\\\\\":0.0,\\\\\"localDns\\\\\":\\\\\"192.168.XX.XX\\\\\",\\\\\"cityCN\\\\\":\\\\\"Beijing\\\\\",\\\\\"taskId\\\\\":\\\\\"afa5c3ce-f944-4363-9edb-ce919a29\\*\\*\\*\\*\\\\\"}]\n",
"RequestId": "67F646FA-ED8A-58C2-B461-451DB52C8B14",
"Success": "true",
"Code": "200",
"Message": "successful"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
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. | No permission, please use RAM to authorize |
406 | ExceedingQuota | Exceeding quota limits. | - |
409 | %s | %s | - |
429 | ThrottlingException | The request was denied due to request throttling. | - |
500 | InternalError | The request processing has failed due to some unknown error. | - |
500 | InternalError | %s | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-22 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-04-03 | The Error code has changed | View Change Details |