Documentation ¶
Overview ¶
Package cw implements common CloudWatch utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetricsImage ¶
func GetMetricsImage(lg *zap.Logger, cwAPI cloudwatchiface.CloudWatchAPI, widgetQueryJSON string, outputPath string) (err error)
GetMetricsImage downloads metrics image from CloudWatch. ref. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatch/#GetMetricWidgetImageInput ref. https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Metric-Widget-Structure.html
func PutData ¶ added in v1.4.6
func PutData(lg *zap.Logger, cwAPI cloudwatchiface.CloudWatchAPI, namespace string, batchSize int, datums ...*cloudwatch.MetricDatum) (err error)
PutData publishes the list of cloudwatch datums in a batch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.