Server Stats

Base Types

{{ $biMap := .Indices.Base }} {{ if eq .Indices.Base.BaseRead.Index .Indices.Base.BaseWrite.Index }} {{ $biMap = (Map "BaseRead" .Indices.Base.BaseRead) }} {{ end }} {{ $btMap := (Map "Stats" .Stats.BaseTypes "Name" "Base Type" "Indices" $biMap) }} {{ template "type_stats_table" $btMap }}

User Object Types

{{ $oiMap := .Indices.Object }} {{ if eq .Indices.Object.ObjectRead.Index .Indices.Object.ObjectWrite.Index }} {{ $oiMap = (Map "ObjectRead" .Indices.Object.ObjectRead) }} {{ end }} {{ $uoMap := (Map "Stats" .Stats.ObjectTypes "Name" "Object Type" "Indices" $oiMap) }} {{ template "type_stats_table" $uoMap }}

Indices

{{ template "indices_stats_table" .Stats.IndicesStats }}

Files

{{ template "file_stats_table" .Stats.FileStats }}

Misc

Total not indexed: {{ .Stats.TotalNotIndexed }}

Pending files: {{ .Stats.PendingFilesCount }}

{{ define "type_stats_table" }} {{ range $idx, $os := .Stats }} {{ end }}
{{ .Name }} Total Indexed Not Indexed
{{ $os.TypeName }} {{ $os.TotalCount }} {{ $os.IndexedCount }} {{ $os.NotIndexedCount }}
{{ end }} {{ define "indices_stats_table" }} {{ range $idx, $data := . }} {{ end }}
Name Index Size
{{ $data.Name }} {{ $data.Index }} {{ $data.Store }}
{{ end }} {{ define "file_stats_table" }} {{ range $idx, $data := . }} {{ end }}
Status Count
{{ $data.Status }} {{ $data.Count }}
{{ end }}