---
title: "POST /api/v1/config/log-scale-alerts"
method: POST
path: "/api/v1/config/log-scale-alerts"
tags: ["LogScaleAlert"]
---

# POST /api/v1/config/log-scale-alerts

`POST /api/v1/config/log-scale-alerts`

## Request body

- Configv1CreateLogScaleAlertRequest
  - `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` Configv1LogScaleAlert
    - `alert_type` 'STANDARD' | 'FILTER'
    - `created_at` string, date-time — Timestamp of when the LogScaleAlert was created. Cannot be set by clients.
    - `description` string — Description of the alert.
    - `disabled` boolean — Flag indicating whether the alert is disabled.
    - `log_scale_action_slugs` string[] — Slugs of LogScale actions that will receive the alerts. When the value is empty this alert won't trigger. Optional.
    - `log_scale_query` string — LogScale query to execute.
    - `name` string, required — Name of the alert.
    - `repository` string — Name of LogScale repository the alerts belongs to. Required.
    - `run_as_user` string — Email of the user that the alert runs on behalf of. Required.
    - `slug` string — The unique identifier of the LogScaleAlert. If a `slug` isn't provided, one is generated based on the `name` field. You can't modify this field after the LogScaleAlert is created.
    - `tags` string[] — Tags attached to the alert.
    - `throttle_field` string — Field to throttle on. Optional.
    - `throttle_secs` integer — Throttle time in seconds. The alert is triggered at most once per throttle period.
    - `time_window_secs` integer — Lookback window used for an alert's evaluation. If this is set to 86400 seconds (24 hours), only the events from the last 24 hours will be considered when the alert query is run.
    - `updated_at` string, date-time — Timestamp of when the LogScaleAlert was last updated. Cannot be set by clients.

## Response `200`

A successful response containing the created LogScaleAlert.

- Configv1CreateLogScaleAlertResponse
  - `log_scale_alert` Configv1LogScaleAlert
    - `alert_type` 'STANDARD' | 'FILTER'
    - `created_at` string, date-time — Timestamp of when the LogScaleAlert was created. Cannot be set by clients.
    - `description` string — Description of the alert.
    - `disabled` boolean — Flag indicating whether the alert is disabled.
    - `log_scale_action_slugs` string[] — Slugs of LogScale actions that will receive the alerts. When the value is empty this alert won't trigger. Optional.
    - `log_scale_query` string — LogScale query to execute.
    - `name` string, required — Name of the alert.
    - `repository` string — Name of LogScale repository the alerts belongs to. Required.
    - `run_as_user` string — Email of the user that the alert runs on behalf of. Required.
    - `slug` string — The unique identifier of the LogScaleAlert. If a `slug` isn't provided, one is generated based on the `name` field. You can't modify this field after the LogScaleAlert is created.
    - `tags` string[] — Tags attached to the alert.
    - `throttle_field` string — Field to throttle on. Optional.
    - `throttle_secs` integer — Throttle time in seconds. The alert is triggered at most once per throttle period.
    - `time_window_secs` integer — Lookback window used for an alert's evaluation. If this is set to 86400 seconds (24 hours), only the events from the last 24 hours will be considered when the alert query is run.
    - `updated_at` string, date-time — Timestamp of when the LogScaleAlert was last updated. Cannot be set by clients.

## Other responses

- `400` — Cannot create the LogScaleAlert because the request is invalid.
- `409` — Cannot create the LogScaleAlert because there is a conflict with an existing LogScaleAlert.
- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.dev/chronosphere/apis/data-v1-api.md) · [All operations](https://skmtc.dev/chronosphere/apis/data-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chronosphere/data-v1-api/revisions/ee91fd539ced/schema)
