MCPcopy
hub / github.com/thanos-io/thanos / TSDBStatisticsGetter

Interface TSDBStatisticsGetter

pkg/status/status.go:123–127  ·  view source on GitHub ↗

TSDBStatisticsGetter is an interface to retrieve TSDB statistics.

Source from the content-addressed store, hash-verified

121
122// TSDBStatisticsGetter is an interface to retrieve TSDB statistics.
123type TSDBStatisticsGetter interface {
124 // TSDBStatistics returns the TSDB statistics for the given tenant.
125 // When tenantID is empty, it returns statistics for all tenants.
126 TSDBStatistics(limit int, tenantID string) (map[string]tsdb.Stats, error)
127}
128
129type TSDBStatisticsGetterFunc func(int, string) (map[string]tsdb.Stats, error)
130

Callers

nothing calls this directly

Implementers 5

Proxypkg/status/proxy.go
GRPCClientpkg/status/status.go
Serverpkg/status/status.go
statusClientpkg/status/statuspb/rpc.pb.go
UnimplementedStatusServerpkg/status/statuspb/rpc.pb.go

Calls

no outgoing calls

Tested by

no test coverage detected