Class MetricAvailability

java.lang.Object
com.microsoft.azure.management.monitor.MetricAvailability

public class MetricAvailability extends Object
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.
  • Constructor Details

    • MetricAvailability

      public MetricAvailability()
  • Method Details

    • timeGrain

      public org.joda.time.Period timeGrain()
      Get the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.
      Returns:
      the timeGrain value
    • withTimeGrain

      public MetricAvailability withTimeGrain(org.joda.time.Period timeGrain)
      Set the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.
      Parameters:
      timeGrain - the timeGrain value to set
      Returns:
      the MetricAvailability object itself.
    • retention

      public org.joda.time.Period retention()
      Get the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.
      Returns:
      the retention value
    • withRetention

      public MetricAvailability withRetention(org.joda.time.Period retention)
      Set the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.
      Parameters:
      retention - the retention value to set
      Returns:
      the MetricAvailability object itself.