{{define "status"}} {{.Title}}

{{.Title}}

Probes:

{{range $name, $probeInfo := .Probes}} {{end}}
Name Probe Class & Labels Interval Last Finished Last Started Status Latency Last Error
{{$name}} {{range $text, $url := $probeInfo.Links}}
{{if not $probeInfo.Continuous}} {{end}} {{end}}
{{$probeInfo.Class}}
{{range $label, $value := $probeInfo.Labels}} {{$label}}={{$value}}
{{end}}
{{if $probeInfo.Continuous}} Continuous {{else}} {{$probeInfo.Interval}} {{end}} {{if $probeInfo.TimeSinceLastEnd}} {{$probeInfo.TimeSinceLastEnd.String}} ago
{{$probeInfo.End.Format "2006-01-02T15:04:05Z07:00"}} {{else}} Never {{end}}
{{if $probeInfo.TimeSinceLastStart}} {{$probeInfo.TimeSinceLastStart.String}} ago
{{$probeInfo.Start.Format "2006-01-02T15:04:05Z07:00"}} {{else}} Never {{end}}
{{if $probeInfo.Error}} {{$probeInfo.Status}} {{else}} {{$probeInfo.Status}} {{end}}
{{if not $probeInfo.Continuous}}
Recent: {{$probeInfo.RecentResults}}
Mean: {{$probeInfo.RecentSuccessRatio}}
{{end}}
{{if $probeInfo.Continuous}} n/a {{else}} {{$probeInfo.Latency.String}}
Recent: {{$probeInfo.RecentLatencies}}
Median: {{$probeInfo.RecentMedianLatency}}
{{end}}
{{$probeInfo.Error}}
{{end}}