Documentation ¶
Index ¶
- type CloudWatchMetricStreams
- func (cms *CloudWatchMetricStreams) Description() string
- func (cms *CloudWatchMetricStreams) Gather(_ telegraf.Accumulator) error
- func (cms *CloudWatchMetricStreams) Init() error
- func (*CloudWatchMetricStreams) SampleConfig() string
- func (cms *CloudWatchMetricStreams) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (cms *CloudWatchMetricStreams) Start(acc telegraf.Accumulator) error
- func (cms *CloudWatchMetricStreams) Stop()
- type Data
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudWatchMetricStreams ¶
type CloudWatchMetricStreams struct { ServiceAddress string `toml:"service_address"` Paths []string `toml:"paths"` MaxBodySize config.Size `toml:"max_body_size"` ReadTimeout config.Duration `toml:"read_timeout"` WriteTimeout config.Duration `toml:"write_timeout"` AccessKey string `toml:"access_key"` APICompatability bool `toml:"api_compatability"` Log telegraf.Logger tlsint.ServerConfig // contains filtered or unexported fields }
func (*CloudWatchMetricStreams) Description ¶
func (cms *CloudWatchMetricStreams) Description() string
func (*CloudWatchMetricStreams) Gather ¶
func (cms *CloudWatchMetricStreams) Gather(_ telegraf.Accumulator) error
func (*CloudWatchMetricStreams) Init ¶
func (cms *CloudWatchMetricStreams) Init() error
func (*CloudWatchMetricStreams) SampleConfig ¶
func (*CloudWatchMetricStreams) SampleConfig() string
func (*CloudWatchMetricStreams) ServeHTTP ¶
func (cms *CloudWatchMetricStreams) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*CloudWatchMetricStreams) Start ¶
func (cms *CloudWatchMetricStreams) Start(acc telegraf.Accumulator) error
Start starts the http listener service.
func (*CloudWatchMetricStreams) Stop ¶
func (cms *CloudWatchMetricStreams) Stop()
Stop cleans up all resources
type Data ¶
type Data struct { MetricStreamName string `json:"metric_stream_name"` AccountID string `json:"account_id"` Region string `json:"region"` Namespace string `json:"namespace"` MetricName string `json:"metric_name"` Dimensions map[string]string `json:"dimensions"` Timestamp int64 `json:"timestamp"` Value map[string]float64 `json:"value"` Unit string `json:"unit"` }
Click to show internal directories.
Click to hide internal directories.