{{$totalPages := len .Reports}} {{$globalPage := 0}} {{range $index, $report := .Reports}} {{$globalPage = add $globalPage 1}}
{{$.Title}}
{{$.GeneratedDate}}
Metrics
Name:
{{.Metric.Name}}
{{if .Metric.ClientID}}
Device ID:
{{.Metric.ClientID}}
{{end}}
Channel ID:
{{.Metric.ChannelID}}
Total Records: {{len .Messages}}
{{range .Messages}} {{end}}
Time Value Unit Protocol Subtopic
{{formatTime .Time}} {{formatValue .}} {{.Unit}} {{.Protocol}} {{.Subtopic}}
{{end}}