# 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::StorSimple8000Series::Mgmt::V2017_06_01
  module Models
    #
    # The metric data.
    #
    class MetricData

      include MsRestAzure

      # @return [DateTime] The time stamp of the metric data.
      attr_accessor :time_stamp

      # @return [Float] The sum of all samples at the time stamp.
      attr_accessor :sum

      # @return [Integer] The count of all samples at the time stamp.
      attr_accessor :count

      # @return [Float] The average of all samples at the time stamp.
      attr_accessor :average

      # @return [Float] The minimum of all samples at the time stamp.
      attr_accessor :minimum

      # @return [Float] The maximum of all samples at the time stamp.
      attr_accessor :maximum


      #
      # Mapper for MetricData class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MetricData',
          type: {
            name: 'Composite',
            class_name: 'MetricData',
            model_properties: {
              time_stamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'timeStamp',
                type: {
                  name: 'DateTime'
                }
              },
              sum: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sum',
                type: {
                  name: 'Double'
                }
              },
              count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'count',
                type: {
                  name: 'Number'
                }
              },
              average: {
                client_side_validation: true,
                required: false,
                serialized_name: 'average',
                type: {
                  name: 'Double'
                }
              },
              minimum: {
                client_side_validation: true,
                required: false,
                serialized_name: 'minimum',
                type: {
                  name: 'Double'
                }
              },
              maximum: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maximum',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
