Flashduty Docs
中文EnglishRoadmapAPI官网控制台
中文EnglishRoadmapAPI官网控制台
  1. Webhooks
  • Getting Started
    • Introduction
    • Quick start
    • FAQ
    • Product Comparison
  • Incidents
    • What is an Incident
    • View Incidents
    • Handle Incidents
    • Escalations and Assignments
    • Custom Fields
    • Custom Actions
    • Alert Noise Reduction
    • Past Incidents
    • Outlier Incidents
  • Configure Flashduty
    • Channels
    • Integrate Alerts
    • Alert Noise Reduction
    • Escalation Rules
    • Label Enrichment
    • Schedules
    • Templates
    • Service Calendars
    • Preferences
    • Alert Routing
    • Silence and Inhibition
    • Filters
    • Notification Bots
    • Alert Pipeline
  • Platform
    • Teams and Members
    • Permissions
    • Single Sign-On
    • Insights
  • Advanced Features
    • Referencing Variables
    • Dynamic Assignment
  • Integrations
    • Alerts integration
      • Standard Alert Integration
      • Email Integration
      • Nightingale/FlashCat Integration
      • Prometheus Integration
      • Grafana Integration
      • Zabbix Integration
      • Uptime Kuma Integration
      • Alibaba Cloud ARMS Integration
      • Alibaba Cloud Monitor CM Event Integration
      • Alibaba Cloud Monitor CM Metrics Integration
      • Alibaba Cloud SLS Integration
      • AWS CloudWatch Integration
      • Azure Monitor Integration
      • Baidu Cloud BCM Integration
      • Huawei Cloud CES Integration
      • Influxdata Integration
      • Open Falcon Integration
      • PagerDuty Integration
      • Tencent BlueKing Integration
      • Tencent Cloud CLS Integration
      • Tencent Cloud Monitor CM Integration
      • Tencent Cloud EventBridge
      • OceanBase Integration
      • Graylog Integration
      • Skywalking Integration
      • Sentry Integration
      • Jiankongbao Integration
      • AWS EventBridge Integration
      • Dynatrace Integration
      • Huawei Cloud LTS Integration
      • GCP Integration
      • Splunk Alert Events Integration
      • AppDynamics Alert Integration
      • SolarWinds Alert Events Integration
      • Volcengine CM Alert Events Integration
      • Volcengine CM Event Center Integration
      • Volcengine TLS Integration
      • OpManager Integration
      • Meraki Integration
      • Keep Integration
      • ElastAlert2 Alert Integration
      • StateCloud Alert Events
      • Guance Alert Events
      • Zilliz Alert Events
      • Huawei Cloud APM Alerts
      • zstack integration
    • Change integration
      • Standard Change Event
      • Jira Issue Events
    • IM integration
      • Feishu (Lark) Integration Guide
      • Dingtalk Integration
      • WeCom Integration
      • Slack Integration
      • Microsoft Teams Integration
    • Single Sign-On
      • Authing Integration
      • Keycloak Guide
      • OpenLDAP Guide
    • Webhooks
      • Alert webhook
      • Incident webhook
      • Costom action
  • Terms
    • Terms of Service
    • User Agreement/Privary Policy
    • SLA
    • Data Security
  1. Webhooks

Costom action

Custom incident actions allow you to quickly invoke external interfaces during incident troubleshooting for incident self-healing, information enrichment, and other custom operations.

I. Creating Actions#

1.
Log in to the FlashDuty console and navigate to [Integration Center-Webhook]
2.
Click to add a Custom Action integration
3.
Configure the action name, which will appear as a button in the incident details
4.
Configure channels (multiple can be configured, but each channel can have up to three custom actions)
5.
Configure Endpoint and custom Headers
6.
Save to complete

II. Push Description#

Request Method#

POST, Content-Type:"application/json"

Request Payload:#

FieldTypeRequiredDescription
event_timeint64YesEvent occurrence timestamp in milliseconds
event_typestringYesEvent type, fixed value i_custom
event_idstringYesEvent ID, same event may retry multiple times due to timeout, receivers need to deduplicate
personPersonNoOperator, exists only for manual actions
incidentIncidentYesIncident details
Person:
FieldTypeRequiredDescription
person_idint64YesPerson ID
person_namestringYesPerson name
emailstringYesEmail address
Responder:
FieldTypeRequiredDescription
person_idint64YesPerson ID
person_namestringYesPerson name
emailstringYesEmail address
assigned_atint64NoAssignment time
acknowledged_atint64NoAcknowledgment time
Incident:
FieldTypeRequiredDescription
incident_idstringYesIncident ID
titlestringYesIncident title
descriptionstringNoIncident description
impactstringNoIncident impact
root_causestringNoRoot cause
resolutionstringNoResolution
incident_severitystringYesSeverity level, enum: Critical, Warning, Info
incident_statusstringYesIncident status, enum: Critical, Warning, Info, Ok
progressstringYesProcessing progress, enum: Triggered, Processing, Closed
created_atint64YesCreation time
updated_atint64YesUpdate time
start_timeint64YesTrigger time, Unix timestamp in seconds
last_timeint64NoLatest event time, latest event push time of associated alerts, Unix timestamp in seconds, default 0
end_timeint64NoRecovery time, incident auto-recovers when all associated alerts recover, Unix timestamp in seconds, default 0
ack_timeint64NoFirst acknowledgment time, incidents can be acknowledged by multiple people, this is the earliest acknowledgment time. Unix timestamp in seconds, default 0
close_timeint64NoClose time, end_time represents incident recovery time, close_time represents processing progress closure time. Incident recovery triggers closure, but closure doesn't affect recovery. Unix timestamp in seconds, default 0
snoozed_beforeint64NoSnooze deadline time
labelsmap[string]stringNoLabel KV pairs, both Key and Value are strings. Not present for manually created incidents, for auto-created incidents contains labels from the first aggregated alert
fieldsmap[string]interface{}NoCustom field KV pairs, Key is string, Value can be any type depending on field type
creatorPersonNoCreator information, exists only for manually created incidents
closerPersonNoCloser information, exists only for manually closed incidents
responders[]ResponderNoList of responder information
alertsAlertNoAssociated alerts
alert_cntint64NoNumber of associated alerts
channel_idint64NoChannel ID, 0 means not belonging to any channel
channel_namestringNoChannel name
detail_urlstringYesDetail URL
group_methodstringNoGrouping method, enum: n: no grouping, p: rule-based grouping, i: intelligent grouping
Alert:
FieldTypeRequiredDescription
alert_idstringYesAlert ID
data_source_idint64YesIntegration ID
titlestringYesAlert title
descriptionstringNoAlert description
alert_keystringYesAlert correlation basis
alert_severitystringYesSeverity level, enum: Critical, Warning, Info
alert_statusstringYesAlert status, enum: Critical, Warning, Info, Ok
progressstringYesProcessing progress, enum: Triggered, Closed
created_atint64YesCreation time
updated_atint64YesUpdate time
start_timeint64YesFirst trigger time (time of first event received by platform), Unix timestamp in seconds
last_timeint64YesLatest event time (time of latest event received by platform), Unix timestamp in seconds
end_timeint64NoAlert recovery time (time of last end-type event received by platform), Unix timestamp in seconds, default 0
close_timeint64NoClose time, different from end_time, this is processing progress closure, doesn't mean alert actually recovered. Unix timestamp in seconds, default 0
labelsmap[string]stringNoLabel KV pairs, both Key and Value are strings

Response#

HTTP status code 200 indicates successful push.

Request Example#

III. Use Cases#

Host Restart#

When host memory or CPU is maxed out, trigger host restart scripts for quick recovery.

Information Enrichment#

When an incident occurs, callback to your service to retrieve Tracing, Logging, topology, and other information based on alert details. Actively call FlashDuty Open API to update incident information, such as adding labels or setting custom fields to assist troubleshooting.

Rollback Changes#

When an incident occurs and is confirmed to be caused by a change, directly trigger a callback to your deployment platform to initiate rollback process for faster incident recovery.

Update Status Page#

When an incident is confirmed to affect online services, trigger external status page updates to prompt
修改于 2024-11-18 03:24:22
上一页
Incident webhook
下一页
Terms of Service
Built with