Class: Jamf::ManagementHistory::PolicyLog
- Includes:
- HashLike
- Defined in:
- lib/jamf/api/classic/api_objects/management_history/policy_log.rb
Overview
PolicyLog - A Computer policy log history entry
This should only be instantiated by the ManagementHistory.policy_logs method when mixed in to Computers.
That method will return an array of these objects.
Instance Attribute Summary collapse
-
#date_completed_epoch ⇒ Integer
readonly
a unix epoch timestamp with milliseconds.
-
#policy_id ⇒ Integer
(also: #id)
readonly
The jss id of the poolicy.
-
#policy_name ⇒ String
(also: #name)
readonly
The name of the policy.
-
#status ⇒ Symbol
readonly
:completed or :failed.
-
#username ⇒ String
readonly
The username active for the policy.
Instance Method Summary collapse
- #[](attr) ⇒ Object included from HashLike
-
#date_completed ⇒ Time
(also: #completed)
When the policy completed, as a ruby Time object.
-
#initialize(**args) ⇒ PolicyLog
constructor
A new instance of PolicyLog.
Constructor Details
#initialize(**args) ⇒ PolicyLog
Returns a new instance of PolicyLog.
48 49 50 51 52 |
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 48 def initialize(**args) # we want the status as a Symbol args[:status] &&= args[:status].downcase.to_sym super end |
Instance Attribute Details
#date_completed_epoch ⇒ Integer (readonly)
a unix epoch timestamp with milliseconds
|
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 67
|
#policy_id ⇒ Integer (readonly) Also known as: id
Returns the jss id of the poolicy.
57 |
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 57 alias id policy_id |
#policy_name ⇒ String (readonly) Also known as: name
Returns the name of the policy.
62 |
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 62 alias name policy_name |
#status ⇒ Symbol (readonly)
Returns :completed or :failed.
|
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 71
|
#username ⇒ String (readonly)
Returns The username active for the policy.
|
# File 'lib/jamf/api/classic/api_objects/management_history/policy_log.rb', line 64
|