Class MetricAlarmMetricQuery
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.outputs.MetricAlarmMetricQuery
-
public final class MetricAlarmMetricQuery extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricAlarmMetricQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
accountId()
static MetricAlarmMetricQuery.Builder
builder()
static MetricAlarmMetricQuery.Builder
builder(MetricAlarmMetricQuery defaults)
java.util.Optional<java.lang.String>
expression()
java.lang.String
id()
java.util.Optional<java.lang.String>
label()
java.util.Optional<MetricAlarmMetricQueryMetric>
metric()
java.util.Optional<java.lang.Integer>
period()
java.util.Optional<java.lang.Boolean>
returnData()
-
-
-
Method Detail
-
accountId
public java.util.Optional<java.lang.String> accountId()
- Returns:
- The ID of the account where the metrics are located, if this is a cross-account alarm.
-
expression
public java.util.Optional<java.lang.String> expression()
- Returns:
- The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics 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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax).
-
id
public java.lang.String id()
- Returns:
- A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
-
label
public java.util.Optional<java.lang.String> label()
- Returns:
- A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents.
-
metric
public java.util.Optional<MetricAlarmMetricQueryMetric> metric()
- Returns:
- The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
-
period
public java.util.Optional<java.lang.Integer> period()
- Returns:
- Granularity in seconds of returned data points. For metrics with regular resolution, valid values are any multiple of `60`. For high-resolution metrics, valid values are `1`, `5`, `10`, `30`, or any multiple of `60`.
-
returnData
public java.util.Optional<java.lang.Boolean> returnData()
- Returns:
- Specify exactly one `metric_query` to be `true` to use that `metric_query` result as the alarm. > **NOTE:** You must specify either `metric` or `expression`. Not both.
-
builder
public static MetricAlarmMetricQuery.Builder builder()
-
builder
public static MetricAlarmMetricQuery.Builder builder(MetricAlarmMetricQuery defaults)
-
-