Alerts
Create new alert
Creates a new alert with specified conditions, triggers, and notifications. Users can define custom queries, thresholds, and notification destinations to monitor their data and receive timely alerts when conditions are met.
post/api/v2/{org_id}/alerts
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name
Query parameters
folderstring
Folder ID for the alert. Authoritative: it overrides any folder_id in the body. The default folder is used when absent.
Request body
Example request
{
"description": "Fires when error count exceeds threshold in the specified time window",
"destinations": [
"slack-alerts",
"pagerduty"
],
"incident_title_template": "{service_name} errors on {host}",
"name": "High Error Rate Alert",
"oncall_team": "2f9K3mXQpLrTgYw8vN1cBzHd0Ae",
"pending_period_sec": 10,
"priority": 3,
"runbook_url": "https://wiki.example.com/runbooks/checkout",
"stream_name": "default",
"tags": [
"prod",
"service:checkout"
],
"workflows": [
"abcde12345"
],
"folder_id": "default"
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.