types

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: 3 Imported by: 0

Documentation

Overview

Package types exists to avoid circular references between things that need to reference common types

Index

Constants

View Source
const UtilizationMetricPluginName = "signalfx-metadata"

UtilizationMetricPluginName is the name used for the plugin dimension on utilization metrics

Variables

This section is empty.

Functions

This section is empty.

Types

type DimProperties

type DimProperties struct {
	Dimension
	// Properties to be set on the dimension
	Properties map[string]string
	// Tags to apply to the dimension value
	Tags map[string]bool
}

DimProperties represents a set of properties associated with a given dimension value

func (*DimProperties) Copy

func (dp *DimProperties) Copy() *DimProperties

Copy creates a copy of the the given dimProps object

type Dimension

type Dimension struct {
	// Name of the dimension
	Name string
	// Value of the dimension
	Value string
}

Dimension represents a specific dimension value

type MonitorID

type MonitorID string

MonitorID is a unique identifier for a specific instance of a monitor

type Output

type Output interface {
	SendDatapoint(*datapoint.Datapoint)
	SendEvent(*event.Event)
	SendSpan(*trace.Span)
	SendDimensionProps(*DimProperties)
	AddExtraDimension(key, value string)
	RemoveExtraDimension(key string)
}

Output is the interface that monitors should use to send data to the agent core. It handles adding the proper dimensions and metadata to datapoints so that monitors don't have to worry about it themselves.

Jump to

Keyboard shortcuts

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