Class: Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric
- Inherits:
-
Object
- Object
- Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric
- 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
-
#current_value ⇒ Float
The current value of the metric.
-
#limit ⇒ Float
The quota limit for the metric.
-
#name ⇒ MetricName
The name of the metric.
-
#next_reset_time ⇒ DateTime
The time that the metric’s value will reset.
-
#quota_period ⇒ String
between value resets.
-
#unit ⇒ String
The units used for the metric.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UsageMetric class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Float
Returns 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 |
#limit ⇒ Float
Returns 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 |
#name ⇒ MetricName
Returns The name of the metric.
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_time ⇒ DateTime
Returns 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_period ⇒ String
between value resets.
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 |
#unit ⇒ String
Returns 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
.mapper ⇒ Object
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 |