Skip to main content
Transform any webhook payload into an alert event. This flexible integration handles webhooks from monitoring systems that don’t have first-class integrations.
Prerequisite: Check that you can access the Integrations Page in ResolveAI. You’ll need to be an admin for your organization to visit this page and make changes.

1. In Resolve, create a webhook

  1. Open the Integrations Page
  2. Click Alert Webhook
  3. Click Add Connection
  4. Add a Name for your new webhook Alert Webhook Setup
  5. Click Save
  6. Click the Name to re-open the integration instance.
  7. Click Edit
  8. Click + under Webhooks to create a new webhook. This will show custom generate instructions, with secrets unique to this webhook. Note: Ensure you finish the instructions before closing, or you will have to create a new webhook.
  9. Configure your monitoring system to POST to the Endpoint URL with the Required Headers Bearer token:
    • Either in the headers: Authorization: Bearer <yourIngestToken>
    • As query params: url?token=<yourIngestToken>
    Configuration Instructions
  10. Enable Integration: Switch the webhook on and manage webhook tokens from the post-setup view Post-Setup Management

Alert Template Configuration

The alert template uses template syntax to transform incoming webhook payloads. The template should output valid JSON that matches the AlertEvent schema.

Required Fields

Your template must include these required fields:
  • id: Unique identifier for the alert
  • time: Timestamp in ISO8601 format
  • action: One of “fire”, “warn”, or “resolve”

Template Context

Templates have access to:
  • webhook: The incoming webhook payload
  • now: Current timestamp in ISO8601 format

Example Template

Custom Filters

Use custom filters to transform the data you send via webhook:

Type Conversion Filters

  • to_number: Converts values to numbers, defaults to 0 for invalid values
  • to_boolean: Converts values to boolean (handles “true”/“1” as true)
  • iso8601: Converts date values to ISO8601 format, falls back to current time

Data Processing Filters

  • regex_extract: Extracts text using regex patterns
  • json: Serializes values to JSON strings
  • default: Provides fallback values for empty/null fields
  • hash: Generates consistent hash values for creating alert IDs
  • date: Enhanced date filter with “now” keyword support

Filter Usage Example

Webhook Payload Examples

Basic Alert Payload

Custom Monitoring System Payload

Template for custom payload:

Advanced Configuration

Custom Field Mapping

Map webhook fields to specific alert properties:

Conditional Logic

Use conditionals for complex transformations:

Array Processing for Labels

Avoid this if possible, as templates with loops cannot be health checked.
Build labels from array data using for loops:
Example webhook payload with arrays:

Troubleshooting

Common Issues

  1. “Missing required field” errors: Ensure id, time, and action are present in template output
  2. Invalid JSON output: Verify template produces valid JSON syntax
  3. Type conversion errors: Use appropriate filters for data type conversion
  4. Template rendering timeouts: Simplify complex templates or reduce payload size

Debugging Templates

  1. Use the template validation feature during configuration (Coming Soon)
  2. Test with sample webhook payloads (Coming Soon)
  3. Check health check results for validation errors

Integration with Monitoring Systems

The Alert Webhook integration can receive webhooks from various monitoring systems. Configure your monitoring system to send POST requests to the provided webhook URL with the Bearer token in the Authorization header. Supported webhook actions:
  • fire: Alert is triggered/active
  • warn: Alert is in warning state
  • resolve: Alert is resolved/cleared
For monitoring systems that don’t use these exact values, use template logic to map their status values to the supported actions.

Template Generation Assistant

Use this prompt with Claude to automatically generate a webhook template for your specific payload structure:

Prompt for Template Generation