Class MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdAggregations>
- Enclosing interface:
- MonitoringAlertPolicyConditionsConditionThresholdAggregations
@Stability(Stable) public static final class MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder extends Object implements software.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdAggregations>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoringAlertPolicyConditionsConditionThresholdAggregations.BuilderalignmentPeriod(String alignmentPeriod)MonitoringAlertPolicyConditionsConditionThresholdAggregationsbuild()Builds the configured instance.MonitoringAlertPolicyConditionsConditionThresholdAggregations.BuildercrossSeriesReducer(String crossSeriesReducer)MonitoringAlertPolicyConditionsConditionThresholdAggregations.BuildergroupByFields(List<String> groupByFields)MonitoringAlertPolicyConditionsConditionThresholdAggregations.BuilderperSeriesAligner(String perSeriesAligner)
-
-
-
Method Detail
-
alignmentPeriod
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder alignmentPeriod(String alignmentPeriod)
Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdAggregations.getAlignmentPeriod()- Parameters:
alignmentPeriod- The alignment period for per-time series alignment. If present, alignmentPeriod must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then this field must be defined; otherwise an error is returned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#alignment_period MonitoringAlertPolicy#alignment_period}- Returns:
this
-
crossSeriesReducer
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder crossSeriesReducer(String crossSeriesReducer)
Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdAggregations.getCrossSeriesReducer()- Parameters:
crossSeriesReducer- The approach to be used to combine time series. Not all reducer functions may be applied to all time series, depending on the metric type and the value type of the original time series. Reduction may change the metric type of value type of the time series.Time series data must be aligned in order to perform cross- time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned. Possible values: ["REDUCE_NONE", "REDUCE_MEAN", "REDUCE_MIN", "REDUCE_MAX", "REDUCE_SUM", "REDUCE_STDDEV", "REDUCE_COUNT", "REDUCE_COUNT_TRUE", "REDUCE_COUNT_FALSE", "REDUCE_FRACTION_TRUE", "REDUCE_PERCENTILE_99", "REDUCE_PERCENTILE_95", "REDUCE_PERCENTILE_50", "REDUCE_PERCENTILE_05"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#cross_series_reducer MonitoringAlertPolicy#cross_series_reducer}- Returns:
this
-
groupByFields
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder groupByFields(List<String> groupByFields)
- Parameters:
groupByFields- The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#group_by_fields MonitoringAlertPolicy#group_by_fields}- Returns:
this
-
perSeriesAligner
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdAggregations.Builder perSeriesAligner(String perSeriesAligner)
Sets the value ofMonitoringAlertPolicyConditionsConditionThresholdAggregations.getPerSeriesAligner()- Parameters:
perSeriesAligner- The approach to be used to align individual time series. Not all alignment functions may be applied to all time series, depending on the metric type and value type of the original time series. Alignment may change the metric type or the value type of the time series.Time series data must be aligned in order to perform cross- time series reduction. If crossSeriesReducer is specified, then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is returned. Possible values: ["ALIGN_NONE", "ALIGN_DELTA", "ALIGN_RATE", "ALIGN_INTERPOLATE", "ALIGN_NEXT_OLDER", "ALIGN_MIN", "ALIGN_MAX", "ALIGN_MEAN", "ALIGN_COUNT", "ALIGN_SUM", "ALIGN_STDDEV", "ALIGN_COUNT_TRUE", "ALIGN_COUNT_FALSE", "ALIGN_FRACTION_TRUE", "ALIGN_PERCENTILE_99", "ALIGN_PERCENTILE_95", "ALIGN_PERCENTILE_50", "ALIGN_PERCENTILE_05", "ALIGN_PERCENT_CHANGE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#per_series_aligner MonitoringAlertPolicy#per_series_aligner}- Returns:
this
-
build
@Stability(Stable) public MonitoringAlertPolicyConditionsConditionThresholdAggregations build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringAlertPolicyConditionsConditionThresholdAggregations>- Returns:
- a new instance of
MonitoringAlertPolicyConditionsConditionThresholdAggregations - Throws:
NullPointerException- if any required attribute was not provided
-
-