config

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:    60 * time.Second,
	AWSRegion: "us-east-1",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	// Set how frequently CloudWatch should be queried The default, 900, means
	// check every 15 minutes. Setting this value too low (generally less than
	// 300) results in no metrics being returned from CloudWatch.
	Period      time.Duration `config:"period"`
	AWSRegion   string        `config:"aws_region"`
	Prospectors []Prospector  `config:"prospectors"`
}

type Metric

type Metric struct {
	AWSStatistics            []string            `config:"aws_statistics"`
	AWSDimensions            []string            `config:"aws_dimensions,omitempty"`
	AWSDimensionSelect       map[string][]string `config:"aws_dimensions_select,omitempty"`
	AWSDimensionsSelectParam map[string][]string `config:"aws_dimensions_select_param,omitempty"`

	AWSNamespace  string `config:"aws_namespace"`
	AWSMetricName string `config:"aws_metric_name"`

	RangeSeconds int `config:"range_seconds,omitempty"`

	//  Set the granularity of the returned datapoints. Must be at least 60
	//  seconds and in multiples of 60.
	PeriodSeconds int `config:"period_seconds,omitempty"`

	DelaySeconds int `config:"delay_seconds,omitempty"`
}

type Prospector

type Prospector struct {
	Id      string   `config:"id"`
	Metrics []Metric `config:"metrics"`
}

Jump to

Keyboard shortcuts

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