Class MonitoringSloWindowsBasedSli.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_slo.MonitoringSloWindowsBasedSli.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringSloWindowsBasedSli>
- Enclosing interface:
- MonitoringSloWindowsBasedSli
@Stability(Stable) public static final class MonitoringSloWindowsBasedSli.Builder extends Object implements software.amazon.jsii.Builder<MonitoringSloWindowsBasedSli>
A builder forMonitoringSloWindowsBasedSli
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
goodBadMetricFilter
@Stability(Stable) public MonitoringSloWindowsBasedSli.Builder goodBadMetricFilter(String goodBadMetricFilter)
Sets the value ofMonitoringSloWindowsBasedSli.getGoodBadMetricFilter()- Parameters:
goodBadMetricFilter- A TimeSeries monitoring filter with ValueType = BOOL. The window is good if any true values appear in the window. One of 'good_bad_metric_filter', 'good_total_ratio_threshold', 'metric_mean_in_range', 'metric_sum_in_range' must be set for 'windows_based_sli'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#good_bad_metric_filter MonitoringSlo#good_bad_metric_filter}- Returns:
this
-
goodTotalRatioThreshold
@Stability(Stable) public MonitoringSloWindowsBasedSli.Builder goodTotalRatioThreshold(MonitoringSloWindowsBasedSliGoodTotalRatioThreshold goodTotalRatioThreshold)
Sets the value ofMonitoringSloWindowsBasedSli.getGoodTotalRatioThreshold()- Parameters:
goodTotalRatioThreshold- good_total_ratio_threshold block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#good_total_ratio_threshold MonitoringSlo#good_total_ratio_threshold}- Returns:
this
-
metricMeanInRange
@Stability(Stable) public MonitoringSloWindowsBasedSli.Builder metricMeanInRange(MonitoringSloWindowsBasedSliMetricMeanInRange metricMeanInRange)
Sets the value ofMonitoringSloWindowsBasedSli.getMetricMeanInRange()- Parameters:
metricMeanInRange- metric_mean_in_range block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#metric_mean_in_range MonitoringSlo#metric_mean_in_range}- Returns:
this
-
metricSumInRange
@Stability(Stable) public MonitoringSloWindowsBasedSli.Builder metricSumInRange(MonitoringSloWindowsBasedSliMetricSumInRange metricSumInRange)
Sets the value ofMonitoringSloWindowsBasedSli.getMetricSumInRange()- Parameters:
metricSumInRange- metric_sum_in_range block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#metric_sum_in_range MonitoringSlo#metric_sum_in_range}- Returns:
this
-
windowPeriod
@Stability(Stable) public MonitoringSloWindowsBasedSli.Builder windowPeriod(String windowPeriod)
Sets the value ofMonitoringSloWindowsBasedSli.getWindowPeriod()- Parameters:
windowPeriod- Duration over which window quality is evaluated, given as a duration string "{X}s" representing X seconds. Must be an integer fraction of a day and at least 60s. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#window_period MonitoringSlo#window_period}- Returns:
this
-
build
@Stability(Stable) public MonitoringSloWindowsBasedSli build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringSloWindowsBasedSli>- Returns:
- a new instance of
MonitoringSloWindowsBasedSli - Throws:
NullPointerException- if any required attribute was not provided
-
-