{{ define "daily" }}
{{ .HistoryDaily.Uptime }}% uptime
{{ range .HistoryDaily.History }} {{ if eq . "SUCCESS" }}
{{ else if eq . "FAILURE" }}
{{ else }}
{{ end }} {{ end }}
90 days ago
Today
{{ end }} {{ define "hourly" }}
{{ .HistoryHourly.Uptime }}% uptime
{{ range .HistoryHourly.History }} {{ if eq . "SUCCESS" }}
{{ else if eq . "FAILURE" }}
{{ else }}
{{ end }} {{ end }}
48 hours ago
Now
{{ end }} {{ define "main" }}
{{ if eq .MonitorsLength 0 }}

There are no monitors yet.

Create a monitor to monitor your services and get notified when they are down.

{{ else }} {{ if or (eq .Status "UNKNOWN") (eq .Status "SUCCESS") }}

All services are online

Last updated on Feb 10 at 10:55am UTC

{{ else }}

Degraded performance

Last updated on Feb 10 at 10:55am UTC

{{ end }}

Monitors

{{ range .HealthChecks }}
{{ if eq .Status "SUCCESS" }} {{ else if eq .Status "FAILURE" }} {{ else }} {{ end }}

{{ .Name }}

{{ if eq $.TimeRange "90days" }} {{ template "daily" . }} {{ else }} {{ template "hourly" . }} {{ end }}
{{ end }}
{{ end }}
{{ end }}