Fixes #6025 When a monitor transitions DOWN → PENDING → UP, the UP webhook notification was not being sent because PENDING → UP transitions were marked as 'not important' for notifications. This fix: - Adds getLastNonPendingStatus() helper to check if monitor was DOWN before PENDING - Modifies isImportantForNotification() to check history when PENDING → UP transition occurs - If monitor was DOWN before PENDING, PENDING → UP is now treated as important for notifications - Maintains backward compatibility: UP → PENDING → UP still doesn't trigger notifications Tested with Docker container monitor and HTTP monitor scenarios. |
||
|---|---|---|
| .. | ||
| api_key.js | ||
| docker_host.js | ||
| domain_expiry.js | ||
| group.js | ||
| heartbeat.js | ||
| incident.js | ||
| maintenance.js | ||
| monitor.js | ||
| proxy.js | ||
| remote_browser.js | ||
| status_page.js | ||
| tag.js | ||
| user.js | ||