sinks

package
v0.0.0-...-d41793b Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTruncatingBuffer

func RunTruncatingBuffer(inputChan <-chan *events.Envelope, bufferSize uint, logger *gosteno.Logger, dropsondeOrigin string) *truncatingbuffer.TruncatingBuffer

Types

type DropCounter

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

func NewDropCounter

func NewDropCounter(appID string, drainURL string, metricUpdateChannel chan<- int64) DropCounter

func (*DropCounter) GetInstrumentationMetric

func (dc *DropCounter) GetInstrumentationMetric() Metric

func (*DropCounter) UpdateDroppedMessageCount

func (dc *DropCounter) UpdateDroppedMessageCount(messageCount int64)

type Metric

type Metric struct {
	Name  string
	Value int64
	Tags  map[string]interface{}
}

type Sink

type Sink interface {
	StreamId() string
	Run(<-chan *events.Envelope)
	Identifier() string
	ShouldReceiveErrors() bool
	GetInstrumentationMetric() Metric
	UpdateDroppedMessageCount(int64)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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