Skip to main content
POST
/
api
/
v1
/
config
/
log-scale-alerts
{
  "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

Body

application/json
dry_run
boolean

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.

log_scale_alert
object

The LogScaleAlert to create.

Response

A successful response containing the created LogScaleAlert.

log_scale_alert
object