Flashcat API (English)
API referenceDocs中文
API referenceDocs中文
  1. Event API
  • Open API
    • Quick Start
    • About Pagination
    • Member Management
      • Invite members
      • Delete member
      • Reset information
      • Member list
    • Team Management
      • Team list
      • Basic information
      • Delete team
      • Team upsert
    • Schedule Management
      • Preview schedule
      • Update schedule
      • Enable schedule
      • Disable schedule
      • Create schedule
      • Delete schedule
      • View schedule details
      • Get schedule information by ID list
      • View schedule list
      • Personal schedule calendar
      • Role information
    • Information Retrieval
      • Channel
      • Member
      • Team
    • Preference Settings
      • View preference settings
      • Modify preference settings
    • Channel
      • Escalation Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Rule details
        • Create rule
        • Update rule
      • Subscription Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Create rule
        • Update rule
      • Drop Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Create rule
        • Update rule
      • Silence Rules
        • Enable rule
        • Disable rule
        • Delete rule
        • Rule list
        • Rule details
        • Inner conditions
      • Inhibit Rules
        • Disable rule
        • Delete rule
        • Rule list
        • See creation interface for filters explanation
        • Channel ID
        • Rule name
      • Match conditions
      • Delete rule
      • See creation interface for filters explanation
      • Enable rule
      • Update rule
      • Rule ID
      • Rule name
      • Sort
      • Delete rule
      • See creation interface for filters explanation
      • Name by integration
      • Robot list
    • Template Management
      • Name
      • Enable rule
      • Delete rule
      • See creation interface for filters explanation
      • Channel ID
      • Rule name
      • Required when updating
      • Update rule
    • Incident Management
      • Group View
        • Channel
        • Rule name
        • Inner conditions
        • Channel
      • Match conditions
      • Enable rule
      • Disable rule
      • Delete rule
      • Rule list
      • See creation interface for filters explanation
      • Create rule
      • Rule description
      • Update rule
      • Channel
      • Match conditions
      • Match conditions
      • Update rule
      • Channel
      • Rule ID
      • Inner conditions
      • Enable rule
      • Rule list
      • Rule details
      • Rule name
      • Rule description
      • Match conditions
      • Rule description
      • See creation interface for filters explanation
      • Disable rule
      • Rule description
    • Alert Management
      • Group View
        • Required when updating
        • Rule name
        • Inner conditions
        • Disable rule
      • Alert Info
      • Close Alert
      • Alert List By Card
      • Alert List
      • Alert List By ID
      • Event List
      • Feed
      • Merge Incident
    • Change Management
      • Inner conditions
    • Insights (old)
      • Channel
      • Match conditions
      • Rule ID
      • Enable rule
      • Name
      • Disable rule
      • Rule name
      • Name
      • See creation interface for filters explanation
    • Custom Fields
      • Enable rule
      • Disable rule
      • See creation interface for filters explanation
      • Channel ID
      • Channel
    • Service Calendar
      • Match conditions
      • Delete rule
      • Update rule
      • Required when updating
      • Rule details
      • Required when updating
      • Inner conditions
      • Channel
    • Label Enhancement
      • Mapping
        • Rule name
        • Rule list
        • Rule description
        • Match conditions
        • Rule ID
        • Rule description
        • Inner conditions
        • Enable rule
        • Disable rule
        • Rule description
      • Enable rule
      • Delete rule
    • Alert Processing
      • Create rule
      • Rule name
    • Integration Routing
      • Required when updating
      • Rule description
      • Match conditions
    • License Management
      • Create rule
    • Insights
      • Team Metrics
      • Responder Metrics Export
      • Incident List
      • Responder Metrics
      • Account Metrics
      • Channel Metrics Export
      • Team Metrics Export
      • Incident Export
      • Alert Top
      • Cahnnel Metrics
  • Event API
    • Quick Start
    • Alert Event
    • Change Event
  • Webhook
    • Quick Start
    • Custom Actions
    • Alert Webhook
    • Incident Webhook
  1. Event API

Alert Event

Push alert events from your own system to Flashcat Cloud through standard API to achieve automated alert noise reduction.

I. Request Description#


Request Method#

POST, Content-Type:"application/json"

Request Parameters:#

Headers:#

FieldRequiredTypeDescription
Content-TypeYesstringFixed value: application/json

Query Strings:#

FieldRequiredTypeDescription
integration_keyYesstringIntegration key for access control. Obtained after adding integration.

Payload:#

FieldRequiredTypeDescription
title_ruleYesstringAlert title, no more than 512 characters, will be truncated if exceeded.

Supports dynamic title generation based on alert content, see Customizing Incidents for generation rules.
event_statusYesstringAlert status.

Enumerated values (case-sensitive): Critical, Warning, Info, Ok.

When specified as Ok, it means automatic recovery of the alert.
alert_keyNostringAlert identifier, used to update or automatically recover existing alerts.

You can customize this value, but it cannot exceed 255 characters. You can also rely on system auto-generation, this value will be returned in the response.

If you're reporting a recovery event, this value must exist.
descriptionNostringAlert description, no more than 2048 characters, will be truncated if exceeded.
labelsNomapAlert label collection, key is the label name, value is the label value:

1. Both key and value of labels are string type, case-sensitive.
2. Label key should not exceed 128 characters, following Prometheus label naming conventions. Value should not exceed 2048 characters, will be truncated if exceeded.
3. Maximum of 50 labels. See Label Content Reference in Best Practices.

Example: "resource": "171.26.23.22", "check": "api latency > 500ms"

Response#

Field NameRequiredTypeDescription
request_idYesstringRequest ID for trace tracking
errorNoErrorError description, returned only when an error occurs
dataNoDataReport information
Data:
Field NameRequiredTypeDescription
alert_keyNostringAlert identifier, can be used to report recovery events. If you specified an alert_key when reporting the event, this value remains unchanged. Otherwise, it's automatically generated by the system.
Error:
Field NameRequiredTypeDescription
codeYesstringError code, see Code for enumerated values
messageNostringError description
Code:
Error CodeHTTP StatusDescription
InvalidParameter400Parameter error
InvalidContentType400Content-Type not supported
MethodNotAllowed400HTTP Method not supported
Unauthorized401Login authentication failed
AccessDenied403Permission authentication failed
RequestTooFrequently429Request too frequent
RouteNotFound404Request Method+Path not matched
ResourceNotFound400Account hasn't purchased resources, please go to the cost center to place an order
NoLicense400Account has insufficient subscription licenses, please upgrade or purchase subscription in the cost center
InternalError500Internal or unknown error

II. Request Example#


Request:
Successful Response:
{
    "request_id": "0ace00116215ab4ca0ec5244b8fc54b0",
    "data": {
        "alert_key": "9qJ798NJoXS4UMVB5SHsNj"
    }
}
Failed Response:
{
    "request_id": "0ace00116215abc0ba4e52449bd305b0",
    "error": {
        "code": "InvalidParameter",
        "message": "integration_key is not a valid one"
    }
}

III. 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)

IV. FAQ#


Why haven't I received alerts in Flashduty?

In Flashduty#

1.
Check if the integration shows Latest Event Time? If not, it means Flashduty hasn't received the push, prioritize checking your system.
2.
If you're using Shared Integration, first confirm if you've configured Routing Rules. Without routing rules, the system will directly reject new pushes as there's no collaboration space to handle your alerts. In this case, simply configure routing rules to your desired space.

In Your System#

1.
Confirm that your request URL exactly matches the URL in the integration details.
2.
Confirm that your service can access the external domain api.flashcat.cloud. If not, you need to enable external network access for the server or specifically for Flashduty's domain.
3.
Print Flashduty service's response to check for clear information.
If you still can't find the root cause after these steps, please contact us with the request_id from the request response.
Why was the push request successful but no new alerts or incidents were generated?
Flashduty uses a 2-layer noise reduction mechanism:
1.
First, it checks for duplicate alert events. If your pushed event is identical to a previously pushed event, the new event will be discarded.
2.
If the new event's status and description match the status, title, and description of the last event of its corresponding alert, the new event will be discarded while updating the alert's attributes.
3.
The new event might be discarded due to matching exclusion, discard, suppression, or silence rules.
4.
When a new event triggers a new alert, the system enters the second layer of noise reduction check, determining if the new alert can be merged into an active incident. If possible, it will only merge into the existing incident without generating a new one.
For more information, please refer to Alert Noise Reduction.
Previous
Quick Start
Next
Change Event
Built with