Interface MetricAlert

  • All Superinterfaces:
    com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource<com.microsoft.azure.management.monitor.implementation.MonitorManager,​com.microsoft.azure.management.monitor.implementation.MetricAlertResourceInner>, com.microsoft.azure.management.resources.fluentcore.arm.models.HasId, com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.monitor.implementation.MetricAlertResourceInner>, com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager<com.microsoft.azure.management.monitor.implementation.MonitorManager>, com.microsoft.azure.management.resources.fluentcore.arm.models.HasName, com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup, com.microsoft.azure.management.resources.fluentcore.model.Indexable, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<MetricAlert>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource, com.microsoft.azure.management.resources.fluentcore.model.Updatable<MetricAlert.Update>

    public interface MetricAlert
    extends com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource<com.microsoft.azure.management.monitor.implementation.MonitorManager,​com.microsoft.azure.management.monitor.implementation.MetricAlertResourceInner>, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<MetricAlert>, com.microsoft.azure.management.resources.fluentcore.model.Updatable<MetricAlert.Update>
    An immutable client-side representation of a Metric Alert.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  MetricAlert.Definition
      The entirety of a Metric Alert definition.
      static interface  MetricAlert.DefinitionStages
      Grouping of metric alerts definition stages.
      static interface  MetricAlert.Update
      The template for an update operation, containing all the settings that can be modified.
      static interface  MetricAlert.UpdateStages
      Grouping of metric alerts update stages.
      • Nested classes/interfaces inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource

        com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithRegion<T extends Object>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<T extends Object>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.UpdateWithTags<T extends Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Collection<String> actionGroupIds()
      Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
      Map<String,​MetricAlertCondition> alertCriterias()  
      boolean autoMitigate()
      Get the flag that indicates whether the alert should be auto resolved or not.
      String description()
      Get the description of the metric alert that will be included in the alert email.
      boolean enabled()
      Get the flag that indicates whether the metric alert is enabled.
      org.joda.time.Period evaluationFrequency()
      Get how often the metric alert is evaluated represented in ISO 8601 duration format.
      org.joda.time.DateTime lastUpdatedTime()
      Get last time the rule was updated in ISO8601 format.
      Collection<String> scopes()
      Get the list of resource id's that this metric alert is scoped to.
      int severity()
      Get alert severity {0, 1, 2, 3, 4}.
      org.joda.time.Period windowSize()
      Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId

        id
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner

        inner
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager

        manager
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName

        name
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup

        resourceGroupName
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable

        key
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable

        refresh, refreshAsync
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource

        region, regionName, tags, type
      • Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Updatable

        update
    • Method Detail

      • description

        String description()
        Get the description of the metric alert that will be included in the alert email.
        Returns:
        the description value
      • severity

        int severity()
        Get alert severity {0, 1, 2, 3, 4}.
        Returns:
        the severity value
      • enabled

        boolean enabled()
        Get the flag that indicates whether the metric alert is enabled.
        Returns:
        the enabled value
      • scopes

        Collection<String> scopes()
        Get the list of resource id's that this metric alert is scoped to.
        Returns:
        the scopes value
      • evaluationFrequency

        org.joda.time.Period evaluationFrequency()
        Get how often the metric alert is evaluated represented in ISO 8601 duration format.
        Returns:
        the evaluationFrequency value
      • windowSize

        org.joda.time.Period windowSize()
        Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
        Returns:
        the windowSize value
      • autoMitigate

        boolean autoMitigate()
        Get the flag that indicates whether the alert should be auto resolved or not.
        Returns:
        the autoMitigate value
      • actionGroupIds

        Collection<String> actionGroupIds()
        Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
        Returns:
        the actions value
      • lastUpdatedTime

        org.joda.time.DateTime lastUpdatedTime()
        Get last time the rule was updated in ISO8601 format.
        Returns:
        the lastUpdatedTime value