Skip to main content
POST

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

application/json

At least one of "channel" or "channels" must be provided. Sending both is allowed only when "channel" matches the first entry of "channels", so a response body can be echoed back unchanged. Responses always include both, with "channel" mirroring the first entry of "channels".

threshold
number
必須

Threshold value for triggering the alert. For between and not_between threshold types, this is the lower bound.

:

100

interval
enum<string>
必須

Evaluation interval for the alert.

利用可能なオプション:
1m,
5m,
15m,
30m,
1h,
6h,
12h,
1d
:

"1h"

thresholdType
enum<string>
必須

Threshold comparison direction.

利用可能なオプション:
above,
below,
above_exclusive,
below_or_equal,
equal,
not_equal,
between,
not_between
:

"above"

dashboardId
string | null

Dashboard ID for tile-based alerts.

:

"65f5e4a3b9e77c001a567890"

tileId
string | null

Tile ID for tile-based alerts. Must be a line, stacked bar, or number type tile.

:

"65f5e4a3b9e77c001a901234"

savedSearchId
string | null

Saved search ID for saved_search alerts.

:

"65f5e4a3b9e77c001a345678"

groupBy
string | null

Group-by key for saved search alerts.

:

"ServiceName"

chartConfig
object

Chart configuration for inline alerts. Required when source is "inline" and rejected otherwise. Returned on single-alert responses (GET by ID, POST, PUT); the list endpoint omits it.

thresholdMax
number | null

Upper bound for between and not_between threshold types. Required when thresholdType is between or not_between, must be >= threshold.

:

500

scheduleOffsetMinutes
integer | null

Offset from the interval boundary in minutes. For example, 2 with a 5m interval evaluates windows at :02, :07, :12, etc. (UTC).

必須範囲: x >= 0
:

2

scheduleStartAt
string<date-time> | null

Absolute UTC start time anchor. Alert windows start from this timestamp and repeat every interval.

:

"2026-02-08T10:00:00.000Z"

source
enum<string>

Alert source type (tile-based or saved search).

利用可能なオプション:
saved_search,
tile,
inline
:

"tile"

channel
object

First notification channel, mirrored from "channels" for pre-multi-channel clients.

channels
object[]

All notification channels to trigger when the alert fires or resolves.

Required array length: 1 - 10 elements
name
string | null

Alert name template (Handlebars), rendered as the notification title. When omitted, a default title is generated from the display name, value and threshold.

:

"Errors for {{group}} hit {{value}}"

displayName
string | null

Display name shown in the alerts list and in notification titles. Defaults to the name of the referenced saved search, dashboard tile, or inline chart when omitted or null.

Required string length: 1 - 512
:

"Checkout error spike"

tags
string[] | null

Tags for the alert. Defaults to the tags of the referenced saved search or dashboard when omitted or null; inline alerts have no parent to inherit from and default to an empty list.

Maximum array length: 50
Maximum string length: 32
:
message
string | null

Alert message template.

:

"Test Alert Message"

note
string | null

Freeform note for the alert. Supports markdown formatting.

Required string length: 1 - 4096
:

"Threshold raised from 50 to 100 on 2026-01-15. See [runbook](https://wiki.example.com/runbook)."

numConsecutiveWindows
integer | null

Fire the alert only after its condition has been met for this many consecutive evaluation windows. While the condition is met but fewer than this many consecutive windows have violated, the alert is in the PENDING state.

必須範囲: x >= 1
:

3

レスポンス

Successfully created alert

data
object

The alert object.

最終更新日 2026年9月5日