Use this API to get the execution history of a benchmark task. One benchmark task can be executed many times, periodically or manually by users. Each execution creates a run record.
Method |
URL |
Authentication |
---|---|---|
GET |
/V1/CMDB/Benchmark/Tasks/{task}/Runs |
Yes |
Name |
Description |
---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
task*required |
The ID or name of the benchmark task. |
Parameter |
Type |
Description |
Example |
---|---|---|---|
runs |
object |
An object with the historical record of each run. Each execution creates a run record. |
{ |
runId |
string |
The ID for every specific run. |
|
startTime |
string |
The start time of a specific run. |
|
endTime |
string |
The end time of a specific run. |
|
status |
integer |
The status of a scheduled task. Possible values: ▪1: Unknown ▪0: Never run ▪2: Running ▪10: Succeeded ▪11: Succeeded with warnings ▪20: Failed ▪30: Manually stopped ▪31: Automatically stopped due to timeout set by users or another system setting |
|
isFinished |
bool |
Whether a scheduled task is finished. |
|
isStopByUser |
bool |
Whether a scheduled task is manually stopped by users. |
|
statusCode |
integer |
The returned status code of executing the API. |
|
statusDescription |
string |
The explanation of the status code. |