# 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::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # Represents server metrics.
    #
    class ServerUsage

      include MsRestAzure

      # @return [String] Name of the server usage metric.
      attr_accessor :name

      # @return [String] The name of the resource.
      attr_accessor :resource_name

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

      # @return [Float] The current value of the metric.
      attr_accessor :current_value

      # @return [Float] The current limit of the metric.
      attr_accessor :limit

      # @return [String] The units of the metric.
      attr_accessor :unit

      # @return [DateTime] The next reset time for the metric (ISO8601 format).
      attr_accessor :next_reset_time


      #
      # Mapper for ServerUsage class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServerUsage',
          type: {
            name: 'Composite',
            class_name: 'ServerUsage',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              resource_name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'resourceName',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'displayName',
                type: {
                  name: 'String'
                }
              },
              current_value: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'currentValue',
                type: {
                  name: 'Double'
                }
              },
              limit: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'limit',
                type: {
                  name: 'Double'
                }
              },
              unit: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'unit',
                type: {
                  name: 'String'
                }
              },
              next_reset_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'nextResetTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
