v1

latestOpenAPI 3.0.32026-07-26191565482.4 KB
SLO

post/api/v1/config/slos

Request body

dry_runboolean

If true, validates the specified configuration without creating the SLO. If the specified configuration is valid, the endpoint returns a partial response without the SLO. If the specified configuration is invalid, the endpoint returns an error.

Example request

{
  "slo": {
    "definition": {
      "time_window": {
        "duration": "\"30d\""
      }
    },
    "notification_policy_slug": "alerting_notification_policy"
  }
}

Response

A successful response containing the created SLO.

Example response

{
  "slo": {
    "definition": {
      "time_window": {
        "duration": "\"30d\""
      }
    },
    "notification_policy_slug": "alerting_notification_policy"
  }
}