Sha256: c4c6dbbb7c0e69fc8c4c1dec4a70d56226857233c64b0e2db1e235d3cced3f5c

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

#
module JSS

  #
  module ManagementHistory

    # AuditEvent - an auditiable event in a Jamf Object's Management History
    #
    # This should only be instantiated by the ManagementHistory.audits method
    # when mixed in to Computers or Mobile devices.
    #
    # That method will return an array of these objects.
    #
    class AuditEvent < ImmutableStruct.new(

      :event,
      :username,
      :date_time_epoch
    )

      # @!attribute [r] event
      #  @return [String] The description of the event.

      alias description event

      # @!attribute [r] username
      #  @return [String] The name of the JSS user who caused the event

      alias admin username

      # @!attribute [r] date_time_epoch
      #  @return [Integer] When the event occured on the server, as
      #    a unix epoch timestamp with milliseconds

      #  @return [Time] When the event occured on the server, as a ruby Time object
      #
      def date_time
        JSS.epoch_to_time @date_time_epoch if @date_time_epoch
      end

    end # AuditEvent

  end #   module ManagementHistory

end # module JSS

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-jss-0.11.0a5 lib/jss/api_object/management_history/audit_event.rb