Documentation
¶
Index ¶
- Constants
- Variables
- type Column
- type Store
- func (s *Store) Delete(name string) error
- func (s *Store) Get(start, end time.Time, interval int64, names map[string][][]int64) (result map[string]any)
- func (s *Store) List(prefix string) (names []string)
- func (s *Store) Metric(name string) *metric
- func (s *Store) Rename(from, to string) error
- func (s *Store) Trim(name string, start, end time.Time) error
Constants ¶
View Source
const ( ModeGauge = 0x47415547 ModeCounter = 0x434f554e ModeIncrement = 0x494e4352 ModeText = 0x54455854 ModeBinary = 0x44415441 AggregateMinimum = 1 AggregateMaximum = 2 AggregateSum = 3 AggregateAverage = 4 AggregateFirst = 5 AggregateLast = 6 AggregateHistogram = 7 AggregatePercentile = 8 AggregateRaw = 9 MaxColumns = 128 )
Variables ¶
View Source
var ( ModeNames = map[int64]string{ ModeGauge: "gauge", ModeCounter: "counter", ModeIncrement: "increment", ModeText: "text", ModeBinary: "binary", } ModeIndexes = map[string]int64{ "gauge": ModeGauge, "counter": ModeCounter, "increment": ModeIncrement, "text": ModeText, "binary": ModeBinary, } AggregateNames = map[int64]string{ AggregateMinimum: "minimum", AggregateMaximum: "maximum", AggregateSum: "sum", AggregateAverage: "average", AggregateFirst: "first", AggregateLast: "last", AggregateHistogram: "histogram", AggregatePercentile: "percentile", AggregateRaw: "raw", } AggregateIndexes = map[string]int64{ "min": AggregateMinimum, "minimum": AggregateMinimum, "max": AggregateMaximum, "maximum": AggregateMaximum, "sum": AggregateSum, "avg": AggregateAverage, "average": AggregateAverage, "first": AggregateFirst, "last": AggregateLast, "hist": AggregateHistogram, "histogram": AggregateHistogram, "pct": AggregatePercentile, "percentile": AggregatePercentile, "raw": AggregateRaw, } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.