aggregator

package
v0.0.0-...-5e29bb2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

Aggregator aggregates agent metrics and uploads them to the cloud.

func NewAggregator

func NewAggregator(logger *zap.Logger, conf *configtypes.DaemonConfig, client pbcloud.GpuNinjaClient) *Aggregator

func (*Aggregator) Add

func (a *Aggregator) Add(req *pbagent.SendRequest)

func (*Aggregator) Aggregate

func (a *Aggregator) Aggregate() *pbcloud.SendRequest

Aggregate is public for testing purposes only.

func (*Aggregator) StartWithContext

func (a *Aggregator) StartWithContext(ctx context.Context) error

Jump to

Keyboard shortcuts

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