{{define "dashboard"}}{{template "header" .}}
API Keys
{{.Keys}}
Requests
{{.Requests}}
Chars Proxied
{{.Chars}}

Public {{.Public}} upstream engine {{.Upstream}} {{if .EngineUp}}engine up{{else}}engine down{{end}}

Requests

24h 7d 30d
{{range .Series}}
{{end}}
{{(index .Series 0).Start.Format "01-02 15:04"}} now

Per-key usage

{{range .KeyList}} {{else}} {{end}}
IDLabelStatusRequestsCharsLast used
{{.ID}} {{.Label}} {{if .Disabled}}disabled{{else}}active{{end}} {{.Requests}} {{.Chars}} {{if .LastUsed.IsZero}}—{{else}}{{.LastUsed.Format "2006-01-02 15:04"}}{{end}}
No keys yet — create one under API Keys.

Recent activity

{{range .Events}} {{else}} {{end}}
Time (UTC)KeyEndpointCharsStatus
{{.Time.Format "01-02 15:04:05"}} {{.KeyLabel}} #{{.KeyID}} {{.Endpoint}} {{.Chars}} {{if ge .Status 400}}{{.Status}}{{else}}{{.Status}}{{end}}
No requests recorded yet.
{{template "footer" .}}{{end}}