Class: Telnyx::Resources::AuditEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/audit_events.rb

Overview

Audit log operations.

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ AuditEvents

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AuditEvents.

Parameters:



44
45
46
# File 'lib/telnyx/resources/audit_events.rb', line 44

def initialize(client:)
  @client = client
end

Instance Method Details

#list(filter: nil, page_number: nil, page_size: nil, sort: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::AuditEventListResponse>

Some parameter documentations has been truncated, see Models::AuditEventListParams for more details.

Retrieve a list of audit log entries. Audit logs are a best-effort, eventually consistent record of significant account-related changes.

Parameters:

Returns:

See Also:



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/telnyx/resources/audit_events.rb', line 28

def list(params = {})
  parsed, options = Telnyx::AuditEventListParams.dump_request(params)
  query = Telnyx::Internal::Util.encode_query_params(parsed)
  @client.request(
    method: :get,
    path: "audit_events",
    query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
    page: Telnyx::Internal::DefaultFlatPagination,
    model: Telnyx::Models::AuditEventListResponse,
    options: options
  )
end