{{ template "widget-base.html" . }} {{ define "widget-content" }}
{{ .Stats.TotalQueries | formatNumber }}
QUERIES
{{ .Stats.BlockedPercent }}%
BLOCKED
{{ if gt .Stats.ResponseTime 0 }}
{{ .Stats.ResponseTime | formatNumber }}ms
LATENCY
{{ else }}
{{ .Stats.DomainsBlocked | formatViewerCount }}
DOMAINS
{{ end }}
{{ range $i, $column := .Stats.Series }}
{{ $column.Queries | formatNumber }}
QUERIES
{{ $column.PercentBlocked }}%
BLOCKED
{{ if gt $column.PercentTotal 0}}
{{ if ne $column.Queries $column.Blocked }}
{{ end }} {{ if or (gt $column.Blocked 0) (and (lt $column.PercentTotal 15) (lt $column.PercentBlocked 10)) }}
{{ end }}
{{ end }}
{{ index $.TimeLabels $i }}
{{ end }}
{{ if .Stats.TopBlockedDomains }}
Top blocked domains
{{ end }}
{{ end }}