cloudwatch

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(meta *reader.Meta, conf conf.MapConf) (c reader.Reader, err error)

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 Dimension

type Dimension struct {
	Name  string
	Value string
}

type Metric

type Metric struct {
	MetricNames []string
	Dimensions  []*Dimension
}

type MetricCache

type MetricCache struct {
	TTL     time.Duration
	Fetched time.Time
	Metrics []*cloudwatch.Metric
}

func (*MetricCache) IsValid

func (c *MetricCache) IsValid() bool

* Check Metric Cache validity

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL