Skip to content

v0.5.2

Choose a tag to compare

@zigazajc007 zigazajc007 released this 04 Mar 17:10
· 8 commits to main since this release

Real-Time Uptime Updates via WebSocket

Status page subscribers now receive live uptime-update events whenever monitor or group uptime values change.

When the background uptime updater recalculates uptime values (1h, 24h, 7d, 30d, 90d, 365d), it now compares against the previous values and broadcasts a WebSocket event to all subscribed status page clients if at least one value has changed. This applies to both monitors and groups.

New WebSocket Event:

{
  "action": "uptime-update",
  "data": {
    "slug": "status",
    "monitorId": "api-prod",
    "uptime1h": 99.5,
    "uptime24h": 98.2,
    "uptime7d": 99.1,
    "uptime30d": 99.8,
    "uptime90d": 99.9,
    "uptime365d": 99.95
  },
  "timestamp": "2025-01-15T10:30:00.000Z"
}

All six uptime fields are always included when the event fires. For groups, monitorId contains the group ID.