Interface MetricAlert.DefinitionStages.WithScopes
-
- All Known Subinterfaces:
MetricAlert.Definition,MetricAlert.DefinitionMultipleResource
- Enclosing interface:
- MetricAlert.DefinitionStages
public static interface MetricAlert.DefinitionStages.WithScopesThe stage of the definition which specifies target resource for metric alert.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricAlert.DefinitionStages.WithWindowSizeMultipleResourcewithMultipleTargetResources(Collection<? extends Resource> resources)Sets specified resources as target to alert on metric.MetricAlert.DefinitionStages.WithWindowSizeMultipleResourcewithMultipleTargetResources(Collection<String> resourceIds, String type, String regionName)Sets specified resources as target to alert on metric.MetricAlert.DefinitionStages.WithWindowSizewithTargetResource(HasId resource)Sets specified resource as a target to alert on metric.MetricAlert.DefinitionStages.WithWindowSizewithTargetResource(String resourceId)Sets specified resource as a target to alert on metric.
-
-
-
Method Detail
-
withTargetResource
MetricAlert.DefinitionStages.WithWindowSize withTargetResource(String resourceId)
Sets specified resource as a target to alert on metric.- Parameters:
resourceId- resource Id string.- Returns:
- the next stage of metric alert definition.
-
withTargetResource
MetricAlert.DefinitionStages.WithWindowSize withTargetResource(HasId resource)
Sets specified resource as a target to alert on metric.- Parameters:
resource- resource type that is inherited fromHasIdinterface- Returns:
- the next stage of metric alert definition.
-
withMultipleTargetResources
MetricAlert.DefinitionStages.WithWindowSizeMultipleResource withMultipleTargetResources(Collection<String> resourceIds, String type, String regionName)
Sets specified resources as target to alert on metric. All resources must be of the same type and in the same region.- Parameters:
resourceIds- collection of resource id to alert on metric.type- resource type.regionName- resource region.- Returns:
- the next stage of metric alert definition.
-
withMultipleTargetResources
MetricAlert.DefinitionStages.WithWindowSizeMultipleResource withMultipleTargetResources(Collection<? extends Resource> resources)
Sets specified resources as target to alert on metric. All resources must be of the same type and in the same region.- Parameters:
resources- collection of resources to alert on metric, which must be of the same type and in the same region.- Returns:
- the next stage of metric alert definition.
-
-