/api/v2/alerts/{id}Retrieves a specific alert by ID
Authorizations
Path parameters
Response
200
Successfully retrieved alert
- dataoptionalobject{ … }
The alert object.
27 properties
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.
3 variants
One of the following:
- AlertLineChartConfig{ … }
3 properties
- nameoptionalstring
Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name.
Example: "Error Rate Query" - whereoptionalstring
Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead).
maxLength: 10000Example: "ServiceName:api" - whereLanguageoptionalsqlorlucene
Language of the chart-level "where" filter.
- AlertBarChartConfig{ … }
3 properties
- nameoptionalstring
Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name.
Example: "Error Rate Query" - whereoptionalstring
Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead).
maxLength: 10000Example: "ServiceName:api" - whereLanguageoptionalsqlorlucene
Language of the chart-level "where" filter.
3 properties
- nameoptionalstring
Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name.
Example: "Error Rate Query" - whereoptionalstring
Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead).
maxLength: 10000Example: "ServiceName:api" - whereLanguageoptionalsqlorlucene
Language of the chart-level "where" filter.
First notification channel, mirrored from "channels" for pre-multi-channel clients.
1 variants
One of the following:
- AlertChannelWebhook{ … }
2 properties
- typewebhookrequired
Channel type. Must be "webhook" for webhook alerts.
- webhookIdstringrequired
Webhook destination ID.
Example: "65f5e4a3b9e77c001a789012"
All notification channels to trigger when the alert fires or resolves.
1 variants
One of the following:
- AlertChannelWebhook{ … }
2 properties
- typewebhookrequired
Channel type. Must be "webhook" for webhook alerts.
- webhookIdstringrequired
Webhook destination ID.
Example: "65f5e4a3b9e77c001a789012"
401
Unauthorized
403
Forbidden