aggregator

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInterval = time.Duration(time.Minute)

Functions

This section is empty.

Types

type Aggregator

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

Aggregator aggregates system.profile document

func New

func New(timeStart time.Time, agentID string, logger *logrus.Entry) *Aggregator

New returns configured *Aggregator

func (*Aggregator) Add

Add aggregates new system.profile document

func (*Aggregator) Flush

func (a *Aggregator) Flush(ctx context.Context)

func (*Aggregator) Start

func (a *Aggregator) Start() <-chan *report.Report

func (*Aggregator) Stop

func (a *Aggregator) Stop()

func (*Aggregator) TimeEnd

func (a *Aggregator) TimeEnd() time.Time

TimeEnd returns end time for current interval

func (*Aggregator) TimeStart

func (a *Aggregator) TimeStart() time.Time

TimeStart returns start time for current interval

Jump to

Keyboard shortcuts

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