class Jamf::ManagementHistory::MdmCommand
MdmCommand
- an issued MDM
command in a Jamf
Object’s Management History
This should only be instantiated by the ManagementHistory.mdm_commands method when mixed in to Computers or Mobile devices.
That method will return an array of these objects.
NOTE: some attributes will be nil for some statuses (e.g. no error message if not failed, no completed time if not completed)
Public Class Methods
new(**args)
click to toggle source
Calls superclass method
# File lib/jamf/api/classic/api_objects/management_history/mdm_command.rb 54 def initialize(**args) 55 args[:completed_epoch] ||= args[:date_time_completed_epoch] 56 args[:issued_epoch] ||= args[:date_time_issued_epoch] 57 args[:failed_epoch] ||= args[:date_time_failed_epoch] 58 super 59 end
Public Instance Methods
completed()
click to toggle source
@return [Time] When the command completed, as a ruby
Time object
# File lib/jamf/api/classic/api_objects/management_history/mdm_command.rb 106 def completed 107 JSS.epoch_to_time @completed_epoch if @completed_epoch 108 end
failed()
click to toggle source
@return [Time] When the command failed, as a ruby
Time object
# File lib/jamf/api/classic/api_objects/management_history/mdm_command.rb 99 def failed 100 JSS.epoch_to_time @failed_epoch if @failed_epoch 101 end
issued()
click to toggle source
@return [Time] When the command was issued, as a ruby
Time object
# File lib/jamf/api/classic/api_objects/management_history/mdm_command.rb 92 def issued 93 JSS.epoch_to_time @issued_epoch if @issued_epoch 94 end
last_push()
click to toggle source
@return [Time] When the most recent attempt was made on a pending
command, as a ruby Time object
# File lib/jamf/api/classic/api_objects/management_history/mdm_command.rb 113 def last_push 114 JSS.epoch_to_time @last_push_epoch if @last_push_epoch 115 end