accumulators

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package accumulators ... count = Total = last sample value gauge = Total = last sample value counter = Total = sum of sample values

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accumulator

type Accumulator struct {
	Entities      *entities.Map
	EnvelopeTypes []string
	// contains filtered or unexported fields
}

Accumulator Universal handler for Firehose Envelopes

func NewAccumulator

func NewAccumulator(t ...string) Accumulator

NewAccumulator is generic and requires .Interface to be set func NewAccumulator(t ...events.Envelope_EventType) Accumulator {

func (*Accumulator) Config

func (a *Accumulator) Config() *config.Config

Config properties ...

func (Accumulator) Drain

func (a Accumulator) Drain() []*entities.Entity

Drain ...

func (*Accumulator) GetEntity

GetEntity ...

func (Accumulator) Streams

func (a Accumulator) Streams() []string

Streams ...

type EnvelopeTypes

type EnvelopeTypes []string

EnvelopeTypes ..

type Interface

type Interface interface {
	New() Interface
	Update(*loggregator_v2.Envelope)
	Streams() []string
	HarvestMetrics(*entities.Entity, *metrics.Metric)
	Drain() []*entities.Entity
}

Interface ensures Firehose Envelope consumption

Jump to

Keyboard shortcuts

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