class Azure::Monitor::Mgmt::V2016_03_01::Models::MetricAvailability

Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.

Attributes

retention[RW]

@return [Duration] the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.

time_grain[RW]

@return [Duration] the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.

Public Class Methods

mapper() click to toggle source

Mapper for MetricAvailability class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb, line 29
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricAvailability',
    type: {
      name: 'Composite',
      class_name: 'MetricAvailability',
      model_properties: {
        time_grain: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeGrain',
          type: {
            name: 'TimeSpan'
          }
        },
        retention: {
          client_side_validation: true,
          required: false,
          serialized_name: 'retention',
          type: {
            name: 'TimeSpan'
          }
        }
      }
    }
  }
end