time_series_index

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rows

type Rows struct {
	Index string
	Rows  []map[string]interface{}
}

type TimeSeriesIndex

type TimeSeriesIndex struct {
	// contains filtered or unexported fields
}

func New

func New(collectorId, index, timeField, timeFormat string, keep int, logger *loggerpkg.Logger) (
	*TimeSeriesIndex, error,
)

func (TimeSeriesIndex) Get

func (tsi TimeSeriesIndex) Get(t time.Time) string

func (*TimeSeriesIndex) Group

func (tsi *TimeSeriesIndex) Group(rows []map[string]interface{}) (result []Rows)

func (TimeSeriesIndex) Of

func (tsi TimeSeriesIndex) Of(row map[string]interface{}) string

func (TimeSeriesIndex) Prune

func (tsi TimeSeriesIndex) Prune(client *elastic.ES)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL