Class: JSS::ManagementHistory::ComputerUsageLog

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

Overview

ComputerUsageEvent - an usage event in a Jamf Compter's Management History

This should only be instantiated by the ManagementHistory.usage_logs method when mixed in to Computers 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)

Returns When the event occured on the server, as a unix epoch timestamp with milliseconds

Returns:

  • (Integer)

    When the event occured on the server, as a unix epoch timestamp with milliseconds


# File 'lib/jss/api_object/management_history/computer_usage_log.rb', line 30

#eventString (readonly) Also known as: description

Returns The description of the event.

Returns:

  • (String)

    The description of the event.


25
# File 'lib/jss/api_object/management_history/computer_usage_log.rb', line 25

alias description event

#usernameString (readonly)

Returns The name of the JSS user who caused the event

Returns:

  • (String)

    The name of the JSS user who caused the event


# File 'lib/jss/api_object/management_history/computer_usage_log.rb', line 27

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


36
37
38
# File 'lib/jss/api_object/management_history/computer_usage_log.rb', line 36

def date_time
  JSS.epoch_to_time @date_time_epoch if @date_time_epoch
end