feat(web): switch charts between 1h, 3h, 12h, 24h and 7d with matching SLA

Bars use a resolution fitting the range and the latency line is placed
by time. The SLA is the share of time a monitor was not down, counted
from incidents and only since the monitor exists. Monitor pages list the
SLA from one hour to 90 days.

Closes #59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 09:29:34 +01:00
1 parent b210c8e5c0
commit 273a958d76
11 files changed
+1419 -810

No files matched your search

+6 -2
View File
@@ -194,18 +194,22 @@
"monitors.edit": "Edit monitor",
"monitors.expect_status": "Expected status (e.g. 2xx, 301)",
"monitors.follow_redirects": "Follow redirects",
"monitors.history": "History, last {{.Range}}",
"monitors.interval": "Interval (seconds)",
"monitors.interval_hint": "At least {{.Min}} seconds.",
"monitors.keyword": "Keyword in response",
"monitors.keyword_absent": "Fail if the keyword is present",
"monitors.last_24h": "last 24 hours",
"monitors.last_90d": "Last 90 days",
"monitors.latency_24h": "Latency, last 24 hours",
"monitors.latency": "Average latency",
"monitors.method": "Method",
"monitors.new": "New monitor",
"monitors.range": "Time range",
"monitors.range_note": "SLA and bars: last {{.Range}}",
"monitors.recent": "Recent checks",
"monitors.regions": "Regions",
"monitors.regions_hint": "Checked from a random checker in each selected region. Your own regions are listed first.",
"monitors.sla": "SLA",
"monitors.sla_table": "SLA by period",
"monitors.target": "Target",
"monitors.target_hint": "URL for HTTP, host:port for TCP and TLS, host name for DNS and ICMP.",
"monitors.timeout": "Timeout (ms)",