# 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::Security::Mgmt::V2019_08_01
  module Models
    #
    # Model object.
    #
    #
    class IoTSecurityAggregatedAlertPropertiesTopDevicesListItem

      include MsRestAzure

      # @return [String] Name of the device.
      attr_accessor :device_id

      # @return [Integer] Number of alerts raised for this device.
      attr_accessor :alerts_count

      # @return [String] Most recent time this alert was raised for this
      # device, on this day.
      attr_accessor :last_occurrence


      #
      # Mapper for IoTSecurityAggregatedAlertPropertiesTopDevicesListItem class
      # as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IoTSecurityAggregatedAlertProperties_topDevicesListItem',
          type: {
            name: 'Composite',
            class_name: 'IoTSecurityAggregatedAlertPropertiesTopDevicesListItem',
            model_properties: {
              device_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'deviceId',
                type: {
                  name: 'String'
                }
              },
              alerts_count: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'alertsCount',
                type: {
                  name: 'Number'
                }
              },
              last_occurrence: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'lastOccurrence',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
