types

package
v3.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

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

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)
	SendDimensionProps(*DimProperties)
}

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