class Azure::Cosmosdb::Mgmt::V2019_12_12::Models::Metric
Metric
data
Attributes
end_time[RW]
@return [DateTime] The end time for the metric (ISO-8601 format).
metric_values[RW]
@return [Array<MetricValue>] The metric values for the specified time window and timestep.
name[RW]
@return [MetricName] The name information for the metric.
start_time[RW]
@return [DateTime] The start time for the metric (ISO-8601 format).
time_grain[RW]
@return [String] The time grain to be used to summarize the metric values.
unit[RW]
@return [UnitType] The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
Public Class Methods
mapper()
click to toggle source
Mapper for Metric
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric.rb, line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Metric', type: { name: 'Composite', class_name: 'Metric', model_properties: { start_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'startTime', type: { name: 'DateTime' } }, end_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'endTime', type: { name: 'DateTime' } }, time_grain: { client_side_validation: true, required: false, read_only: true, serialized_name: 'timeGrain', type: { name: 'String' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'MetricName' } }, metric_values: { client_side_validation: true, required: false, read_only: true, serialized_name: 'metricValues', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricValueElementType', type: { name: 'Composite', class_name: 'MetricValue' } } } } } } } end