# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Cosmosdb::Mgmt::V2015_04_08 module Models # # The usage data for a usage request. # class Usage include MsRestAzure # @return [UnitType] The unit of the metric. Possible values include: # 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', # 'BytesPerSecond', 'Milliseconds' attr_accessor :unit # @return [MetricName] The name information for the metric. attr_accessor :name # @return [String] The quota period used to summarize the usage values. attr_accessor :quota_period # @return [Integer] Maximum value for this metric attr_accessor :limit # @return [Integer] Current value for this metric attr_accessor :current_value # # Mapper for Usage class as Ruby Hash. # This will be used for serialization/deserialization. # 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 end end end