Versions in this module Expand all Collapse all v1 v1.5.5 May 18, 2020 Changes in this version + func NewReader(meta *reader.Meta, conf conf.MapConf) (reader.Reader, error) + func SelectMetrics(c *Reader) ([]*cloudwatch.Metric, error) + type CredentialConfig struct + AccessKey string + Filename string + Profile string + Region string + RoleARN string + SecretKey string + Token string + func (c *CredentialConfig) Credentials() (client.ConfigProvider, error) + type Dimension struct + Name string + Value string + type Metric struct + Dimensions []*Dimension + MetricNames []string + type MetricCache struct + Fetched time.Time + Metrics []*cloudwatch.Metric + TTL time.Duration + func (c *MetricCache) IsValid() bool + type Reader struct + CacheTTL time.Duration + CollectInterval time.Duration + Delay time.Duration + Metrics []*Metric + Namespace string + Period time.Duration + RateLimit int64 + Region string + func (*Reader) SyncMeta() + func (r *Reader) Close() error + func (r *Reader) Gather() error + func (r *Reader) Name() string + func (r *Reader) ReadData() (Data, int64, error) + func (r *Reader) ReadLine() (string, error) + func (r *Reader) SetMode(mode string, v interface{}) error + func (r *Reader) Source() string + func (r *Reader) Start() error