Interface MetricAlert.DefinitionStages.WithScopes
- All Known Subinterfaces:
MetricAlert.Definition,MetricAlert.DefinitionMultipleResource
- Enclosing interface:
MetricAlert.DefinitionStages
public static interface MetricAlert.DefinitionStages.WithScopes
The stage of the definition which specifies target resource for metric alert.
-
Method Summary
Modifier and TypeMethodDescriptionwithMultipleTargetResources(Collection<? extends Resource> resources) Sets specified resources as target to alert on metric.withMultipleTargetResources(Collection<String> resourceIds, String type, String regionName) Sets specified resources as target to alert on metric.withTargetResource(HasId resource) Sets specified resource as a target to alert on metric.withTargetResource(String resourceId) Sets specified resource as a target to alert on metric.
-
Method Details
-
withTargetResource
Sets specified resource as a target to alert on metric.- Parameters:
resourceId- resource Id string.- Returns:
- the next stage of metric alert definition.
-
withTargetResource
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.
-