GetMetricStatistics#

Description#

Returns the statistic data for the specified metric.

Request Parameters#

  • Dimensions.member.n — The alarm dimensions (for details, see user documentation).

    • Required: Yes

    • Type: List of Dimension objects

    • Length constraints: from 0 to 10 items

    • The Name attributes of the referred Dimension objects must not be different

  • EndTime — Ending date to retrieve a metric data.

    • Required: Yes

    • Type: Datetime

  • MetricName — The name of the metric.

    • Required: Yes

    • Type: String

    • Length constraints: from 1 to 255 symbols

  • Namespace — The namespace of the metric..

    • Required: Yes

    • Type: String

    • Length constraints: from 1 to 255 symbols

  • Period — The granularity, in seconds, of the returned data points.

    • Required: Yes

    • Type: Integer

    • Valid range: Value must be divisible by 60, minimum value is 60.

  • StartTime — Starting date to retrieve a metric data.

    • Required: Yes

    • Type: Datetime

  • Statistics.member.n — Statistics.

    • Required: Yes

    • Type: Array of strings

    • Valid values: Average | Sum | SampleCount | Maximum | Minimum

Response Elements#

  • Datapoints — The statistic data for the specified metric.

  • Label — The text data for the specified metric.

    • Type: String

Examples#

c2-cw GetMetricStatistics Period <period> StartTime <start_time> EndTime <end_time> \
                          MetricName <metric_name> Namespace <namespace> \
                          Statistics.member.1 <statistic>

c2-cw GetMetricStatistics Period <period> StartTime <start_time> EndTime <end_time> \
                          MetricName <metric_name> Namespace <namespace> \
                          Statistics.member.1 <statistic> \
                          Dimensions.member.1.Name "InstanceId" \
                          Dimensions.member.1.Value <instance_id>