Service Level Objective Corrections
Create an SLO correction
Create an SLO correction. Use slo_id to apply the correction to a single SLO, or slo_query to apply the correction to SLOs that match a query. Exactly one of slo_id or slo_query is required.
post/api/v1/slo/correction
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v1/slo/correction
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token scopes: slos_corrections
Request body
Example request
{
"data": {
"attributes": {
"category": "Scheduled Maintenance",
"duration": 1600000000,
"end": 1600000000,
"rrule": "FREQ=DAILY;INTERVAL=10;COUNT=5",
"slo_id": "sloId",
"slo_query": "env:prod service:checkout",
"start": 1600000000,
"timezone": "UTC"
},
"type": "correction"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"category": "Scheduled Maintenance",
"duration": 3600,
"rrule": "FREQ=DAILY;INTERVAL=10;COUNT=5"
},
"type": "correction"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.