Class: JSS::ManagementHistory::AuditEvent
- 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
-
#date_time_epoch ⇒ Integer
readonly
When the event occured on the server, as a unix epoch timestamp with milliseconds.
-
#event ⇒ String
(also: #description)
readonly
The description of the event.
-
#username ⇒ String
(also: #admin)
readonly
The name of the JSS user who caused the event.
Instance Method Summary collapse
- #[](attr) ⇒ Object included from HashLike
-
#date_time ⇒ Object
@return [Time] When the event occured on the server, as a ruby Time object.
Instance Attribute Details
#date_time_epoch ⇒ Integer (readonly)
Returns When the event occured on the server, as a unix epoch timestamp with milliseconds.
|
# File 'lib/jss/api_object/management_history/audit_event.rb', line 32
|
#event ⇒ String (readonly) Also known as: description
Returns The description of the event.
25 |
# File 'lib/jss/api_object/management_history/audit_event.rb', line 25 alias description event |
#username ⇒ String (readonly) Also known as: admin
Returns The name of the JSS user who caused the event.
30 |
# File 'lib/jss/api_object/management_history/audit_event.rb', line 30 alias admin username |
Instance Method Details
#date_time ⇒ Object
@return [Time] When the event occured on the server, as a ruby Time object
38 39 40 |
# File 'lib/jss/api_object/management_history/audit_event.rb', line 38 def date_time JSS.epoch_to_time @date_time_epoch if @date_time_epoch end |