You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package telegraf
-
- type Input interface {
- PluginDescriber
-
- // Gather takes in an accumulator and adds the metrics that the Input
- // gathers. This is called every agent.interval
- Gather(Accumulator) error
- }
-
- type ServiceInput interface {
- Input
-
- // Start the ServiceInput. The Accumulator may be retained and used until
- // Stop returns.
- Start(Accumulator) error
-
- // Stop stops the services and closes any necessary channels and connections.
- // Metrics should not be written out to the accumulator once stop returns, so
- // Stop() should stop reading and wait for any in-flight metrics to write out
- // to the accumulator before returning.
- Stop()
- }
|