Pular para o conteúdo principal
POST
Create an alert
Guia relacionado: Guia de alertas. Consulte o Guia de alertas para ver um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
display_name
string
obrigatório

Workspace-unique display name.

Exemplo:

"High spend on production"

query
object
obrigatório

Metric query evaluated on each tick.

condition
object
obrigatório

Threshold condition applied to the query result.

description
string

Short human-readable summary of what the alert watches.

project_id
string

Project that owns a project alert. Empty for a workspace alert.

signal
string

UI signal preset the alert is created from. Defaults to custom.

notifier_ids
string[]

Notifiers that receive trigger-open and trigger-resolve notifications.

enabled
boolean

Whether the alert starts evaluating immediately. Defaults to true.

display
object

Display options for the alert activity chart.

scope
enum<string>

Ownership and telemetry evaluation boundary. Unspecified remains a project alert for compatibility with existing clients.

Opções disponíveis:
ALERT_SCOPE_PROJECT,
ALERT_SCOPE_WORKSPACE

Resposta

OK

alert
object
obrigatório

Newly created alert.