# 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::ContainerRegistry::Mgmt::V2019_05_01
  module Models
    #
    # The definition of Azure Monitoring metric.
    #
    class OperationMetricSpecificationDefinition

      include MsRestAzure

      # @return [String] Metric name.
      attr_accessor :name

      # @return [String] Metric display name.
      attr_accessor :display_name

      # @return [String] Metric description.
      attr_accessor :display_description

      # @return [String] Metric unit.
      attr_accessor :unit

      # @return [String] Metric aggregation type.
      attr_accessor :aggregation_type

      # @return [String] Internal metric name.
      attr_accessor :internal_metric_name


      #
      # Mapper for OperationMetricSpecificationDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OperationMetricSpecificationDefinition',
          type: {
            name: 'Composite',
            class_name: 'OperationMetricSpecificationDefinition',
            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'
                }
              },
              internal_metric_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'internalMetricName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
