Notification Endpoint Then Alert
A 3-step recipe with Logz.io. We can help you get access.
Recipe · 3 steps
Notification Endpoint Then Alert
with Logz.io
Provision a Slack endpoint and create an alert that notifies it.
- Create a Slack notification endpoint that triggered alerts can target. The test query parameter is false so the endpoint is actually persisted.
- Create a log alert whose notification recipients include the Slack endpoint id created in the previous step, so triggers are routed to Slack.
- Read the created alert back by its id to confirm it persisted and capture its enabled state and title.
What you'll need to have ready
- apiToken: Logz.io API token sent in the X-API-TOKEN header.
- endpointTitle: Display name for the Slack notification endpoint.
- slackWebhookUrl: The Slack incoming webhook URL to deliver notifications to.
- alertTitle: Title for the new alert.
- query: Lucene search query the alert evaluates against the logs.
For your developer
Arazzo workflow logz-io:endpoint-then-alert, 3 operations: createSlack → createAlert → getAlert. Specs on APIs.io.