Cancel an SLO evaluation in Dynatrace with the SLO API by evaluation token and return the result if it already finished.
| POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/slo/v1/slos/evaluation:cancel |
You provide the evaluation-token query parameter to cancel the evaluation. The response returns an SLO evaluation result if the evaluation already finished, otherwise it discards it.
To execute this request, you need a platform token or OAuth access token with slo:slos:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| evaluation-token | string | - | query | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Metadata | SLO evaluation result |
| 202 | - | The SLO evaluation was still running and is now cancelled. |
| 400 | - | - |
| 401 | - | - |
| 403 | - | - |
| 410 | - | - |
| 429 | - | - |
| 5XX | - | - |
MetadataResponse object| Element | Type | Description |
|---|---|---|
| definition | Slo | Configuration for a service-level objective. Exactly one of |
Slo objectSloConfig objectConfiguration for a service-level objective. Exactly one of sliReference or customSli must be provided. Providing both or neither results in a 400 Bad Request.
| Element | Type | Description |
|---|---|---|
| name | string | - |
| description | string | - |
| sliReference | Sli | - |
| customSli | Custom | - |
| criteria | Criteria[] | - |
| tags | string[] | A list of tags for this SLO. Tags can be plain strings (e.g. |
| externalId | string | An optional user-provided external identifier for the SLO. Must be unique across all SLOs. |
{"definition": {"id": "string","version": "string"}}