influxdb/telegraf/plugins/inputs/mem.go

27 lines
472 B
Go

package inputs
import (
"fmt"
)
// MemStats is based on telegraf MemStats.
type MemStats struct {
baseInput
}
// PluginName is based on telegraf plugin name.
func (m *MemStats) PluginName() string {
return "mem"
}
// TOML encodes to toml string
func (m *MemStats) TOML() string {
return fmt.Sprintf(`[[inputs.%s]]
`, m.PluginName())
}
// UnmarshalTOML decodes the parsed data to the object
func (m *MemStats) UnmarshalTOML(data interface{}) error {
return nil
}