# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Object representing a metric for any resource # class ResourceMetric include MsRestAzure # @return [ResourceMetricName] Name of metric attr_accessor :name # @return [String] Metric unit attr_accessor :unit # @return [String] Metric granularity. E.g PT1H, PT5M, P1D attr_accessor :time_grain # @return [DateTime] Metric start time attr_accessor :start_time # @return [DateTime] Metric end time attr_accessor :end_time # @return [String] Metric resource Id attr_accessor :resource_id # @return [Array] Metric values attr_accessor :metric_values # @return [Array] Properties attr_accessor :properties # # Mapper for ResourceMetric class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'ResourceMetric', type: { name: 'Composite', class_name: 'ResourceMetric', model_properties: { name: { required: false, serialized_name: 'name', type: { name: 'Composite', class_name: 'ResourceMetricName' } }, unit: { required: false, serialized_name: 'unit', type: { name: 'String' } }, time_grain: { required: false, serialized_name: 'timeGrain', type: { name: 'String' } }, start_time: { required: false, serialized_name: 'startTime', type: { name: 'DateTime' } }, end_time: { required: false, serialized_name: 'endTime', type: { name: 'DateTime' } }, resource_id: { required: false, serialized_name: 'resourceId', type: { name: 'String' } }, metric_values: { required: false, serialized_name: 'metricValues', type: { name: 'Sequence', element: { required: false, serialized_name: 'ResourceMetricValueElementType', type: { name: 'Composite', class_name: 'ResourceMetricValue' } } } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Sequence', element: { required: false, serialized_name: 'KeyValuePairStringStringElementType', type: { name: 'Composite', class_name: 'KeyValuePairStringString' } } } } } } } end end end end