All Products
Search
Document Center

Performance Testing:GetPtsDebugSampleLogs

Last Updated:Aug 14, 2025

Queries the sampling logs of a debug task in a PTS scenario.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

pts:GetPtsDebugSampleLogs

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

PlanId

string

No

The ID of the debug task.

NJJBH8B

PageNumber

integer

No

The page number.

1

PageSize

integer

No

The number of records to display on each page.

10

Response parameters

Parameter

Type

Description

Example

object

The response.

Code

string

The system status code. This parameter is not returned if the request is successful.

Message

string

The error message. This parameter is not returned if the request is successful.

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries on the current page.

10

RequestId

string

The request ID.

A8E16480-15C1-555A-922F-B736A005E52D

SamplingLogs

array<object>

The sampling logs.

object

The sampling log.

ChainId

string

The trace ID.

65354719

ChainName

string

The trace name.

串联链路

CheckResult

string

The result of the assertion check.

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

ExportConfig

string

The response parameter settings.

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

ExportContent

string

The content of the exported parameter.

{"skuId":"1"}

HttpRequestBody

string

The request body.

{"loginacct":"acce"}

HttpRequestHeaders

string

The request header.

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

HttpRequestMethod

string

The request method.

GET

HttpRequestUrl

string

The request URL.

http://www.example.com

HttpResponseBody

string

The response body.

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

HttpResponseFailMsg

string

The response error message.

HttpResponseHeaders

string

The response header.

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

string

The response status code.

200

HttpStartTime

integer

The time when the request was initiated.

12

HttpTiming

string

The HTTP timing waterfall.

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

string

The content of the imported parameter.

NodeId

string

The node ID.

1345531

Rt

string

The response time in milliseconds.

230

Timestamp

integer

The timestamp in milliseconds.

1650253024471

Success

boolean

Indicates whether the request was successful.

  • true: The request was successful.

  • false: The request failed.

true

TotalCount

integer

The total number of entries.

100

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

400 GetPtsDebugSampleLogsFail planId not exist

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.