GetPtsDebugSampleLogs - 获取PTS场景调试日志

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

调试

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

授权信息

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

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

请求参数

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

调试任务 ID

NJJBH8B
PageNumberinteger

页码

1
PageSizeinteger

每页显示记录条数。

10

返回参数

名称类型描述示例值
object

响应内容

Codestring

系统状态码,若成功则不返回该字段。

Messagestring

错误提示信息,若成功则不返回该字段。

PageNumberinteger

页码

1
PageSizeinteger

当前分页包含的条目数。

10
RequestIdstring

请求 ID

A8E16480-15C1-555A-922F-B736A005E52D
SamplingLogsarray<object>

采样日志

SamplingLogobject

采样日志

ChainIdstring

链路 ID

65354719
ChainNamestring

链路名称

串联链路
CheckResultstring

断言检查结果

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

出参设置

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

导出参数内容

{"skuId":"1"}
HttpRequestBodystring

请求体

{"loginacct":"acce"}
HttpRequestHeadersstring

请求头

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

请求方法

GET
HttpRequestUrlstring

请求 URL

http://www.example.com
HttpResponseBodystring

响应体

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

响应错误信息

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"}]
HttpResponseStatusstring

响应状态码

200
HttpStartTimelong

请求开始时间

12
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":""}
ImportContentstring

参数导入内容

NodeIdstring

节点 ID

1345531
Rtstring

响应时间, ms

230
Timestamplong

时间戳, ms

1650253024471
Successboolean

是否成功。

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

总条数。

100

示例

正常返回示例

JSON格式

{
  "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
}

错误码

HTTP status code错误码错误信息
400GetPtsDebugSampleLogsFailplanId not exist

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

变更历史

变更时间变更内容概要操作
暂无变更历史