lib/jss/api_object/management_history.rb
def policy_logs(ident, api: JSS.api)
        raise JSS::UnsupportedError, 'Only computers have policy logs' unless self == JSS::Computer
        hist = management_history(ident, :policy_logs, api: api)
        hist.map! { |evt| JSS::ManagementHistory::PolicyLog.new evt }
      end
# The history of policy execution 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::PolicyLog>] An array of PolicyLog events
#
The history of policy execution for a computer
The history of policy execution for a computer
def policy_logs(ident, api: JSS.api)
        raise JSS::UnsupportedError, 'Only computers have policy logs' unless self == JSS::Computer
        hist = management_history(ident, :policy_logs, api: api)
        hist.map! { |evt| JSS::ManagementHistory::PolicyLog.new evt }
      end
def policy_logs ( ident , api : JSS . api ) raise JSS :: UnsupportedError , 'Only computers have policy logs' unless self == JSS :: Computer hist = management_history ( ident , :policy_logs , api : api ) hist . map! { | evt | JSS :: ManagementHistory :: PolicyLog . new evt } end
The history of policy execution for a computer
The history of policy execution for a computer
An array of PolicyLog events
An array of PolicyLog events
Array<JSS::ManagementHistory::PolicyLog>
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