Domain name for API request: pts.intl.tencentcloudapi.com.
This API is used to query job list.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeJobs. |
Version | Yes | String | Common Params. The value used for this API: 2021-07-28. |
Region | No | String | Common Params. This parameter is not required for this API. |
ScenarioIds.N | Yes | Array of String | Array of Scenario ID. |
ProjectIds.N | Yes | Array of String | Array of Project ID. |
Offset | No | Integer | Offset. Default value is 0. |
Limit | No | Integer | Number of returns. Default value is 20, maximum is 100 |
JobIds.N | No | Array of String | Array of Job ID. |
OrderBy | No | String | Column for sorting. |
Ascend | No | Boolean | Whether in ascending order. |
StartTime | No | Timestamp ISO8601 | Start time of the job. |
EndTime | No | Timestamp ISO8601 | End time of the job. |
Debug | No | Boolean | Whether debug jobs. |
Status.N | No | Array of Integer | Job status. |
Parameter Name | Type | Description |
---|---|---|
JobSet | Array of Job | Job list. Note: This field may return null, indicating that no valid value is found. |
Total | Integer | Total number of Jobs. Note: This field may return null, indicating that no valid value is found. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: pts.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeJobs
<Common request parameters>
{
"ProjectIds": [
"project-xx"
],
"OrderBy": "asc",
"JobIds": [
"job-xx"
],
"Ascend": true,
"Limit": 0,
"StartTime": "2020-09-22T00:00:00+00:00",
"Offset": 0,
"EndTime": "2020-09-22T00:00:00+00:00",
"ScenarioIds": [
"scenario-xx"
]
}
{
"Response": {
"JobSet": [
{
"ErrorRate": 0,
"RequestTotal": 78,
"RequestsPerSecond": 3.6055887,
"ResponseTimeAverage": 0.041749522,
"ResponseTimeP99": 0.0988,
"ResponseTimeP95": 0.094,
"ResponseTimeP90": 0.088,
"ResponseTimeMax": 0.08245612,
"ResponseTimeMin": 0.004263497,
"NetworkReceiveRate": 1842.4558,
"NetworkSendRate": 773.39874,
"JobId": "job-g5zcpcwi",
"ProjectId": "project-492xxqe4",
"ProjectName": "Test",
"ScenarioId": "scenario-ouz3x17a",
"ScenarioName": "pts-js(2024-08-07 11:40:53)",
"CronId": "",
"Type": "pts-js",
"Load": {
"LoadSpec": {
"Concurrency": {
"Stages": [
{
"DurationSeconds": 120,
"TargetVirtualUsers": 2
},
{
"DurationSeconds": 120,
"TargetVirtualUsers": 4
},
{
"DurationSeconds": 120,
"TargetVirtualUsers": 5
},
{
"DurationSeconds": 240,
"TargetVirtualUsers": 5
}
],
"Resources": 1,
"IterationCount": 0,
"MaxRequestsPerSecond": 40,
"GracefulStopSeconds": 3
},
"RequestsPerSecond": null,
"ScriptOrigin": null
},
"VpcLoadDistribution": null,
"GeoRegionsLoadDistribution": [
{
"Region": "ap-guangzhou",
"RegionId": 1,
"Percentage": 100
}
]
},
"TestScripts": null,
"Datasets": null,
"Protocols": [],
"RequestFiles": [],
"Plugins": [],
"StartTime": "2024-08-08T14:31:50+08:00",
"EndTime": "2024-08-08T14:32:12+08:00",
"Note": "",
"JobOwner": "teset",
"AbortReason": 1,
"Status": 16,
"Message": "User Interrupted",
"DomainNameConfig": {
"HostAliases": null,
"DNSConfig": null
},
"Debug": false,
"NotificationHooks": null,
"Duration": 600,
"MaxVirtualUserCount": 5,
"MaxRequestsPerSecond": 40,
"LoadSourceInfos": null,
"CreatedAt": "2024-08-08T14:31:44+08:00",
"Configs": null,
"Extensions": null,
"Scripts": null,
"LoadSources": null
}
],
"RequestId": "ae27925c-eb40-47d3-8643-c8c204ab77be",
"Total": 1
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
AuthFailure | CAM signature/authentication error. |
FailedOperation | Operation failed. |
FailedOperation.DbQueryFailed | Failed to query database. |
FailedOperation.ResourceNotFound | The resource does not exist. |
InternalError | Internal error. |
InvalidParameter | Invalid parameter. |
InvalidParameterValue | Invalid parameter value. |
ResourceNotFound | The resource does not exist. |