Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputCheck ¶
type OutputCheck struct { Metadata *OutputMetadata `json:"metadata"` Status int `json:"status"` Output string `json:"output"` Issued int64 `json:"issued"` OutputMetricHandlers []string `json:"output_metric_handlers"` }
type OutputEntity ¶
type OutputEntity struct {
Metadata *OutputMetadata `json:"metadata"`
}
type OutputEvent ¶
type OutputEvent struct { Entity *OutputEntity `json:"entity,omitempty"` Check *OutputCheck `json:"check"` Metrics *OutputMetrics `json:"metrics"` Timestamp int64 `json:"timestamp"` }
type OutputMetadata ¶
type OutputMetadata struct {
Name string `json:"name"`
}
type OutputMetric ¶
type OutputMetrics ¶
type OutputMetrics struct { Handlers []string `json:"handlers"` Metrics []*OutputMetric `json:"points"` }
type Sensu ¶
type Sensu struct { APIKey *string `toml:"api_key"` AgentAPIURL *string `toml:"agent_api_url"` BackendAPIURL *string `toml:"backend_api_url"` Entity *SensuEntity `toml:"entity"` Tags map[string]string `toml:"tags"` Metrics *SensuMetrics `toml:"metrics"` Check *SensuCheck `toml:"check"` Timeout config.Duration `toml:"timeout"` ContentEncoding string `toml:"content_encoding"` EndpointURL string OutEntity *OutputEntity Log telegraf.Logger `toml:"-"` tls.ClientConfig // contains filtered or unexported fields }
func (*Sensu) Description ¶
Description provides a description of the plugin
func (*Sensu) SampleConfig ¶
SampleConfig provides a sample configuration for the plugin
type SensuCheck ¶
type SensuCheck struct {
Name *string `toml:"name"`
}
type SensuEntity ¶
type SensuMetrics ¶
type SensuMetrics struct {
Handlers []string `toml:"handlers"`
}
Click to show internal directories.
Click to hide internal directories.