Interface MetricAlert.DefinitionStages.WithCreate
- All Superinterfaces:
Creatable<MetricAlert>, HasName, Indexable, MetricAlert.DefinitionStages.WithCriteriaDefinition, Resource.DefinitionWithTags<MetricAlert.DefinitionStages.WithCreate>
- All Known Subinterfaces:
MetricAlert.Definition
- Enclosing interface:
MetricAlert.DefinitionStages
public static interface MetricAlert.DefinitionStages.WithCreate
extends Creatable<MetricAlert>, Resource.DefinitionWithTags<MetricAlert.DefinitionStages.WithCreate>, MetricAlert.DefinitionStages.WithCriteriaDefinition
The stage of the definition which contains all the minimum required inputs for the resource to be created but
also allows for any other optional settings to be specified.
-
Method Summary
Modifier and TypeMethodDescriptionSets the flag that indicates the alert should not be auto resolved.Sets metric alert as disabled during the creation.Methods inherited from interface Creatable
create, create, createAsync, createAsyncMethods inherited from interface MetricAlert.DefinitionStages.WithCriteriaDefinition
defineAlertCriteriaMethods inherited from interface Resource.DefinitionWithTags
withTag, withTags
-
Method Details
-
withoutAutoMitigation
MetricAlert.DefinitionStages.WithCreate withoutAutoMitigation()Sets the flag that indicates the alert should not be auto resolved.- Returns:
- the next stage of metric alert condition definition.
-
withRuleDisabled
MetricAlert.DefinitionStages.WithActionGroup withRuleDisabled()Sets metric alert as disabled during the creation.- Returns:
- the next stage of metric alert definition.
-