In Flashduty
You can get the integration push URL in either of the following ways.Use a dedicated integration
Choose this option if all alerts go to one channel. It’s the simpler setup.View dedicated integration setup steps
View dedicated integration setup steps
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add an integration
- Select Logease integration and click Save to generate a card
- Open the generated integration card and copy the Push URL
Use a shared integration
Choose this option if you need to route alerts to different channels based on the alert payload.In Logease
Logease alerts can be delivered through email, syslog, alert forwarding, or custom alarm plugins. The JSON structure pushed by alert forwarding is a fixed Logease format that does not match the event format required by Flashduty. Therefore, use a custom alarm plugin (a Python script) to convert alerts into the standard format before pushing them to Flashduty.Step 1: Write the alarm plugin scriptCreate a Python file (for example, Step 2: Upload the pluginGo to the Logease Monitoring page and upload the script under Others → Alarm Plugins.Step 3: Reference the plugin in monitoring itemsEdit the monitoring items that need to be connected to Flashduty, select the uploaded plugin under Add Alarm Method, and save. Logease also supports Manager plugins (for the platform’s own monitoring) and Soar plugins (for playbooks); they are written in the same way as the example above and can be extended as needed.
FlashdutyWebhook.py) with the following content, and replace push_url at the top with your Flashduty integration push URL:The events pushed by the plugin must follow the Flashduty standard alert event format:
event_status is required (one of Critical, Warning, Info, Ok), title_rule is the alert title, alert_key is used to update or automatically recover alerts, and labels carries alert labels. For the full field reference, see Standard Alert Event.Severity mapping
The mapping from Logease alert levels to Flashduty severities is defined by
LEVEL_MAP in the plugin script. The example above uses the following mapping, which you can adjust as needed: