capabilities.work

Upsert an Alert

A 3-step recipe with Logz.io. We can help you get access.

Recipe · 3 steps

Upsert an Alert

with Logz.io

Upsert a single alert definition keyed by its title.

  1. Retrieve the complete list of alerts so an existing alert with the supplied title can be detected.
  2. Update the matched alert in place with the supplied title and query, keeping it enabled.
  3. Create a new alert with the supplied title and query when no existing alert matched.
What you'll need to have ready
  • apiToken: Logz.io API token sent in the X-API-TOKEN header.
  • alertTitle: The alert title used to detect an existing alert.
  • query: Lucene search query the alert evaluates against the logs.
For your developer

Arazzo workflow logz-io:upsert-alert, 3 operations: getAllAlerts → updateAlert → createAlert. Specs on APIs.io.