class PlatformAPI::AuditTrailEvent

An audit trail event represents some action on the platform

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 1513
def initialize(client)
  @client = client
end

Public Instance Methods

list(enterprise_account_id) click to toggle source

List existing events. Returns all events for one date, defaulting to current date. Order, actor, action, and type, and date query params can be specified as query parameters. For example, '/enterprise-accounts/:id/events?order=desc&actor=user@example.com&action=create&type=app&date=2020-09-30' would return events in descending order and only return app created events by the user with user@example.com email address.

@param enterprise_account_id: unique identifier of the enterprise account

# File lib/platform-api/client.rb, line 1520
def list(enterprise_account_id)
  @client.audit_trail_event.list(enterprise_account_id)
end