Method: Aws::CloudWatch::Types::MetricDataQuery#expression
- Defined in:
- lib/aws-sdk-cloudwatch/types.rb
#expression ⇒ String
This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data. For more information about Metrics Insights queries, see [Metrics Insights query components and syntax] in the *Amazon CloudWatch User Guide*.
A math expression can use the ‘Id` of the other metrics or queries to refer to those metrics, and can also use the `Id` of other expressions to use the result of those expressions. For more information about metric math expressions, see [Metric Math Syntax and Functions] in the *Amazon CloudWatch User Guide*.
Within each MetricDataQuery object, you must specify either ‘Expression` or `MetricStat` but not both.
[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage [2]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax
2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 2833 class MetricDataQuery < Struct.new( :id, :metric_stat, :expression, :label, :return_data, :period, :account_id) SENSITIVE = [] include Aws::Structure end |