plugin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: BSD-3-Clause Imports: 3 Imported by: 13

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