3 Star 0 Fork 0

mirrors_vmware-archive/telegraf_oratos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
input.go 609 Bytes
一键复制 编辑 原始数据 按行查看 历史
package telegraf
type Input interface {
// SampleConfig returns the default configuration of the Input
SampleConfig() string
// Description returns a one-sentence description on the Input
Description() string
// Gather takes in an accumulator and adds the metrics that the Input
// gathers. This is called every "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
Stop()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_vmware-archive/telegraf_oratos.git
git@gitee.com:mirrors_vmware-archive/telegraf_oratos.git
mirrors_vmware-archive
telegraf_oratos
telegraf_oratos
master

搜索帮助