cw

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishRespTime

func PublishRespTime(location, url, respCode string, metricValue float64, metricName, namespace string)

Publish a metric (resonse time in milliseconds) to a CloudWatch namespace.

AWS Cloudwatch requires the following variables in the environment (see AWS SDK docs): AWS_REGION AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY

Use as dimensions: location, url, respCode Publishes "metric" as "name" in "namespace"

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL