metric

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigTypeBool   = "bool"
	ConfigTypeArray  = "array"
	ConsifTypeString = "string"

	OptionString     = "options"
	AttributesString = "attributes"
	Timestamp        = "timestamp"
)

Variables

View Source
var Collectors = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

func GetMetricOptions added in v1.3.6

func GetMetricOptions() map[string][]utils.Option

func GetMetricTypeKey added in v1.3.6

func GetMetricTypeKey() map[string][]utils.KeyValue

func GetMetricUsages added in v1.3.6

func GetMetricUsages() []utils.Option

Types

type Collector

type Collector interface {
	Name() string
	Usages() string
	Config() map[string]interface{}
	Collect() ([]map[string]interface{}, error)
}

Collector 收集metric�s的接口

type Creator

type Creator func() Collector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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