Skip to main content
PUT
/
api
/
v1
/
config
/
log-scale-alerts
/
{slug}
{
  "log_scale_alert": {
    "name": "<string>",
    "alert_type": "STANDARD",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "disabled": true,
    "log_scale_action_slugs": [
      "<string>"
    ],
    "log_scale_query": "level = ERROR | severity > 3 | count(as=numErrors) | numErrors > 500",
    "repository": "<string>",
    "run_as_user": "<string>",
    "slug": "<string>",
    "tags": [
      "<string>"
    ],
    "throttle_field": "<string>",
    "throttle_secs": 123,
    "time_window_secs": "3600",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

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_run
boolean

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.

log_scale_alert
object

The LogScaleAlert to update.

Response

A successful response containing the updated LogScaleAlert.

log_scale_alert
object