telegraf/filter.go

16 lines
332 B
Go
Raw Normal View History

2016-06-11 07:23:41 +00:00
package telegraf
type Filter interface {
// SampleConfig returns the default configuration of the Input
SampleConfig() string
// Description returns a one-sentence description on the Input
Description() string
//create pipe for filter
Pipe(in chan Metric) chan Metric
// start the filter
Start(shutdown chan struct{})
}