plugin

package
v0.0.0-...-cd47023 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InitConfig InitConfig `yaml:"init_config"`
	Instances  []Instance `yaml:"instances"`
}

Config XXX

func LoadConfig

func LoadConfig(filename string) (*Config, error)

LoadConfig parses the YAML file into a Config.

type InitConfig

type InitConfig map[string]interface{}

InitConfig XXX

type Instance

type Instance map[string]interface{}

Instance XXX

type Plugin

type Plugin interface {
	// Check takes in an aggregator and adds the metrics that the Plugin
	// gathers. This is called every "interval"
	Check(agg metric.Aggregator) error
}

Plugin ..

type RunningPlugin

type RunningPlugin struct {
	Name    string
	Plugins []Plugin
}

RunningPlugin XXX

Jump to

Keyboard shortcuts

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