influxdb/telegraf/plugins/inputs/swap.go

27 lines
480 B
Go
Raw Normal View History

2018-10-05 21:43:01 +00:00
package inputs
2018-10-16 00:38:36 +00:00
import (
"fmt"
)
2018-10-05 21:43:01 +00:00
// SwapStats is based on telegraf SwapStats.
2018-10-16 00:38:36 +00:00
type SwapStats struct {
baseInput
}
// PluginName is based on telegraf plugin name.
func (s *SwapStats) PluginName() string {
return "swap"
}
2018-10-05 21:43:01 +00:00
2018-10-16 00:38:36 +00:00
// TOML encodes to toml string.
func (s *SwapStats) TOML() string {
return fmt.Sprintf(`[[inputs.%s]]
`, s.PluginName())
2018-10-05 21:43:01 +00:00
}
2018-10-17 19:51:35 +00:00
// UnmarshalTOML decodes the parsed data to the object
func (s *SwapStats) UnmarshalTOML(data interface{}) error {
return nil
}