Class: Azure::ARM::IotHub::Models::IotHubQuotaMetricInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb

Overview

The properties related to quota metrics.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueInteger

Returns The current value for the quota metric.

Returns:

  • (Integer)

    The current value for the quota metric.



19
20
21
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb', line 19

def current_value
  @current_value
end

#max_valueInteger

Returns The maximum value of the quota metric.

Returns:

  • (Integer)

    The maximum value of the quota metric.



22
23
24
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb', line 22

def max_value
  @max_value
end

#nameString

Returns The name of the quota metric.

Returns:

  • (String)

    The name of the quota metric.



16
17
18
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb', line 16

def name
  @name
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
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
# File 'lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb', line 29

def self.mapper()
  {
    required: false,
    serialized_name: 'IotHubQuotaMetricInfo',
    type: {
      name: 'Composite',
      class_name: 'IotHubQuotaMetricInfo',
      model_properties: {
        name: {
          required: false,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        current_value: {
          required: false,
          serialized_name: 'CurrentValue',
          type: {
            name: 'Number'
          }
        },
        max_value: {
          required: false,
          serialized_name: 'MaxValue',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end