Class: ReactorSDK::Endpoints::AuditEvents

Inherits:
BaseEndpoint show all
Defined in:
lib/reactor_sdk/endpoints/audit_events.rb

Instance Method Summary collapse

Methods inherited from BaseEndpoint

#initialize

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.

Parameters:

  • audit_event_id (String)

    Adobe audit event ID

Returns:

Raises:



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.

Parameters:

  • since (String, nil) (defaults to: nil)

    ISO8601 timestamp — only return events after this time

  • updated_at (String, nil) (defaults to: nil)

    Optional updated_at filter

  • type_of (String, nil) (defaults to: nil)

    Optional event type filter

Returns:



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.

Parameters:

  • _property_id (String)
  • since (String, nil) (defaults to: nil)

Returns:



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