Package com.pulumi.aws.cloudwatch.inputs
Class MetricAlarmMetricQueryArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudwatch.inputs.MetricAlarmMetricQueryArgs.Builder
-
- Enclosing class:
- MetricAlarmMetricQueryArgs
public static final class MetricAlarmMetricQueryArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(MetricAlarmMetricQueryArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(MetricAlarmMetricQueryArgs defaults)
-
-
Method Detail
-
accountId
public MetricAlarmMetricQueryArgs.Builder accountId(@Nullable com.pulumi.core.Output<java.lang.String> accountId)
- Parameters:
accountId- The ID of the account where the metrics are located, if this is a cross-account alarm.- Returns:
- builder
-
accountId
public MetricAlarmMetricQueryArgs.Builder accountId(java.lang.String accountId)
- Parameters:
accountId- The ID of the account where the metrics are located, if this is a cross-account alarm.- Returns:
- builder
-
expression
public MetricAlarmMetricQueryArgs.Builder expression(@Nullable com.pulumi.core.Output<java.lang.String> expression)
- Parameters:
expression- A Metrics Insights query or a metric math expression to be evaluated on the returned data. For details about Metrics Insights queries, see [Metrics Insights query components and syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage) in the AWS documentation. For details about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the AWS documentation.- Returns:
- builder
-
expression
public MetricAlarmMetricQueryArgs.Builder expression(java.lang.String expression)
- Parameters:
expression- A Metrics Insights query or a metric math expression to be evaluated on the returned data. For details about Metrics Insights queries, see [Metrics Insights query components and syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage) in the AWS documentation. For details about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the AWS documentation.- Returns:
- builder
-
id
public MetricAlarmMetricQueryArgs.Builder id(com.pulumi.core.Output<java.lang.String> id)
- Parameters:
id- 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.- Returns:
- builder
-
id
public MetricAlarmMetricQueryArgs.Builder id(java.lang.String id)
- Parameters:
id- 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.- Returns:
- builder
-
label
public MetricAlarmMetricQueryArgs.Builder label(@Nullable com.pulumi.core.Output<java.lang.String> label)
- Parameters:
label- 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.- Returns:
- builder
-
label
public MetricAlarmMetricQueryArgs.Builder label(java.lang.String label)
- Parameters:
label- 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.- Returns:
- builder
-
metric
public MetricAlarmMetricQueryArgs.Builder metric(@Nullable com.pulumi.core.Output<MetricAlarmMetricQueryMetricArgs> metric)
- Parameters:
metric- 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.- Returns:
- builder
-
metric
public MetricAlarmMetricQueryArgs.Builder metric(MetricAlarmMetricQueryMetricArgs metric)
- Parameters:
metric- 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.- Returns:
- builder
-
period
public MetricAlarmMetricQueryArgs.Builder period(@Nullable com.pulumi.core.Output<java.lang.Integer> period)
- Parameters:
period- 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`, `20`, `30`, or any multiple of `60`.- Returns:
- builder
-
period
public MetricAlarmMetricQueryArgs.Builder period(java.lang.Integer period)
- Parameters:
period- 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`, `20`, `30`, or any multiple of `60`.- Returns:
- builder
-
returnData
public MetricAlarmMetricQueryArgs.Builder returnData(@Nullable com.pulumi.core.Output<java.lang.Boolean> returnData)
- Parameters:
returnData- Specify exactly one `metricQuery` to be `true` to use that `metricQuery` result as the alarm. > **NOTE:** You must specify either `metric` or `expression`. Not both.- Returns:
- builder
-
returnData
public MetricAlarmMetricQueryArgs.Builder returnData(java.lang.Boolean returnData)
- Parameters:
returnData- Specify exactly one `metricQuery` to be `true` to use that `metricQuery` result as the alarm. > **NOTE:** You must specify either `metric` or `expression`. Not both.- Returns:
- builder
-
build
public MetricAlarmMetricQueryArgs build()
-
-