Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Usage

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb

Overview

The usage data for a usage request.

Direct Known Subclasses

PartitionUsage

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueInteger

Returns Current value for this metric.

Returns:

  • (Integer)

    Current value for this metric



30
31
32
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb', line 30

def current_value
  @current_value
end

#limitInteger

Returns Maximum value for this metric.

Returns:

  • (Integer)

    Maximum value for this metric



27
28
29
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb', line 27

def limit
  @limit
end

#nameMetricName

Returns The name information for the metric.

Returns:

  • (MetricName)

    The name information for the metric.



21
22
23
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb', line 21

def name
  @name
end

#quota_periodString

Returns The quota period used to summarize the usage values.

Returns:

  • (String)

    The quota period used to summarize the usage values.



24
25
26
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb', line 24

def quota_period
  @quota_period
end

#unitUnitType

‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’

Returns:

  • (UnitType)

    The unit of the metric. Possible values include:



18
19
20
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb', line 18

def unit
  @unit
end

Class Method Details

.mapperObject

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



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/2019-08-01/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