Skip to main content


No description

type AWSCloudWatchMetricDataQuery {
id: String!
accountId: String!
expression: String!
label: String!
metricStat: AWSCloudWatchMetricStat!
period: Int!
returnData: Boolean!

Fields ● String! non-null scalar

A short name used to tie this object to the results in the response

AWSCloudWatchMetricDataQuery.accountId ● String! non-null scalar

The ID of the account where the metrics are located

AWSCloudWatchMetricDataQuery.expression ● String! non-null scalar

This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data

AWSCloudWatchMetricDataQuery.label ● String! non-null scalar

A human-readable label for this metric or expression

AWSCloudWatchMetricDataQuery.metricStat ● AWSCloudWatchMetricStat! non-null object

A human-readable label for this metric or expression

AWSCloudWatchMetricDataQuery.period ● Int! non-null scalar

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60

AWSCloudWatchMetricDataQuery.returnData ● Boolean! non-null scalar

When used in GetMetricData , this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify false . If you omit this, the default of true is used. When used in PutMetricAlarm , specify true for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

Member of

AWSCloudWatchMetricAlarm object