custom

package
v0.0.0-...-54d14c8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Commands []util.Command `json:"commands"`
}

Config - XXX

type Custom

type Custom struct {
	Config Config
}

Custom - XXX

func (*Custom) Collect

func (c *Custom) Collect() (interface{}, error)

Collect - XXX

func (*Custom) Description

func (c *Custom) Description() string

Description - XXX

func (*Custom) SampleConfig

func (c *Custom) SampleConfig() string

SampleConfig - XXX

func (*Custom) SetConfigDefaults

func (c *Custom) SetConfigDefaults() error

SetConfigDefaults - XXX

func (*Custom) Start

func (c *Custom) Start() error

Start - XXX

func (*Custom) Stop

func (c *Custom) Stop()

Stop - XXX

type Metric

type Metric struct {
	Name  string  `json:"name"`
	Value float64 `json:"value"`
	Type  string  `json:"type"`
}

Metric - XXX

func ParseLine

func ParseLine(s string) (Metric, error)

ParseLine - XXX

type PerformanceStruct

type PerformanceStruct struct {
	Gauges   map[string]interface{} `json:"gauges,omitempty"`
	Counters map[string]interface{} `json:"counters,omitempty"`
}

PerformanceStruct - XXX

func (PerformanceStruct) String

func (p PerformanceStruct) String() string

type PerformanceStructBlock

type PerformanceStructBlock map[string]PerformanceStruct

PerformanceStructBlock - XXX

func (PerformanceStructBlock) String

func (p PerformanceStructBlock) String() string

Jump to

Keyboard shortcuts

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