Class: Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb

Overview

A metric describing the usage of a resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueFloat

Returns The current value of the metric.

Returns:

  • (Float)

    The current value of the metric.



22
23
24
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 22

def current_value
  @current_value
end

#limitFloat

Returns The quota limit for the metric.

Returns:

  • (Float)

    The quota limit for the metric.



25
26
27
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 25

def limit
  @limit
end

#nameMetricName

Returns The name of the metric.

Returns:



16
17
18
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 16

def name
  @name
end

#next_reset_timeDateTime

Returns The time that the metric’s value will reset.

Returns:

  • (DateTime)

    The time that the metric’s value will reset.



28
29
30
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 28

def next_reset_time
  @next_reset_time
end

#quota_periodString

between value resets.

Returns:

  • (String)

    The quota period that determines the length of time



32
33
34
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 32

def quota_period
  @quota_period
end

#unitString

Returns The units used for the metric.

Returns:

  • (String)

    The units used for the metric.



19
20
21
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 19

def unit
  @unit
end

Class Method Details

.mapperObject

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



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
95
96
97
98
99
100
# File 'lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UsageMetric',
    type: {
      name: 'Composite',
      class_name: 'UsageMetric',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'MetricName'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'currentValue',
          type: {
            name: 'Double'
          }
        },
        limit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'limit',
          type: {
            name: 'Double'
          }
        },
        next_reset_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nextResetTime',
          type: {
            name: 'DateTime'
          }
        },
        quota_period: {
          client_side_validation: true,
          required: false,
          serialized_name: 'quotaPeriod',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end