查询PTS场景调试任务的采样日志。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
pts:GetPtsDebugSampleLogs |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
PlanId |
string |
否 |
调试任务 ID |
NJJBH8B |
PageNumber |
integer |
否 |
页码 |
1 |
PageSize |
integer |
否 |
每页显示记录条数。 |
10 |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
响应内容 |
||
RequestId |
string |
请求 ID |
A8E16480-15C1-555A-922F-B736A005E52D |
SamplingLogs |
array<object> |
采样日志 |
|
object |
采样日志 |
||
HttpRequestMethod |
string |
请求方法 |
GET |
HttpResponseStatus |
string |
响应状态码 |
200 |
Timestamp |
integer |
时间戳, ms |
1650253024471 |
ExportConfig |
string |
出参设置 |
{\"skuId\":\"{R:json@$.page.list[0].skuId}\"} |
HttpResponseFailMsg |
string |
响应错误信息 |
|
CheckResult |
string |
断言检查结果 |
[{"checkPointType":"StatusCode","checker":{"expect":"200","operate":"eq","parsedExpectValue":"200","realValue":"200"},"hit":true,"point":"状态码"}] |
HttpResponseBody |
string |
响应体 |
{"timestamp":1679903049155,"status":404,"error":"Not Found","message":"No message available","path":"/"} |
ChainId |
string |
链路 ID |
65354719 |
HttpRequestHeaders |
string |
请求头 |
[{"name":"v2","sensitive":false,"value":"1"},{"name":"x-pts-test","sensitive":false,"value":"2"}] |
Rt |
string |
响应时间, ms |
230 |
HttpResponseHeaders |
string |
响应头 |
[{"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"}] |
HttpStartTime |
integer |
请求开始时间 |
12 |
ExportContent |
string |
导出参数内容 |
{"skuId":"1"} |
ImportContent |
string |
参数导入内容 |
|
HttpTiming |
string |
HTTP 用时瀑布流 |
{"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":""} |
HttpRequestBody |
string |
请求体 |
{"loginacct":"acce"} |
NodeId |
string |
节点 ID |
1345531 |
HttpRequestUrl |
string |
请求 URL |
http://www.example.com |
ChainName |
string |
链路名称 |
串联链路 |
PageNumber |
integer |
页码 |
1 |
PageSize |
integer |
当前分页包含的条目数。 |
10 |
TotalCount |
integer |
总条数。 |
100 |
Success |
boolean |
是否成功。
|
true |
Code |
string |
系统状态码,若成功则不返回该字段。 |
|
Message |
string |
错误提示信息,若成功则不返回该字段。 |
示例
正常返回示例
JSON
格式
{
"RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
"SamplingLogs": [
{
"HttpRequestMethod": "GET",
"HttpResponseStatus": "200",
"Timestamp": 1650253024471,
"ExportConfig": "{\\\"skuId\\\":\\\"{R:json@$.page.list[0].skuId}\\\"}",
"HttpResponseFailMsg": "",
"CheckResult": "[{\"checkPointType\":\"StatusCode\",\"checker\":{\"expect\":\"200\",\"operate\":\"eq\",\"parsedExpectValue\":\"200\",\"realValue\":\"200\"},\"hit\":true,\"point\":\"状态码\"}]",
"HttpResponseBody": "{\"timestamp\":1679903049155,\"status\":404,\"error\":\"Not Found\",\"message\":\"No message available\",\"path\":\"/\"}",
"ChainId": "65354719",
"HttpRequestHeaders": "[{\"name\":\"v2\",\"sensitive\":false,\"value\":\"1\"},{\"name\":\"x-pts-test\",\"sensitive\":false,\"value\":\"2\"}]",
"Rt": "230",
"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\"}]",
"HttpStartTime": 12,
"ExportContent": "{\"skuId\":\"1\"}",
"ImportContent": "",
"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\":\"\"}",
"HttpRequestBody": "{\"loginacct\":\"acce\"}",
"NodeId": "1345531",
"HttpRequestUrl": "http://www.example.com",
"ChainName": "串联链路"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 100,
"Success": true,
"Code": "",
"Message": ""
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | GetPtsDebugSampleLogsFail | planId not exist |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。