class Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::UsageMetric
A metric describing the usage of a resource.
Attributes
current_value[RW]
@return [Float] The current value of the metric.
limit[RW]
@return [Float] The quota limit for the metric.
name[RW]
@return [MetricName] The name of the metric.
next_reset_time[RW]
@return [DateTime] The time that the metric's value will reset.
quota_period[RW]
@return [String] The quota period that determines the length of time between value resets.
unit[RW]
@return [String] The units used for the metric.
Public Class Methods
mapper()
click to toggle source
Mapper for UsageMetric
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-03-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