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-router.js | ||
| status-page-router.js | ||