Documentation ¶
Index ¶
Constants ¶
View Source
const BackendName = "cloudwatch"
BackendName is the name of this backend.
View Source
const MAX_DIMENSIONS = 10
Maximum number of dimensions per metric https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an object that is used to send messages to AWS CloudWatch.
func NewClient ¶
func NewClient(namespace string, disabled gostatsd.TimerSubtypes) (*Client, error)
NewClient constructs a AWS Cloudwatch backend.
func (Client) SendMetricsAsync ¶
func (client Client) SendMetricsAsync(ctx context.Context, metrics *gostatsd.MetricMap, cb gostatsd.SendCallback)
SendMetricsAsync sends the metrics in a MetricsMap to AWS Cloudwatch, preparing payload synchronously but doing the send asynchronously.
Click to show internal directories.
Click to hide internal directories.