properties

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimensionPropertyClient

type DimensionPropertyClient struct {
	sync.RWMutex

	Token  string
	APIURL *url.URL

	PropertyFilterSet *propfilters.FilterSet

	DimensionsCurrentlyDelayed int64
	TotalDimensionsDropped     int64
	// The number of dimension updates that happened to the same dimension
	// within sendDelay.
	TotalFlappyUpdates int64
	// contains filtered or unexported fields
}

DimensionPropertyClient sends updates to dimensions to the SignalFx API

func NewDimensionPropertyClient

func NewDimensionPropertyClient(ctx context.Context, conf *config.WriterConfig) (*DimensionPropertyClient, error)

NewDimensionPropertyClient returns a new client

func (*DimensionPropertyClient) AcceptDimProp

func (dpc *DimensionPropertyClient) AcceptDimProp(dimProps *types.DimProperties) error

AcceptDimProp to be sent to the API. This will return fairly quickly and won't block. If the buffer is full, the dim update will be dropped.

func (*DimensionPropertyClient) InternalMetrics

func (dpc *DimensionPropertyClient) InternalMetrics() []*datapoint.Datapoint

InternalMetrics returns datapoints that describe the current state of the dimension update client

func (*DimensionPropertyClient) Start

func (dpc *DimensionPropertyClient) Start()

Start the client's processing queue

Jump to

Keyboard shortcuts

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