Documentation ¶
Overview ¶
Package cloudwatch provides a session and a client for publishing metrics to cloudwatch metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSessionConfig ¶
DefaultSessionConfig creates a Session configuration based on our custom defaults
Types ¶
type CloudWatch ¶
type CloudWatch struct {
Session *cloudwatch.CloudWatch
}
CloudCloudWatch provides a Session to the CloudWatch API
func NewSession ¶
func NewSession(config *aws.Config) *CloudWatch
NewSession creates and returns a cloudwatch Session session
type Metric ¶
type Metric struct { // Data of the metric to be posted Data *cloudwatch.PutMetricDataInput // contains filtered or unexported fields }
Metric is used to represent a cloudwatch metric
func (*Metric) Put ¶
func (m *Metric) Put(value float64) (*cloudwatch.PutMetricDataOutput, error)
Put posts to cloudwatch the metric defined
type MetricConfig ¶
type MetricConfig struct { // Name of the metric Name string // Namespace of the metric Namespace string // Service representation for the dimension Service *Service // Value of the metric that will be posted Value float64 }
MetricConfig is used to represent a cloudwatch metric configuration data
func DefaultMetricConfig ¶
func DefaultMetricConfig() *MetricConfig
DefaultClientConfig sets the default metric configuration
Click to show internal directories.
Click to hide internal directories.