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 Details

    • 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(com.azure.resourcemanager.resources.fluentcore.arm.models.HasId resource)
      Sets specified resource as a target to alert on metric.
      Parameters:
      resource - resource type that is inherited from HasId interface
      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 com.azure.resourcemanager.resources.fluentcore.arm.models.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.