Documentation ¶
Index ¶
- func Client(client CloudWatch) func(*Publisher)
- func Context(ctx context.Context) func(*Publisher)
- func Debug(w io.Writer) func(*Publisher)
- func Dimensions(keyvals ...string) func(*Publisher)
- func Interval(interval time.Duration) func(*Publisher)
- func Percentiles(percentiles []float64) func(*Publisher)
- func Publish(registry metrics.Registry, namespace string, configs ...func(*Publisher))
- type CloudWatch
- type Datums
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(client CloudWatch) func(*Publisher)
Client allows for user provided *cloudwatch.Cloudwatch instance
func Context ¶
Context allows a context to be specified. When <-ctx.Done() returns; the Publisher will stop any internal go routines and return
func Dimensions ¶
Dimensions allows for user specified dimensiosn to be added to the post
func Interval ¶
Interval allows for a custom posting interval; by default, the interval is every 1 minute
func Percentiles ¶
Percentiles allows the reported percentiles for Histogram and Timer metrics to be customized
Types ¶
type CloudWatch ¶
type CloudWatch interface {
PutMetricData(input *cloudwatch.PutMetricDataInput) (*cloudwatch.PutMetricDataOutput, error)
}
CloudWatch is an interface for *cloudwatch.CloudWatch that clearly identifies the functions used by cloudmetrics
type Datums ¶
type Datums []*cloudwatch.MetricDatum
Click to show internal directories.
Click to hide internal directories.