Skip to main content
Push alert events from your own system to Flashduty through standard protocols to achieve automated alert noise reduction. :::tips Flashduty has already adapted webhook protocols for most common alert systems. For these systems, you should first use the corresponding integration for simplicity. This integration provides a standard HTTP interface that requires your development for adaptation. The advantage is that you can push any alert events you want to handle through On-call. :::

Steps


In Flashduty

You can obtain an integration push URL through either of the following two methods:

Using Dedicated Integration

When you don’t need to route alert events to different collaboration spaces, this method is preferred as it’s simpler.

Using Shared Integration

When you need to route alert events to different collaboration spaces based on the alert event’s Payload information, this method is preferred.

I. Request Description


Request Method

POST, Content-Type:“application/json”

Request Parameters:

Headers:

Query Strings:

Payload:

image Structure

Response

Data: Error: Code:

II. Request Example


Request:
Successful Response:
Failed Response:

III. Field Mapping and Value Mapping


If your system’s JSON format cannot directly match the standard Payload structure above, you can configure field mapping (field_mapping) and value mapping (value_mapping) in the integration settings to let Flashduty automatically convert any JSON format into standard alert events.
Once field mapping is configured, the request body no longer requires a fixed format. It accepts any JSON object, and also supports batch push via JSON arrays (up to 100 items per request).

Field mapping (field_mapping)

Use {{variable.path}} syntax to reference fields from the original JSON and map them to target fields of the standard alert event. Supported target fields: Variable syntax:
  • Use . to separate path levels, e.g. {{data.severity}} references a nested field
  • When the entire value is a single variable (e.g. "{{tags}}"), the original data type is preserved (object, array, etc.)
  • When a variable is mixed with other text (e.g. "{{host}} - {{check}}"), variables are converted to strings for concatenation
Two ways to map labels:
  • Wildcard expansion: "labels": "{{tags}}" — expands all children of the tags object as labels
  • Per-label mapping: "labels": {"env": "{{tags.env}}", "host": "{{hostname}}"} — maps each label individually
Example: Your system pushes the following format:
Configure the following field mapping:

Value mapping (value_mapping)

When your source system’s field values differ from Flashduty’s standard (e.g. using high instead of Critical for severity), configure value mapping for automatic conversion. Value mapping is configured per field path, with each path containing a source value → target value mapping table. Example:
Combined with the field mapping above, "severity": "high" in the original JSON is first extracted via field mapping, then converted to Critical via value mapping, and finally written to the event_status field.
All {{...}} variables must resolve to a value in the original JSON, otherwise the request will fail. It is recommended to test your mapping configuration with a small dataset first.

IV. Best Practices


  1. Send events to Flashduty when alert status changes
  2. When an alert recovers, send an event with status Ok to close the alert. Otherwise, the alert will remain open. If your alert system doesn’t have recovery events, we recommend manually sending recovery events
  3. Labels are event descriptions, and label content should be as rich as possible (specified when sending, or generated through enrichment rules), such as:
    • Alert source, like host, cluster, check, or metric
    • Alert ownership information, like team, owner
    • Alert category information, like class (api, db, net)

V. FAQ