Queries the sampling logs of a debug task in a PTS scenario.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pts:GetPtsDebugSampleLogs |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PlanId |
string |
No |
The ID of the debug task. |
NJJBH8B |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of records to display on each page. |
10 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response. |
||
| Code |
string |
The system status code. This parameter is not returned if the request is successful. |
|
| Message |
string |
The error message. This parameter is not returned if the request is successful. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries on the current page. |
10 |
| RequestId |
string |
The request ID. |
A8E16480-15C1-555A-922F-B736A005E52D |
| SamplingLogs |
array<object> |
The sampling logs. |
|
|
object |
The sampling log. |
||
| ChainId |
string |
The trace ID. |
65354719 |
| ChainName |
string |
The trace name. |
串联链路 |
| CheckResult |
string |
The result of the assertion check. |
[{"checkPointType":"StatusCode","checker":{"expect":"200","operate":"eq","parsedExpectValue":"200","realValue":"200"},"hit":true,"point":"状态码"}] |
| ExportConfig |
string |
The response parameter settings. |
{\"skuId\":\"{R:json@$.page.list[0].skuId}\"} |
| ExportContent |
string |
The content of the exported parameter. |
{"skuId":"1"} |
| HttpRequestBody |
string |
The request body. |
{"loginacct":"acce"} |
| HttpRequestHeaders |
string |
The request header. |
[{"name":"v2","sensitive":false,"value":"1"},{"name":"x-pts-test","sensitive":false,"value":"2"}] |
| HttpRequestMethod |
string |
The request method. |
GET |
| HttpRequestUrl |
string |
The request URL. |
http://www.example.com |
| HttpResponseBody |
string |
The response body. |
{"timestamp":1679903049155,"status":404,"error":"Not Found","message":"No message available","path":"/"} |
| HttpResponseFailMsg |
string |
The response error message. |
|
| HttpResponseHeaders |
string |
The response header. |
[{"valuePos":18,"name":"transfer-encoding","buffer":{"empty":false,"full":false},"sensitive":false,"value":"chunked"},{"valuePos":13,"name":"Content-Type","buffer":{"empty":false,"full":false},"sensitive":false,"value":"application/json;charset=UTF-8"},{"valuePos":5,"name":"Date","buffer":{"empty":false,"full":false},"sensitive":false,"value":"Mon, 27 Mar 2023 07:44:08 GMT"}] |
| HttpResponseStatus |
string |
The response status code. |
200 |
| HttpStartTime |
integer |
The time when the request was initiated. |
12 |
| HttpTiming |
string |
The HTTP timing waterfall. |
{"traceId":"0:1:10a94f66pts-2069351-allsparktask","requests":[{"lease":{"conn":{"duration":-1,"finish":-1,"operation":"conn","start":-1},"dns":{"duration":-1,"finish":-1,"operation":"dns","start":-1},"duration":-1,"finish":-1,"operation":"lease","start":32277914755},"recv":{"duration":225975,"finish":32283700284,"message":"","operation":"recv","start":32283474309},"sent":{"duration":594179,"finish":32278776504,"message":"","operation":"sent","start":32278182325},"tag":"GET http://tomcodemall.com:30080/api/product/skuinfo/list?key=2&vv=4&t4=%EF%BB%BF101"}],"message":""} |
| ImportContent |
string |
The content of the imported parameter. |
|
| NodeId |
string |
The node ID. |
1345531 |
| Rt |
string |
The response time in milliseconds. |
230 |
| Timestamp |
integer |
The timestamp in milliseconds. |
1650253024471 |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| TotalCount |
integer |
The total number of entries. |
100 |
Examples
Success response
JSON format
{
"Code": "",
"Message": "",
"PageNumber": 1,
"PageSize": 10,
"RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
"SamplingLogs": [
{
"ChainId": "65354719",
"ChainName": "串联链路",
"CheckResult": "[{\"checkPointType\":\"StatusCode\",\"checker\":{\"expect\":\"200\",\"operate\":\"eq\",\"parsedExpectValue\":\"200\",\"realValue\":\"200\"},\"hit\":true,\"point\":\"状态码\"}]",
"ExportConfig": "{\\\"skuId\\\":\\\"{R:json@$.page.list[0].skuId}\\\"}",
"ExportContent": "{\"skuId\":\"1\"}",
"HttpRequestBody": "{\"loginacct\":\"acce\"}",
"HttpRequestHeaders": "[{\"name\":\"v2\",\"sensitive\":false,\"value\":\"1\"},{\"name\":\"x-pts-test\",\"sensitive\":false,\"value\":\"2\"}]",
"HttpRequestMethod": "GET",
"HttpRequestUrl": "http://www.example.com",
"HttpResponseBody": "{\"timestamp\":1679903049155,\"status\":404,\"error\":\"Not Found\",\"message\":\"No message available\",\"path\":\"/\"}",
"HttpResponseFailMsg": "",
"HttpResponseHeaders": "[{\"valuePos\":18,\"name\":\"transfer-encoding\",\"buffer\":{\"empty\":false,\"full\":false},\"sensitive\":false,\"value\":\"chunked\"},{\"valuePos\":13,\"name\":\"Content-Type\",\"buffer\":{\"empty\":false,\"full\":false},\"sensitive\":false,\"value\":\"application/json;charset=UTF-8\"},{\"valuePos\":5,\"name\":\"Date\",\"buffer\":{\"empty\":false,\"full\":false},\"sensitive\":false,\"value\":\"Mon, 27 Mar 2023 07:44:08 GMT\"}]",
"HttpResponseStatus": "200",
"HttpStartTime": 12,
"HttpTiming": "{\"traceId\":\"0:1:10a94f66pts-2069351-allsparktask\",\"requests\":[{\"lease\":{\"conn\":{\"duration\":-1,\"finish\":-1,\"operation\":\"conn\",\"start\":-1},\"dns\":{\"duration\":-1,\"finish\":-1,\"operation\":\"dns\",\"start\":-1},\"duration\":-1,\"finish\":-1,\"operation\":\"lease\",\"start\":32277914755},\"recv\":{\"duration\":225975,\"finish\":32283700284,\"message\":\"\",\"operation\":\"recv\",\"start\":32283474309},\"sent\":{\"duration\":594179,\"finish\":32278776504,\"message\":\"\",\"operation\":\"sent\",\"start\":32278182325},\"tag\":\"GET http://tomcodemall.com:30080/api/product/skuinfo/list?key=2&vv=4&t4=%EF%BB%BF101\"}],\"message\":\"\"}",
"ImportContent": "",
"NodeId": "1345531",
"Rt": "230",
"Timestamp": 1650253024471
}
],
"Success": true,
"TotalCount": 100
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | GetPtsDebugSampleLogsFail | planId not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.