Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TmcEvents ¶
type TmcEvents struct { TmcHostname string `toml:"tmc_hostname"` CspHostname string `toml:"csp_hostname"` CspToken string `toml:"csp_token"` Events []string `toml:"events"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
TmcEvents defines field needed
func (*TmcEvents) Description ¶
Description returns plugin desription
func (*TmcEvents) Gather ¶
func (r *TmcEvents) Gather(a telegraf.Accumulator) error
Gather connects to the TMC api to get the stream of events, it will stay open for a period of time and close when no events are present, the telegraf plugin will re-run this command constantly
func (*TmcEvents) SampleConfig ¶
SampleConfig returns the sample plugin configuration
Click to show internal directories.
Click to hide internal directories.