Obtaining the Application Deployment Success Rate in a Specified Application
Function
This API is used to obtain the application deployment success rate in a specified application.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/tasks/metrics/success-rate
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
start_date | Yes | String | Left boundary (included) of the application deployment start time. Format: MMM DD, YYYY. |
end_date | Yes | String | Right boundary (included) of the application deployment start time. The format is YYYY-MM-DD. The maximum range is one year. |
task_ids | Yes | Array of strings | Application ID list |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
project_id | String | Project ID. For details, see Obtaining a Project ID. |
project_name | String | Project name |
start_date | String | Left boundary (included) of the application deployment start time. Format: MMM DD, YYYY. |
end_date | String | Right boundary (included) of the application deployment start time. The format is YYYY-MM-DD. The maximum range is one year. |
tasks_success_rate | Array of TaskSuccessRate objects | Application success rate list |
Example Requests
https://{endpoint}/v2/89931e210b214b5892ea833712f0f5e0/tasks/metrics/success-rate
{
"start_date" : "2022-01-01",
"end_date" : "2022-10-26",
"task_ids" : [ "5bf0a54f36b04ddda7b94470fee39307", "b6d20b703ffe4a04bc68790ddabf6ab7" ]
} Example Responses
Status code: 200
OK: The request is successful.
{
"project_id" : "89931e210b214b5892ea833712f0f5e0",
"project_name" : "Happy",
"start_date" : "2022-01-01",
"end_date" : "2022-10-26",
"tasks_success_rate" : [ {
"task_id" : "5bf0a54f36b04ddda7b94470fee39307",
"task_name" : "happy482 Health Test Through URLs",
"success_rate" : "0",
"record_count" : 8,
"success_record_count" : 0
}, {
"task_id" : "b6d20b703ffe4a04bc68790ddabf6ab7",
"task_name" : "happy486 Start/Stop Tomcat",
"success_rate" : "14.29",
"record_count" : 14,
"success_record_count" : 2
} ]
} Status Codes
Status Code | Description |
|---|---|
200 | OK: The request is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

