Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
23
input.go
Normal file
23
input.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue