v1

latestOpenAPI 3.0.32026-07-26191565482.4 KB
LogScaleAlert

post/api/v1/config/log-scale-alerts

Request body

dry_runboolean

If true, validates the specified configuration without creating 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 created LogScaleAlert.

Example response

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