class Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage

The usage data for a usage request.

Attributes

current_value[RW]

@return [Float] Current value for this metric.

limit[RW]

@return [Float] Maximum value for this metric.

name[RW]

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

next_reset_time[RW]

@return [String] Next reset time for current quota.

quota_period[RW]

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

status[RW]

@return [QuotaUsageStatus] Cognitive Services account quota usage status. Possible values include: 'Included', 'Blocked', 'InOverage', 'Unknown'

unit[RW]

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

Private Class Methods

mapper() click to toggle source

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

# File lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/usage.rb, line 45
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: 'Double'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentValue',
          type: {
            name: 'Double'
          }
        },
        next_reset_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'nextResetTime',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end