happy status

bash
happy status

Output:

text
Happy Uptime — Acme Corp─────────────────────────────────────────Monitors: 24 (23 up, 0 degraded, 1 down, 0 paused)Incidents: 1 active, 0 needs ackUptime 30d: 99.94%DOWN: ⛔ api.acme.com — 7m ago — 503 Service Unavailable

Add --json for machine output:

bash
happy status --json | jq '.monitors.down'

Useful in shell prompts:

bash
# .zshrc fragmentfunction precmd() { HU=$(happy status --json 2>/dev/null | jq -r '.monitors.down // 0') if [[ "$HU" -gt 0 ]]; then PROMPT="🔴 $HU $PROMPT" fi}
Ask a question... ⌘I