class Azure::Cosmosdb::Mgmt::V2019_12_12::Models::Usage

The usage data for a usage request.

Attributes

current_value[RW]

@return [Integer] Current value for this metric

limit[RW]

@return [Integer] Maximum value for this metric

name[RW]

@return [MetricName] The name information for the metric.

quota_period[RW]

@return [String] The quota period used to summarize the usage values.

unit[RW]

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

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usage.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Usage',
    type: {
      name: 'Composite',
      class_name: 'Usage',
      model_properties: {
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'MetricName'
          }
        },
        quota_period: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'quotaPeriod',
          type: {
            name: 'String'
          }
        },
        limit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'limit',
          type: {
            name: 'Number'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentValue',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end