Class: JSS::ManagementHistory::AuditEvent

Inherits:
Object
  • Object
show all
Includes:
HashLike
Defined in:
lib/jss/api_object/management_history/audit_event.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#date_time_epochInteger (readonly)



# File 'lib/jss/api_object/management_history/audit_event.rb', line 56


#eventString (readonly) Also known as: description



49
# File 'lib/jss/api_object/management_history/audit_event.rb', line 49

alias description event

#usernameString (readonly) Also known as: admin



54
# File 'lib/jss/api_object/management_history/audit_event.rb', line 54

alias admin username

Instance Method Details

#[](attr) ⇒ Object Originally defined in module HashLike

#date_timeObject

@return [Time] When the event occured on the server, as a ruby Time object



62
63
64
# File 'lib/jss/api_object/management_history/audit_event.rb', line 62

def date_time
  JSS.epoch_to_time @date_time_epoch if @date_time_epoch
end