Interface TelemetryRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TelemetryRule.Builder,,TelemetryRule> SdkBuilder<TelemetryRule.Builder,,TelemetryRule> SdkPojo
- Enclosing class:
TelemetryRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault TelemetryRule.Buildercondition(Consumer<AlertCondition.Builder> condition) The condition that determines when the alert fires.condition(AlertCondition condition) The condition that determines when the alert fires.default TelemetryRule.Builderevaluation(Consumer<AlertEvaluation.Builder> evaluation) The evaluation cadence and durations.evaluation(AlertEvaluation evaluation) The evaluation cadence and durations.default TelemetryRule.BuildernoData(Consumer<NoData.Builder> noData) How the alert behaves when a query produces no data.How the alert behaves when a query produces no data.default TelemetryRule.Builderquery(Consumer<AlertRuleQuery.Builder> query) The query expression to evaluate.query(AlertRuleQuery query) The query expression to evaluate.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
query
The query expression to evaluate.
- Parameters:
query- The query expression to evaluate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
The query expression to evaluate.
This is a convenience method that creates an instance of theAlertRuleQuery.Builderavoiding the need to create one manually viaAlertRuleQuery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toquery(AlertRuleQuery).- Parameters:
query- a consumer that will call methods onAlertRuleQuery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
condition
The condition that determines when the alert fires.
- Parameters:
condition- The condition that determines when the alert fires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
The condition that determines when the alert fires.
This is a convenience method that creates an instance of theAlertCondition.Builderavoiding the need to create one manually viaAlertCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(AlertCondition).- Parameters:
condition- a consumer that will call methods onAlertCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluation
The evaluation cadence and durations.
- Parameters:
evaluation- The evaluation cadence and durations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluation
The evaluation cadence and durations.
This is a convenience method that creates an instance of theAlertEvaluation.Builderavoiding the need to create one manually viaAlertEvaluation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluation(AlertEvaluation).- Parameters:
evaluation- a consumer that will call methods onAlertEvaluation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
noData
How the alert behaves when a query produces no data.
- Parameters:
noData- How the alert behaves when a query produces no data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noData
How the alert behaves when a query produces no data.
This is a convenience method that creates an instance of theNoData.Builderavoiding the need to create one manually viaNoData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonoData(NoData).- Parameters:
noData- a consumer that will call methods onNoData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-