In Flashduty On-call
Get the push URL in either of the following ways.
Use a dedicated integration
- In the Flashduty console, go to Channels and open a channel
- Go to Settings → Integration data → Dedicated integrations and click Add an integration
- Select Postman and click Save
- Open the generated integration card and copy the push URL
Use a shared integration
- In the Flashduty console, go to Integration Center → Alert Events
- Select Postman and enter an integration name
- Configure the default route and choose a channel; you can add more rules under Routes after the integration is created
- Click Save and copy the generated push URL
In Postman
1
Add the webhook integration
- Sign in to Postman and create a Monitor for the collection you want to watch (a workspace’s Monitors panel → Create). Postman’s Free plan offers hourly schedules at the shortest
- Open Integrations, select Custom Webhooks, open the Connections tab, and click Add integration next to Post monitoring results
- Enter a Nickname, select the workspace that contains the Monitor, then select the Monitor whose results you want to send
- Paste the full Flashduty push URL as the webhook URL; it must include
integration_key - Choose when to notify:
- Notify for all completed monitor runs (choose this one): every run is sent. A failing run triggers the alert and a passing run recovers it
- Notify for 3 failures and then first success: Postman describes this only by the option name and does not say which runs are sent, so a passing run may not be delivered when you need it, the alert may never recover, and it triggers later
2
Verify
- Make a test in the Monitor fail (for example, change an assertion), then run the Monitor from its page (Run Now) or wait for the next scheduled run
- Confirm that Flashduty shows an active alert
- Revert the assertion, run the Monitor again, and confirm the alert recovers
Alert Key
Flashduty uses
monitor_uid (the Monitor’s unique ID) as the Alert Key, so failure and recovery deliveries for the same Monitor share one key. Changing the Monitor name, test counts or latency does not change it. A request without monitor_uid is rejected.
Status and severity
The Postman payload has no status field, so Flashduty reads the run result from the counts in
metrics:
A request without the
metrics object, or with errorCount or failedTestCount missing or not a non-negative integer, is rejected and is never treated as a passing run. A passing run for a Monitor with no active alert creates no new alert.
Labels
The user who triggered the run (
user_id, user_name) is not written to labels.
Troubleshooting
- Flashduty returns an invalid parameter error: check that the URL is complete and includes
integration_key - The alert does not recover: confirm that the Monitor later has a run with every test passing and no request errors. make sure the notification mode is Notify for all completed monitor runs
- No deliveries arrive: confirm the webhook integration points at the right workspace and Monitor; each Monitor needs its own integration