# 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::Network::Mgmt::V2018_08_01 module Models # # Description of metrics specification. # class MetricSpecification include MsRestAzure # @return [String] The name of the metric. attr_accessor :name # @return [String] The display name of the metric. attr_accessor :display_name # @return [String] The description of the metric. attr_accessor :display_description # @return [String] Units the metric to be displayed in. attr_accessor :unit # @return [String] The aggregation type. attr_accessor :aggregation_type # @return [Array] List of availability. attr_accessor :availabilities # @return [Boolean] Whether regional MDM account enabled. attr_accessor :enable_regional_mdm_account # @return [Boolean] Whether gaps would be filled with zeros. attr_accessor :fill_gap_with_zero # @return [String] Pattern for the filter of the metric. attr_accessor :metric_filter_pattern # @return [Array] List of dimensions. attr_accessor :dimensions # @return [Boolean] Whether the metric is internal. attr_accessor :is_internal # @return [String] The source MDM account. attr_accessor :source_mdm_account # @return [String] The source MDM namespace. attr_accessor :source_mdm_namespace # @return [String] The resource Id dimension name override. attr_accessor :resource_id_dimension_name_override # # Mapper for MetricSpecification class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricSpecification', type: { name: 'Composite', class_name: 'MetricSpecification', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, display_name: { client_side_validation: true, required: false, serialized_name: 'displayName', type: { name: 'String' } }, display_description: { client_side_validation: true, required: false, serialized_name: 'displayDescription', type: { name: 'String' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, aggregation_type: { client_side_validation: true, required: false, serialized_name: 'aggregationType', type: { name: 'String' } }, availabilities: { client_side_validation: true, required: false, serialized_name: 'availabilities', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AvailabilityElementType', type: { name: 'Composite', class_name: 'Availability' } } } }, enable_regional_mdm_account: { client_side_validation: true, required: false, serialized_name: 'enableRegionalMdmAccount', type: { name: 'Boolean' } }, fill_gap_with_zero: { client_side_validation: true, required: false, serialized_name: 'fillGapWithZero', type: { name: 'Boolean' } }, metric_filter_pattern: { client_side_validation: true, required: false, serialized_name: 'metricFilterPattern', type: { name: 'String' } }, dimensions: { client_side_validation: true, required: false, serialized_name: 'dimensions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DimensionElementType', type: { name: 'Composite', class_name: 'Dimension' } } } }, is_internal: { client_side_validation: true, required: false, serialized_name: 'isInternal', type: { name: 'Boolean' } }, source_mdm_account: { client_side_validation: true, required: false, serialized_name: 'sourceMdmAccount', type: { name: 'String' } }, source_mdm_namespace: { client_side_validation: true, required: false, serialized_name: 'sourceMdmNamespace', type: { name: 'String' } }, resource_id_dimension_name_override: { client_side_validation: true, required: false, serialized_name: 'resourceIdDimensionNameOverride', type: { name: 'String' } } } } } end end end end