Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricRegistry ¶
type MetricRegistry interface { // Record adds a new metric value to the registry Record(spec *MetricSpec, value float64, dimensions map[string]string) // Emit sends all registered metric values to cloudwatch, emptying the registry Emit() error }
func NewCloudWatchRegistry ¶
func NewCloudWatchRegistry(cw *cloudwatch.Client) MetricRegistry
NewCloudWatchRegistry creates a new metric registry that will emit values using the specified cloudwatch client
func NewNoopMetricRegistry ¶
func NewNoopMetricRegistry() MetricRegistry
type MetricSpec ¶
type MetricSpec struct { Namespace string Metric string Unit types.StandardUnit }
Click to show internal directories.
Click to hide internal directories.