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