Interface MetricAlert.DefinitionStages.WithScopes

    • 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 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 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.