tags

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Delimiter defines character separating category from value in a tag e.g. location:london
	Delimiter = ":"
	// Separator defines character separating tags in a list e.g. os:centos,location:sfo
	Separator = ","
)

Variables

This section is empty.

Functions

func PrepStreamTags

func PrepStreamTags(tagList string) (string, error)

PrepStreamTags accepts a comma delimited list of key:value pairs and returns a stream tag formatted spec or an error if there are issues with the format of the supplied tag list.

Types

type JSONMetric

type JSONMetric struct {
	Tags  []string    `json:"_tags"`
	Type  string      `json:"_type"`
	Value interface{} `json:"_value"`
}

JSONMetric defines an individual metric received in JSON

type JSONMetrics

type JSONMetrics map[string]JSONMetric

JSONMetrics holds list of JSON metrics

Jump to

Keyboard shortcuts

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