Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeDatasource ValueType = "Datasource" TypeDashboard ValueType = "Dashboard" ActionCreate Action = "Create" ActionFinish Action = "Finish" )
Possible values for the ValueType enum.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accumulator ¶
type Accumulator interface { AddOutput(dir string, valueType ValueType, action Action, title string, content []byte) AddError(err error) }
Accumulator is an interface for "accumulating" metrics from plugin(s). The metrics are sent down a channel shared between all plugins.
type Input ¶
type Input interface { // SampleConfig returns the default configuration of the Input SampleConfig() string // Description returns a one-sentence description on the Input Description() string // Process processes the input every "interval" Process(Accumulator) error }
type Output ¶
type Output interface { // Connect to the Output Connect() error // Description returns a one-sentence description on the Output Description() string // SampleConfig returns the default configuration of the Output SampleConfig() string // Write takes in group of points to be written to the Output Write(metric Metric) error }
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Provides an io.Writer that filters log messages based on a log level.
|
Provides an io.Writer that filters log messages based on a log level. |
plugins
|
|
Click to show internal directories.
Click to hide internal directories.