class Azure::Web::Mgmt::V2020_09_01::Models::DiagnosticMetricSet
Class representing Diagnostic Metric information
Attributes
end_time[RW]
@return [DateTime] End time of the period
name[RW]
@return [String] Name of the metric
start_time[RW]
@return [DateTime] Start time of the period
time_grain[RW]
@return [String] Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D
unit[RW]
@return [String] Metric's unit
values[RW]
@return [Array<DiagnosticMetricSample>] Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}
Private Class Methods
mapper()
click to toggle source
Mapper for DiagnosticMetricSet
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-09-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb, line 41 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DiagnosticMetricSet', type: { name: 'Composite', class_name: 'DiagnosticMetricSet', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, start_time: { client_side_validation: true, required: false, serialized_name: 'startTime', type: { name: 'DateTime' } }, end_time: { client_side_validation: true, required: false, serialized_name: 'endTime', type: { name: 'DateTime' } }, time_grain: { client_side_validation: true, required: false, serialized_name: 'timeGrain', type: { name: 'String' } }, values: { client_side_validation: true, required: false, serialized_name: 'values', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DiagnosticMetricSampleElementType', type: { name: 'Composite', class_name: 'DiagnosticMetricSample' } } } } } } } end