v1

latestOpenAPI 3.0.32026-07-26191565482.4 KB
LogScaleAlert

put/api/v1/config/log-scale-alerts/{slug}

Path parameters

slugstring required

Request body

create_if_missingboolean

If true, the LogScaleAlert will be created if it does not already exist, identified by slug. If false, an error will be returned if the LogScaleAlert does not already exist.

dry_runboolean

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

Example request

{
  "log_scale_alert": {
    "log_scale_query": "level = ERROR | severity > 3 | count(as=numErrors) | numErrors > 500"
  }
}

Response

A successful response containing the updated LogScaleAlert.

Example response

{
  "log_scale_alert": {
    "log_scale_query": "level = ERROR | severity > 3 | count(as=numErrors) | numErrors > 500"
  }
}