# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Metadata for the metrics. # class ResourceMetricDefinition < ProxyOnlyResource include MsRestAzure include MsRest::JSONable # @return [ResourceMetricName] Name of the metric. attr_accessor :resource_metric_definition_name # @return [String] Unit of the metric. attr_accessor :unit # @return [String] Primary aggregation type. attr_accessor :primary_aggregation_type # @return [Array] List of time grains # supported for the metric together with retention period. attr_accessor :metric_availabilities # @return [String] Resource URI. attr_accessor :resource_uri # @return [String] Resource ID. attr_accessor :resource_metric_definition_id # @return [Hash{String => String}] Properties. attr_accessor :properties # # Mapper for ResourceMetricDefinition class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'ResourceMetricDefinition', type: { name: 'Composite', class_name: 'ResourceMetricDefinition', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, kind: { required: false, serialized_name: 'kind', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, resource_metric_definition_name: { required: false, read_only: true, serialized_name: 'properties.name', type: { name: 'Composite', class_name: 'ResourceMetricName' } }, unit: { required: false, read_only: true, serialized_name: 'properties.unit', type: { name: 'String' } }, primary_aggregation_type: { required: false, read_only: true, serialized_name: 'properties.primaryAggregationType', type: { name: 'String' } }, metric_availabilities: { required: false, read_only: true, serialized_name: 'properties.metricAvailabilities', type: { name: 'Sequence', element: { required: false, serialized_name: 'ResourceMetricAvailabilityElementType', type: { name: 'Composite', class_name: 'ResourceMetricAvailability' } } } }, resource_uri: { required: false, read_only: true, serialized_name: 'properties.resourceUri', type: { name: 'String' } }, resource_metric_definition_id: { required: false, read_only: true, serialized_name: 'properties.id', type: { name: 'String' } }, properties: { required: false, read_only: true, serialized_name: 'properties.properties', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end