Discover Packages
github.com/aaditya2200/aws-doc-sdk-examples
gov2
cloudwatch
CreateCustomMetric
command
Version:
v0.0.0-...-e8b88a3
Opens a new window with list of versions in this module.
Published: Jun 22, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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 .
Expand ▾
Collapse ▴
Documentation
¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX - License - Identifier: Apache - 2.0
snippet-start:[cloudwatch.go-v2.CreateCustomMetric]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.