Documentation ¶
Overview ¶
Package metrics fetches CloudWatch metrics for a function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Name string Value []*cloudwatch.Datapoint }
Metric represents a CloudWatch metric with a given name and value.
type MetricCollector ¶
type MetricCollector struct { Metrics []string Collected int FunctionName string Service cloudwatchiface.CloudWatchAPI StartDate time.Time EndDate time.Time }
MetricCollector a wrapper all metrics for a specific function.
func (*MetricCollector) Collect ¶
func (mc *MetricCollector) Collect() <-chan Metric
Collect builds the collector pipeline
Click to show internal directories.
Click to hide internal directories.