查询PTS场景调试任务的采样日志。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
PlanId | string | 否 | 调试任务ID | NJJBH8B |
PageNumber | integer | 否 | 页码 | 1 |
PageSize | integer | 否 | 每页显示记录条数。 | 10 |
返回参数
示例
正常返回示例
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": "4001",
"Message": "空"
}
错误码
HTTP status code | 错误码 | 错误信息 |
---|---|---|
400 | GetPtsDebugSampleLogsFail | planId not exist |
访问错误中心查看更多错误码。