Method: Jamf::Computer#flush_policy_logs
- Defined in:
- lib/jamf/api/classic/api_objects/computer.rb
#flush_policy_logs(older_than: 0, period: :days) ⇒ Object
Flush all policy logs for this computer older than a given time period.
IMPORTANT: from the Jamf Developer Site:
The ability to flush logs is currently only supported for flushing all logs
for a given policy or all logs for a given computer. There is no support for
flushing logs for a given policy and computer combination.
With no parameters, will flush all logs for the computer
NOTE: Currently the API doesn’t have a way to flush only failed policies.
1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'lib/jamf/api/classic/api_objects/computer.rb', line 1220 def flush_policy_logs(older_than: 0, period: :days) Jamf::Policy.flush_logs_for_computers( [@id], older_than: older_than, period: period, cnx: @cnx ) end |