Skip to main content
Plan requirement: Basic label enhancement requires an On-call Standard or higher subscription. Advanced label enhancement (such as API mapping) requires a Pro or higher subscription. Learn more

Core Uses

Labels are used throughout Flashduty On-call’s alert processing workflow:

Configure Label Enhancement

Go to Integration Details → Label EnhancementAdd Rule.

Enhancement Types

Label enhancement types

Configuration Options

Multiple rules execute sequentially from top to bottom. When a rule doesn’t match, it’s skipped and no corresponding label is generated.

Configuration Examples

Scenario: Alert events come from email integration; need to extract key information from description as labels for other scenarios, like extracting IP and trigger value from description as independent labels.
1

View Original Alert

Original alert
2

Configure Extraction Rule

Extraction rule configuration
3

Verify Extraction Result

Extraction result

Mapping Data Management

Mapping Table Data Management

In the mapping table details page, you can manage mapping table data:
Mapping table data management
For frequently changing mapping relationships (like Mapping api data sync), we recommend using API mapping, or use Flashduty API for automated mapping table updates.

Mapping Service API Specification

When using API mapping, your external API service must follow these specifications:

Request Specification

Flashduty will call your API via POST method with the following request body:

Response Specification

The API must return a JSON response in the following format: Success Response (HTTP 200):
If a requested label cannot find a corresponding value, the API should not include that key in result_labels.

Security Constraints

For security purposes, the following HTTP Headers are prohibited in mapping services:
We recommend using custom Headers with X-Custom- or X-Enrich- prefix for authentication.

Best Practices

  1. Performance First: The API is on the critical path of alert processing, must ensure low latency (recommended < 500ms)
  2. Implement Caching: For identical query conditions, implement caching to improve performance
  3. Idempotent Design: Multiple calls for the same event should return identical results
  4. Secure Authentication: API must be protected by authentication mechanisms to prevent unauthorized access

Further Reading

Configure Escalation Rules

Use labels to match escalation conditions

Configure Noise Reduction

Use labels as grouping dimensions

Configure Filter Conditions

Learn label matching syntax

Configure Routing Rules

Distribute alerts to different channels