class Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
Represents a metric value.
Attributes
average[RW]
@return [Float] the average value in the time range.
count[RW]
@return [Float] the number of samples in the time range. Can be used to determine the number of values that contributed to the average value.
maximum[RW]
@return [Float] the greatest value in the time range.
minimum[RW]
@return [Float] the least value in the time range.
time_stamp[RW]
@return [DateTime] the timestamp for the metric value in ISO 8601 format.
total[RW]
@return [Float] the sum of all of the values in the time range.
Private Class Methods
mapper()
click to toggle source
Mapper for MetricValue
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb, line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricValue', type: { name: 'Composite', class_name: 'MetricValue', model_properties: { time_stamp: { client_side_validation: true, required: true, serialized_name: 'timeStamp', type: { name: 'DateTime' } }, average: { client_side_validation: true, required: false, serialized_name: 'average', type: { name: 'Double' } }, minimum: { client_side_validation: true, required: false, serialized_name: 'minimum', type: { name: 'Double' } }, maximum: { client_side_validation: true, required: false, serialized_name: 'maximum', type: { name: 'Double' } }, total: { client_side_validation: true, required: false, serialized_name: 'total', type: { name: 'Double' } }, count: { client_side_validation: true, required: false, serialized_name: 'count', type: { name: 'Double' } } } } } end