class Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition

Metadata for a metric.

Attributes

display_name[RW]

@return [String] Friendly name shown in the UI.

metric_availabilities[RW]

@return [Array<MetricAvailabilily>] List of time grains supported for the metric together with retention period.

primary_aggregation_type[RW]

@return [String] Primary aggregation type.

unit[RW]

@return [String] Unit of the metric.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricDefinition',
    type: {
      name: 'Composite',
      class_name: 'MetricDefinition',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unit',
          type: {
            name: 'String'
          }
        },
        primary_aggregation_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.primaryAggregationType',
          type: {
            name: 'String'
          }
        },
        metric_availabilities: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.metricAvailabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricAvailabililyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricAvailabilily'
                }
            }
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.displayName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end