CreateCustomMetric

command
v0.0.0-...-9d6317c Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

CreateCustomMetricv2.go

This example creates a new Amazon CloudWatch metric in a namespace.

go run CreateCustomMetricv2.go -n NAMESPACE -m METRIC-NAME -s SECONDS -dn DIMENSION-NAME -dv DIMENSION-VALUE

  • NAMESPACE is the namespace for the metric.
  • METRIC-NAME is the name of the metric.
  • SECONDS is the number of seconds for the metric.
  • DIMENSION-NAME is the name of the dimension.
  • DIMENSION-VALUE is the value of the dimension.

The unit test accepts similar values in config.json.

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX - License - Identifier: Apache - 2.0 snippet-start:[cloudwatch.go-v2.CreateCustomMetric]

Jump to

Keyboard shortcuts

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