class Azure::Monitor::Mgmt::V2016_09_01::Models::Metric

A set of metric values in a time range.

Attributes

data[RW]

@return [Array<MetricValue>] Array of data points representing the metric values.

id[RW]

@return [String] the id, resourceId, of the metric.

name[RW]

@return [LocalizableString] the name and the display name of the metric, i.e. it is localizable string.

type[RW]

@return [String] the resource type of the metric resource.

unit[RW]

@return [Unit] the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds'

Public Class Methods

mapper() click to toggle source

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

# File lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb, line 39
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Metric',
    type: {
      name: 'Composite',
      class_name: 'Metric',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'LocalizableString'
          }
        },
        unit: {
          client_side_validation: true,
          required: true,
          serialized_name: 'unit',
          type: {
            name: 'Enum',
            module: 'Unit'
          }
        },
        data: {
          client_side_validation: true,
          required: true,
          serialized_name: 'data',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricValueElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricValue'
                }
            }
          }
        }
      }
    }
  }
end