GetMetricData

command
v0.0.0-...-f18a567 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

GetMetricData/GetMetricDatav2.go

This example displays the metric data points for the provided input in the given time-frame.

go run CreateCustomMetricv2.go -mN METRIC-NAME -n NAMESPACE -dn DIMENSION-NAME -dv DIMENSION-VALUE -id ID -dM DIFFINMINUTES -s STAT -p PERIOD

  • NAMESPACE is the namespace for the metric.
  • METRIC-NAME is the name of the metric.
  • DIMENSION-NAME is the name of the dimension.
  • DIMENSION-VALUE is the value of the dimension.
  • ID is a short name used to tie the object to the results in the response
  • DIFFINMINUTES is the difference in minutes for which the metrics are requested
  • STAT is the Statistic to return i.e. SUM, COUNT, AVERAGE etc
  • PERIOD is the granularity, in seconds, of the returned data points

The unit test accepts similar values in config.json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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