25 lines
452 B
Go
25 lines
452 B
Go
package internal_models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/influxdata/telegraf"
|
|
)
|
|
|
|
type RunningInput struct {
|
|
Name string
|
|
Input telegraf.Input
|
|
Config *InputConfig
|
|
}
|
|
|
|
// InputConfig containing a name, interval, and filter
|
|
type InputConfig struct {
|
|
Name string
|
|
NameOverride string
|
|
MeasurementPrefix string
|
|
MeasurementSuffix string
|
|
Tags map[string]string
|
|
Filter Filter
|
|
Interval time.Duration
|
|
}
|