aggregator

package
v2.0.0-alpha5+incompat... Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: AGPL-3.0 Imports: 10 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 {

	// state
	sync.RWMutex // Lock() to protect internal consistency of the service
	// contains filtered or unexported fields
}

Aggregator aggregates system.profile document

func New

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

New returns configured *Aggregator

func (*Aggregator) Add

func (a *Aggregator) Add(doc proto.SystemProfile) error

Add aggregates new system.profile document

func (*Aggregator) Flush

func (a *Aggregator) Flush()

func (*Aggregator) Start

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

func (*Aggregator) Status

func (a *Aggregator) Status() map[string]string

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