文档

GetPtsDebugSampleLogs - 获取PTS场景调试日志

更新时间:

查询PTS场景调试任务的采样日志。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
pts:GetPtsDebugSampleLogs
  • acs:pts::{#accountId}:*

请求参数

名称类型必填描述示例值
PlanIdstring

调试任务 ID

NJJBH8B
PageNumberinteger

页码

1
PageSizeinteger

每页显示记录条数。

10

返回参数

名称类型描述示例值
object

响应内容

RequestIdstring

请求 ID

A8E16480-15C1-555A-922F-B736A005E52D
SamplingLogsobject []

采样日志

HttpRequestMethodstring

请求方法

GET
HttpResponseStatusstring

响应状态码

200
Timestamplong

时间戳, ms

1650253024471
ExportConfigstring

出参设置

{\"skuId\":\"{R:json@$.page.list[0].skuId}\"}
HttpResponseFailMsgstring

响应错误信息

""
CheckResultstring

断言检查结果

[{"checkPointType":"StatusCode","checker":{"expect":"200","operate":"eq","parsedExpectValue":"200","realValue":"200"},"hit":true,"point":"状态码"}]
HttpResponseBodystring

响应体

{"timestamp":1679903049155,"status":404,"error":"Not Found","message":"No message available","path":"/"}
ChainIdstring

链路 ID

65354719
HttpRequestHeadersstring

请求头

[{"name":"v2","sensitive":false,"value":"1"},{"name":"x-pts-test","sensitive":false,"value":"2"}]
Rtstring

响应时间, ms

230
HttpResponseHeadersstring

响应头

[{"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"}]
HttpStartTimelong

请求开始时间

12
ExportContentstring

导出参数内容

{"skuId":"1"}
ImportContentstring

参数导入内容

""
HttpTimingstring

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":""}
HttpRequestBodystring

请求体

{"loginacct":"acce"}
NodeIdstring

节点 ID

1345531
HttpRequestUrlstring

请求 URL

http://www.example.com
ChainNamestring

链路名称

串联链路
PageNumberinteger

页码

1
PageSizeinteger

当前分页包含的条目数。

10
TotalCountlong

总条数。

100
Successboolean

是否成功。

  • true:成功。
  • false:失败。
true
Codestring

系统状态码。

4001
Messagestring

错误提示信息,若成功则为空。

示例

正常返回示例

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错误码错误信息
400GetPtsDebugSampleLogsFailplanId not exist

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈