Create alert
fastero_create_alertWatch one number from a saved query and email when it crosses a line. On each run the query executes; the alert reads column from its first row (or the first numeric column when none is named) and compares it with value using op (gt, gte, lt, lte). It emails when the number crosses, again when it comes back, and once if the check starts failing — staying across the line sends nothing. Recipients must be members of the organisation; with none given it emails you. The cadence is at most once an hour, in the timezone given. The same query and condition asked again updates the timetable and recipients. fastero_set_schedule_enabled switches it off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| value | Yes | ||
| column | No | Column read from the query's first row. | |
| emails | No | ||
| cadence | Yes | Five-field cron (minute hour day-of-month month day-of-week), at most once an hour, read in `timezone`. '0 9 * * 1' is 09:00 every Monday; '0 8 1 * *' is 08:00 on the 1st of each month. | |
| queryId | Yes | A saved query’s id, from fastero_list_queries. | |
| timezone | Yes | IANA timezone the cadence is read in, e.g. 'Europe/Berlin' or 'America/New_York'. | |
| projectId | Yes | The project’s id, from fastero_list_projects. |