Class: ReactorSDK::Endpoints::AuditEvents
- Inherits:
-
BaseEndpoint
- Object
- BaseEndpoint
- ReactorSDK::Endpoints::AuditEvents
- Defined in:
- lib/reactor_sdk/endpoints/audit_events.rb
Instance Method Summary collapse
-
#find(audit_event_id) ⇒ ReactorSDK::Resources::AuditEvent
Retrieves a single audit event by its Adobe ID.
-
#list(since: nil, updated_at: nil, type_of: nil) ⇒ Array<ReactorSDK::Resources::AuditEvent>
Lists audit events from Adobe’s current global audit events endpoint.
-
#list_for_property(_property_id, since: nil) ⇒ Array<ReactorSDK::Resources::AuditEvent>
Backward-compatible wrapper for older SDK integrations.
Methods inherited from BaseEndpoint
Constructor Details
This class inherits a constructor from ReactorSDK::Endpoints::BaseEndpoint
Instance Method Details
#find(audit_event_id) ⇒ ReactorSDK::Resources::AuditEvent
Retrieves a single audit event by its Adobe ID.
59 60 61 |
# File 'lib/reactor_sdk/endpoints/audit_events.rb', line 59 def find(audit_event_id) fetch_resource("/audit_events/#{audit_event_id}", Resources::AuditEvent) end |
#list(since: nil, updated_at: nil, type_of: nil) ⇒ Array<ReactorSDK::Resources::AuditEvent>
Lists audit events from Adobe’s current global audit events endpoint. Follows pagination automatically — returns all events.
28 29 30 31 32 33 34 35 |
# File 'lib/reactor_sdk/endpoints/audit_events.rb', line 28 def list(since: nil, updated_at: nil, type_of: nil) params = {} params['created_at'] = "GT #{since}" if since params['updated_at'] = updated_at if updated_at params['type_of'] = type_of if type_of list_resources('/audit_events', Resources::AuditEvent, params: params) end |
#list_for_property(_property_id, since: nil) ⇒ Array<ReactorSDK::Resources::AuditEvent>
Backward-compatible wrapper for older SDK integrations.
Adobe’s current official Reactor OpenAPI documents only the global ‘/audit_events` listing endpoint, so property scoping is no longer performed through the request path.
48 49 50 |
# File 'lib/reactor_sdk/endpoints/audit_events.rb', line 48 def list_for_property(_property_id, since: nil) list(since: since) end |