Create a new alert

Create a new alert configuration


ℹ️

A Pro Tip:
Create an alert configuration in Anodot's UI, then retrieve it using the GET Alert by ID endpoint. You can use the configuration section in the response as a starting point for creating your own alerts via API.

Request Arguments

Selected request arguments:

ArgumentTypeDescription
timescalestringTimescale of the alert. Valid values: {1m, 5m, 1h, 1d, 1w}.
typestringType of alert: {anomaly, static, no_data}.
titlestringTitle displayed when the alert is triggered.
descriptionstringDescription displayed when the alert is triggered.
searcharrayAlert query. Can be defined using key/value pairs or a stream ID. To retrieve stream IDs, see GET Data Streams.
severitystringSeverity level of the alert: {critical, high, medium, low, info}.
isOnlyOpenbooleanIf enabled, notifications are sent only on alert start and alert close.
channelsstringIDs of channels to which the alert will be sent. See GET Channels to retrieve channel IDs.
subscribersstringIDs of users who will receive the alert via email. See GET Alerts for examples with subscriber IDs.
conditionsarrayAlert conditions. For anomaly alerts: direction, significance, and duration. For static alerts: duration and threshold. For no data alerts: no_data_duration.
correlatedEventsarrayDetermines whether static events (from the Events API) are included. Can be filtered using key/value pairs.
labelsarrayLabels assigned to the alert. If a specified label does not exist, it will be created.
Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json