Can I Create Alerts (Checks, Notification Endpoint, Notification Rule) via API or any client lib?
- Client Version: github.com/influxdata/influxdb-client-go/v2 v2.12.3
- InfluxDB Version: InfluxDB v2.3.0+SNAPSHOT.090f681737
- Platform: Linux
Can I Create Alerts (Checks, Notification Endpoint, Notification Rule) via API or any client lib?
Hello yes you can create any task with the API. And an alert is just a special type of task.
Here are the API docs for it:
https://docs.influxdata.com/influxdb/v2.0/api/#operation/PostTasks
Here’s a blog with a postman project you can use that includes everything you need:
Here’s info on how to create an alert in notification in a single task:
Here’s another community question with both: