Class: Conversant::V3::Services::CDN::Audit
- Inherits:
-
Object
- Object
- Conversant::V3::Services::CDN::Audit
- Defined in:
- lib/conversant/v3/services/cdn/audit.rb
Overview
Audit service for CDN activity logging
Provides access to audit logs and compliance tracking for CDN configuration changes and administrative actions.
Instance Attribute Summary collapse
-
#parent ⇒ CDN
readonly
The parent CDN service instance.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Audit
constructor
Initialize audit service.
-
#list(payload) ⇒ Array
Get audit log entries.
Constructor Details
#initialize(parent) ⇒ Audit
Initialize audit service
34 35 36 |
# File 'lib/conversant/v3/services/cdn/audit.rb', line 34 def initialize(parent) @parent = parent end |
Instance Attribute Details
#parent ⇒ CDN (readonly)
Returns the parent CDN service instance.
29 30 31 |
# File 'lib/conversant/v3/services/cdn/audit.rb', line 29 def parent @parent end |
Instance Method Details
#list(payload) ⇒ Array
Get audit log entries
60 61 62 63 64 65 66 |
# File 'lib/conversant/v3/services/cdn/audit.rb', line 60 def list(payload) response = JSON.parse(@parent.send(:call, 'POST', '/api/audit_list', payload)) response&.[]('list') || [] rescue StandardError => e @parent.send(:logger).error "#{@parent.send(:identifier)}.METHOD:#{__method__}.EXCEPTION:#{e.message}" [] end |