Create an alert
https://api.coralogix.com/mgmt/openapi/5/alerts/alerts/v3Creates a new alert definition.
Requires the following permissions:
alerts:UpdateConfig
Authorizations
Request
Body
A request to create a new alert definition
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 1
- Option 2
- Option 3
- Option 1
- Option 2
- Option 3
User-configurable properties of an alert definition
oneOfDefines when an alert should be active based on days of the week and time windows
Configuration for analytics alerts that fire immediately when a DataPrime query returns a result
Configuration for alerts that fire when a numeric column in a DataPrime query result violates a threshold
The sources from which to sample logs
A detailed description of what the alert monitors and when it triggers
Alert descriptionLabels used to identify and categorize the alert entity
Configuration for flow-based alerts with multiple stages
Keys used to group and aggregate alert data
["key1","key2"]Alert def incident settings.
Configuration for alerts triggered by anomalous log patterns
Configuration for immediate alerts triggered on log entries matching specific filters.
Configuration for alerts triggered by new values appearing in logs
Configuration for alerts based on the ratio between two log queries
Configuration for alerts triggered when log counts exceed or fall below specified thresholds
Configuration for alerts that are triggered when a fixed ratio reaches a set threshold compared to a past time frame.
Configuration for alerts based on unique value counts in logs
Configuration for alerts triggered by anomalous metric patterns
Configuration for alerts based on metric threshold violations
Alert def notification group.
Additional notification groups for alerts (deprecated)
Whether the alert is in phantom mode (creating incidents or not)
falseAlert def priority.
Possible values: [ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED, ALERT_DEF_PRIORITY_P4, ALERT_DEF_PRIORITY_P3, ALERT_DEF_PRIORITY_P2, ALERT_DEF_PRIORITY_P1]
SLO threshold type definition
oneOfBurn rate threshold definition
oneOfBurn rate type dual definition
The rules for the burn rate threshold
Possible values: >= 1, <= 5
Burn rate type single definition
Error budget threshold definition
Configuration for SLO definition
Configuration for immediate alerts triggered on trace entries
Configuration for alerts based on trace count thresholds
Alert def type.
Possible values: [ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED, ALERT_DEF_TYPE_LOGS_THRESHOLD, ALERT_DEF_TYPE_LOGS_ANOMALY, ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLD, ALERT_DEF_TYPE_LOGS_NEW_VALUE, ALERT_DEF_TYPE_LOGS_UNIQUE_COUNT, ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLD, ALERT_DEF_TYPE_METRIC_THRESHOLD, ALERT_DEF_TYPE_METRIC_ANOMALY, ALERT_DEF_TYPE_TRACING_IMMEDIATE, ALERT_DEF_TYPE_TRACING_THRESHOLD, ALERT_DEF_TYPE_FLOW, ALERT_DEF_TYPE_SLO_THRESHOLD, ALERT_DEF_TYPE_ANALYTICS_IMMEDIATE, ALERT_DEF_TYPE_ANALYTICS_THRESHOLD]
Response
A response that contains the newly created alert definition