lib/jss/api_object/management_history.rb
# The history of Casper Remote events for a computer
#
# @param ident [Type] The identifier for the object - id, name, sn, udid, etc.
#
# @param api [JSS::APIConnection] The API connection to use for the query
#   defaults to the currently active connection
#
# @return [Array<JSS::ManagementHistory::CasperRemoteLog>] An array of CasperRemoteLog events
#
The history of Casper Remote events for a computer
The history of Casper Remote events for a computer
def casper_remote_logs(ident, api: JSS.api)
        raise JSS::UnsupportedError, 'Only computers have casper remote logs' unless self == JSS::Computer
        hist = management_history(ident, :casper_remote_logs, api: api)
        hist.map! { |evt| JSS::ManagementHistory::CasperRemoteLog.new evt }
      end
def casper_remote_logs ( ident , api : JSS . api ) raise JSS :: UnsupportedError , 'Only computers have casper remote logs' unless self == JSS :: Computer hist = management_history ( ident , :casper_remote_logs , api : api ) hist . map! { | evt | JSS :: ManagementHistory :: CasperRemoteLog . new evt } end
The history of Casper Remote events for a computer
The history of Casper Remote events for a computer
An array of CasperRemoteLog events
An array of CasperRemoteLog events
Array<JSS::ManagementHistory::CasperRemoteLog>
ident
The identifier for the object - id, name, sn, udid, etc.
The identifier for the object - id name sn udid etc .
api
The API connection to use for the query defaults to the currently active connection
The API connection to use for the query defaults to the currently active connection
the currently active connection