All Products
Search
Document Center

Performance Testing:GetPtsDebugSampleLogs

Last Updated:Oct 31, 2024

Queries the sampling logs for a Performance Testing Service (PTS) debugging task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PlanIdstringNo

The ID of the debugging task.

NJJBH8B
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

10

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Codestring

The system status code. If the operation is successful, this parameter is not returned.

4001
Messagestring

The error message. If the operation is successful, this parameter is not returned.

PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
RequestIdstring

The ID of the request.

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

The sampling logs.

SamplingLogobject

The sampling log.

ChainIdstring

The ID of the session.

65354719
ChainNamestring

The name of the session.

CheckResultstring

The assertion check result.

ExportConfigstring

The parameter export configuration.

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

The exported parameters.

{"skuId":"1"}
HttpRequestBodystring

The body of the request.

{"loginacct":"acce"}
HttpRequestHeadersstring

The request headers.

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

The request method.

GET
HttpRequestUrlstring

The endpoint that specifies where the request is directed.

http://www.example.com
HttpResponseBodystring

The response body.

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

The error message.

""
HttpResponseHeadersstring

The response headers.

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

The HTTP status code.

200
HttpStartTimelong

The time when the request was sent.

12
HttpTimingstring

The HTTP timing information in a waterfall format.

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

The imported parameters.

""
NodeIdstring

The ID of the node.

1345531
Rtstring

The response time. Unit: ms.

230
Timestamplong

The timestamp. Unit: ms.

1650253024471
Successboolean

Indicates whether the operation is successful. Valid values:

  • true
  • false
true
TotalCountlong

The total number of entries returned.

100

Examples

Sample success responses

JSONformat

{
  "Code": "4001",
  "Message": "",
  "PageNumber": 1,
  "PageSize": 10,
  "RequestId": "A8E16480-15C1-555A-922F-B736A005E52D",
  "SamplingLogs": [
    {
      "ChainId": "65354719",
      "ChainName": "",
      "CheckResult": "",
      "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 codeError codeError message
400GetPtsDebugSampleLogsFailplanId not exist

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history