Class MonitoringAlertPolicyConditionsConditionThreshold.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyConditionsConditionThreshold.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThreshold>
- Enclosing interface:
- MonitoringAlertPolicyConditionsConditionThreshold
@Stability(Stable) public static final class MonitoringAlertPolicyConditionsConditionThreshold.Builder extends Object implements software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThreshold>
A builder forMonitoringAlertPolicyConditionsConditionThreshold
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
comparison
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder comparison(String comparison)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getComparison()- Parameters:
comparison- The comparison to apply between the time series (indicated by filter and aggregation) and the threshold (indicated by threshold_value). This parameter is required. The comparison is applied on each time series, with the time series on the left-hand side and the threshold on the right-hand side. Only COMPARISON_LT and COMPARISON_GT are supported currently. Possible values: ["COMPARISON_GT", "COMPARISON_GE", "COMPARISON_LT", "COMPARISON_LE", "COMPARISON_EQ", "COMPARISON_NE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#comparison MonitoringAlertPolicy#comparison}- Returns:
this
-
duration
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder duration(String duration)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getDuration()- Parameters:
duration- The amount of time that a time series must violate the threshold to be considered failing. This parameter is required. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given, an error will be returned. When choosing a duration, it is useful to keep in mind the frequency of the underlying time series data (which may also be affected by any alignments specified in the aggregations field); a good duration is long enough so that a single outlier does not generate spurious alerts, but short enough that unhealthy states are detected and alerted on quickly. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#duration MonitoringAlertPolicy#duration}- Returns:
this
-
aggregations
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder aggregations(com.hashicorp.cdktf.IResolvable aggregations)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getAggregations()- Parameters:
aggregations- aggregations block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#aggregations MonitoringAlertPolicy#aggregations}- Returns:
this
-
aggregations
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder aggregations(List<? extends MonitoringAlertPolicyConditionsConditionThresholdAggregations> aggregations)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getAggregations()- Parameters:
aggregations- aggregations block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#aggregations MonitoringAlertPolicy#aggregations}- Returns:
this
-
denominatorAggregations
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder denominatorAggregations(com.hashicorp.cdktf.IResolvable denominatorAggregations)
- Parameters:
denominatorAggregations- denominator_aggregations block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#denominator_aggregations MonitoringAlertPolicy#denominator_aggregations}- Returns:
this
-
denominatorAggregations
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder denominatorAggregations(List<? extends MonitoringAlertPolicyConditionsConditionThresholdDenominatorAggregations> denominatorAggregations)
- Parameters:
denominatorAggregations- denominator_aggregations block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#denominator_aggregations MonitoringAlertPolicy#denominator_aggregations}- Returns:
this
-
denominatorFilter
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder denominatorFilter(String denominatorFilter)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getDenominatorFilter()- Parameters:
denominatorFilter- A filter that identifies a time series that should be used as the denominator of a ratio that will be compared with the threshold. If a denominator_filter is specified, the time series specified by the filter field will be used as the numerator.The filter is similar to the one that is specified in the MetricService.ListTimeSeries request (that call is useful to verify the time series that will be retrieved / processed) and must specify the metric type and optionally may contain restrictions on resource type, resource labels, and metric labels. This field may not exceed 2048 Unicode characters in length. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#denominator_filter MonitoringAlertPolicy#denominator_filter}- Returns:
this
-
evaluationMissingData
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder evaluationMissingData(String evaluationMissingData)
- Parameters:
evaluationMissingData- A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. Possible values: ["EVALUATION_MISSING_DATA_INACTIVE", "EVALUATION_MISSING_DATA_ACTIVE", "EVALUATION_MISSING_DATA_NO_OP"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#evaluation_missing_data MonitoringAlertPolicy#evaluation_missing_data}- Returns:
this
-
filter
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder filter(String filter)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getFilter()- Parameters:
filter- A filter that identifies which time series should be compared with the threshold.The filter is similar to the one that is specified in the MetricService.ListTimeSeries request (that call is useful to verify the time series that will be retrieved / processed) and must specify the metric type and optionally may contain restrictions on resource type, resource labels, and metric labels. This field may not exceed 2048 Unicode characters in length. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#filter MonitoringAlertPolicy#filter}- Returns:
this
-
forecastOptions
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder forecastOptions(MonitoringAlertPolicyConditionsConditionThresholdForecastOptions forecastOptions)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getForecastOptions()- Parameters:
forecastOptions- forecast_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#forecast_options MonitoringAlertPolicy#forecast_options}- Returns:
this
-
thresholdValue
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder thresholdValue(Number thresholdValue)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getThresholdValue()- Parameters:
thresholdValue- A value against which to compare the time series. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#threshold_value MonitoringAlertPolicy#threshold_value}- Returns:
this
-
trigger
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold.Builder trigger(MonitoringAlertPolicyConditionsConditionThresholdTrigger trigger)
Sets the value ofMonitoringAlertPolicyConditionsConditionThreshold.getTrigger()- Parameters:
trigger- trigger block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#trigger MonitoringAlertPolicy#trigger}- Returns:
this
-
build
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThreshold build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThreshold>- Returns:
- a new instance of
MonitoringAlertPolicyConditionsConditionThreshold - Throws:
NullPointerException- if any required attribute was not provided
-
-