github.com/influxdata/influxdb/v2@v2.7.6/telegraf/plugins/inputs/mem.go (about) 1 package inputs 2 3 import ( 4 "fmt" 5 ) 6 7 // MemStats is based on telegraf MemStats. 8 type MemStats struct { 9 baseInput 10 } 11 12 // PluginName is based on telegraf plugin name. 13 func (m *MemStats) PluginName() string { 14 return "mem" 15 } 16 17 // TOML encodes to toml string 18 func (m *MemStats) TOML() string { 19 return fmt.Sprintf(`[[inputs.%s]] 20 # no configuration 21 `, m.PluginName()) 22 } 23 24 // UnmarshalTOML decodes the parsed data to the object 25 func (m *MemStats) UnmarshalTOML(data interface{}) error { 26 return nil 27 }