Testkube Control Plane ../insights operations
Testkube Pro API (cloud-api/1.10.51)
Download OpenAPI specification:Download
API for Testkube Pro
Get environment execution duration stats
Get environment execution duration stats
Authorizations:
path Parameters
id required | string unique id of the object |
environmentID required | string unique id of the environment |
query Parameters
startDate | string <date-time> Example: startDate=2006-01-02T15:04:05Z startDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
endDate | string <date-time> Example: endDate=2006-01-02T15:04:05Z endDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
groupBy | string group by field |
Responses
Response samples
- 200
- 400
- 401
- 403
{- "count": {
- "total": 0,
- "values": [
- null
]
}, - "duration": {
- "total": 0,
- "values": [
- null
]
}
}
Get time series insights
Get time series insights
Authorizations:
path Parameters
id required | string unique id of the object |
environmentID required | string unique id of the environment |
query Parameters
startDate | string <date-time> Example: startDate=2006-01-02T15:04:05Z startDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
endDate | string <date-time> Example: endDate=2006-01-02T15:04:05Z endDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
measure required | string Example: measure=execution-count The y-axis to measure within the time series. |
aggregate required | string Example: aggregate=sum The aggregation to perform on the time series bucket. |
segment | string Example: segment=status Creates a breakdown for each time series metric for the given segment property. |
selector | string Example: selector=kubernetes.io/app=demo Only workflow executions with given status are included in this time series chart. |
status | string Example: status=failed Only workflow executions with given status are included in this time series chart. |
workflow | string Example: workflow=my-workflow The workflow for which the time series should be created. |
Responses
Response samples
- 200
- 400
- 401
- 403
[- {
- "ts": 0,
- "value": 0,
- "segments": [
- {
- "label": "string",
- "value": 0
}
]
}
]
Get environment execution count stats
Get environment execution count stats
Authorizations:
path Parameters
id required | string unique id of the object |
environmentID required | string unique id of the environment |
query Parameters
startDate | string <date-time> Example: startDate=2006-01-02T15:04:05Z startDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
endDate | string <date-time> Example: endDate=2006-01-02T15:04:05Z endDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
workflow | string Example: workflow=my-workflow The workflow for which the time series should be created. |
Responses
Response samples
- 200
- 400
- 401
- 403
{- "ratioStats": {
- "total": 0.1,
- "values": [
- null
]
}, - "totalStats": {
- "total": 0,
- "values": [
- null
]
}, - "failedStats": {
- "total": 0,
- "values": [
- null
]
}
}
Get environment workflow summaries
Get environment workflow summaries
Authorizations:
path Parameters
id required | string unique id of the object |
environmentID required | string unique id of the environment |
query Parameters
startDate | string <date-time> Example: startDate=2006-01-02T15:04:05Z startDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
endDate | string <date-time> Example: endDate=2006-01-02T15:04:05Z endDate for filtering in RFC3339 format, i.e. "2006-01-02T15:04:05Z" |
Responses
Response samples
- 200
- 400
- 401
- 403
[- {
- "name": "string",
- "totalExecutionCount": 0,
- "failedExecutionCount": 0,
- "averageDuration": 0,
- "lastRunAt": "2019-08-24T14:15:22Z",
- "labels": {
- "app": [
- "backend"
], - "env": [
- "prod"
]
}
}
]