Documentation
¶
Index ¶
- func NewReader(meta *reader.Meta, conf conf.MapConf) (c reader.Reader, err error)
- func SelectMetrics(c *CloudWatch) ([]*cloudwatch.Metric, error)
- type CloudWatch
- func (c *CloudWatch) Close() error
- func (c *CloudWatch) Gather() error
- func (c *CloudWatch) Name() string
- func (c *CloudWatch) ReadLine() (line string, err error)
- func (c *CloudWatch) SetMode(mode string, v interface{}) error
- func (c *CloudWatch) Source() string
- func (c *CloudWatch) Start() error
- func (c *CloudWatch) SyncMeta()
- type CredentialConfig
- type Dimension
- type Metric
- type MetricCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectMetrics ¶
func SelectMetrics(c *CloudWatch) ([]*cloudwatch.Metric, error)
Types ¶
type CloudWatch ¶
type CloudWatch struct {
Region string
CollectInterval time.Duration
Period time.Duration
Delay time.Duration
Namespace string
Metrics []*Metric
CacheTTL time.Duration
RateLimit int64
StopChan chan struct{}
DataChan chan models.Data
// contains filtered or unexported fields
}
func (*CloudWatch) Close ¶
func (c *CloudWatch) Close() error
func (*CloudWatch) Gather ¶
func (c *CloudWatch) Gather() error
func (*CloudWatch) Name ¶
func (c *CloudWatch) Name() string
func (*CloudWatch) ReadLine ¶
func (c *CloudWatch) ReadLine() (line string, err error)
func (*CloudWatch) SetMode ¶
func (c *CloudWatch) SetMode(mode string, v interface{}) error
func (*CloudWatch) Source ¶
func (c *CloudWatch) Source() string
func (*CloudWatch) Start ¶
func (c *CloudWatch) Start() error
func (*CloudWatch) SyncMeta ¶
func (c *CloudWatch) SyncMeta()
type CredentialConfig ¶
type CredentialConfig struct {
Region string
AccessKey string
SecretKey string
RoleARN string
Profile string
Filename string
Token string
}
func (*CredentialConfig) Credentials ¶
func (c *CredentialConfig) Credentials() (client.ConfigProvider, error)
type MetricCache ¶
Click to show internal directories.
Click to hide internal directories.