Call the DescribeSiteMonitorLog operation to query the detection logs for a one-time detection task.
Operation description
Only Alibaba Cloud accounts with Network Analysis and Monitoring activated can create one-time detection tasks.
This topic provides an example of how to query the detection logs for the one-time detection task afa5c3ce-f944-4363-9edb-ce919a29****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeSiteMonitorLog |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskIds |
string |
Yes |
The ID of the detection task. You can specify multiple task IDs. Separate them with commas (,). |
afa5c3ce-f944-4363-9edb-ce919a29**** |
| Isp |
string |
No |
The carrier ID. |
465 |
| City |
string |
No |
The city ID. |
546 |
| MetricName |
string |
No |
The metric. Only the |
ProbeLog |
| StartTime |
string |
No |
The beginning of the time range to query. The following formats are supported:
Note
|
1638422474389 |
| EndTime |
string |
No |
The end of the time range to query. The following formats are supported:
Note
Use UNIX timestamps to prevent time zone-related issues. |
1638422475687 |
| NextToken |
string |
No |
If the response is truncated, use the |
IWBjqMYSy0is7zSMGu16**** |
| Length |
integer |
No |
The number of entries to return on each page for a paged query. Valid values: 1 to 1440. |
1000 |
| Filter |
string |
No |
The filter expression for detection results. Simple expressions are supported. For example, you can use the |
TotalTime>100 |
| BrowserInfo |
string |
No |
This parameter is deprecated. You do not need to specify this parameter. |
无 |
| Browser |
string |
No |
The type of the browser. Valid values:
|
Chrome |
| Device |
string |
No |
The type of the device. This parameter specifies the screen size for impersonation. Valid values:
|
laptop |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
N/A |
||
| NextToken |
string |
The token that is used to query the next page. |
IWBjqMYSy0is7zSMGu16**** |
| Data |
string |
The detection logs of the one-time detection task. |
[{\"redirectCount\":0.0,\"SSLConnectTime\":0.0,\"pingDetail\":\"\",\"HTTPConnectTime\":0.0,\"isp\":\"465\",\"errorCode\":611,\"ispCN\":\"阿里巴巴\",\"resolution\":\"\",\"areaEN\":\"HuaBei\",\"taskEndTimestamp\":1638422475687,\"targetIspEN\":\"\",\"TotalTime\":1.0,\"taskStartTimestamp\":1638422474389,\"countryCN\":\"中国\",\"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\":\"华北\",\"city\":\"546\",\"expection\":\"\",\"suorceIp\":\"192.168.XX.XX \",\"ispEN\":\"Alibaba\",\"HTTPDNSTime\":1.0,\"targetIsp\":\"\",\"curlStarttransferTime\":0.0,\"provinceCN\":\"北京市\",\"timestamp\":1638422474000,\"redirectTime\":0.0,\"targetCity\":\"\", \"expect\":\"\",\"HTTPDownloadSize\":0.0,\"localDns\":\"192.168.XX.XX\",\"cityCN\":\"北京市\",\"taskId\":\"afa5c3ce-f944-4363-9edb-ce919a29****\"}] |
| RequestId |
string |
The request ID. |
67F646FA-ED8A-58C2-B461-451DB52C8B14 |
| Success |
string |
Indicates whether the operation was successful. Valid values:
|
true |
| Code |
string |
The status code. Note
A status code of 200 indicates that the operation was successful. |
200 |
| Message |
string |
The returned message. |
successful |
Examples
Success response
JSON format
{
"NextToken": "IWBjqMYSy0is7zSMGu16****",
"Data": "[{\\\"redirectCount\\\":0.0,\\\"SSLConnectTime\\\":0.0,\\\"pingDetail\\\":\\\"\\\",\\\"HTTPConnectTime\\\":0.0,\\\"isp\\\":\\\"465\\\",\\\"errorCode\\\":611,\\\"ispCN\\\":\\\"阿里巴巴\\\",\\\"resolution\\\":\\\"\\\",\\\"areaEN\\\":\\\"HuaBei\\\",\\\"taskEndTimestamp\\\":1638422475687,\\\"targetIspEN\\\":\\\"\\\",\\\"TotalTime\\\":1.0,\\\"taskStartTimestamp\\\":1638422474389,\\\"countryCN\\\":\\\"中国\\\",\\\"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\\\":\\\"华北\\\",\\\"city\\\":\\\"546\\\",\\\"expection\\\":\\\"\\\",\\\"suorceIp\\\":\\\"192.168.XX.XX \\\",\\\"ispEN\\\":\\\"Alibaba\\\",\\\"HTTPDNSTime\\\":1.0,\\\"targetIsp\\\":\\\"\\\",\\\"curlStarttransferTime\\\":0.0,\\\"provinceCN\\\":\\\"北京市\\\",\\\"timestamp\\\":1638422474000,\\\"redirectTime\\\":0.0,\\\"targetCity\\\":\\\"\\\", \\\"expect\\\":\\\"\\\",\\\"HTTPDownloadSize\\\":0.0,\\\"localDns\\\":\\\"192.168.XX.XX\\\",\\\"cityCN\\\":\\\"北京市\\\",\\\"taskId\\\":\\\"afa5c3ce-f944-4363-9edb-ce919a29****\\\"}]",
"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. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 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 |
| 503 | %s | %s | |
| 406 | ExceedingQuota | Exceeding quota limits. | The number of tasks exceeds the limit |
| 429 | ThrottlingException | The request was denied due to request throttling. | |
| 409 | %s | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.