/plushcap/analysis/influxdata/building-an-iot-app-with-influxdb-cloud-python-and-flask-part-3

Building an IoT App with InfluxDB Cloud, Python and Flask (Part 3)

What's this blog post about?

To create a notification rule task in InfluxDB Cloud, follow these steps: 1. Create an endpoint variable in Flux that points to a publicly accessible URL (I punched a hole through my firewall so that my development server is accessible from InfluxDB Cloud). 2. Use the monitoring library to search for any matching statuses that you want to notify users about (specifically if the _level is crit). 3. Call the endpoint for every record that matches that condition, sending along the message created by the check. 4. Store and use the secret in InfluxDB Cloud. 5. Set up the Notification Rule task. 6. Finally, register the notification rule as a task with InfluxDB.

Company
InfluxData

Date published
July 2, 2021

Author(s)
Rick Spencer

Word count
6870

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.