puller

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentUnhealthyCnt = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PullAggregator

type PullAggregator struct {
	Storage   v1.Storage
	CBStore   cbstore.CBStore
	AgentList map[string]common.AgentInfo
}

func NewPullAggregator

func NewPullAggregator() (*PullAggregator, error)

func (*PullAggregator) AggregateMetric

func (pa *PullAggregator) AggregateMetric(agentList map[string]common.AgentInfo, metricArr []types.Metric, aggregateType string)

func (*PullAggregator) CalculateMetric

func (pa *PullAggregator) CalculateMetric() (map[string]interface{}, error)

func (*PullAggregator) StartAggregate

func (pa *PullAggregator) StartAggregate() error

type PullCaller

type PullCaller struct {
	AgentList map[string]agentmetadata.AgentInfo
}

func NewPullCaller

func NewPullCaller(agentList map[string]agentmetadata.AgentInfo) (PullCaller, error)

func (PullCaller) StartPull

func (pc PullCaller) StartPull()

Jump to

Keyboard shortcuts

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