Skip to content

Latest commit

 

History

History
91 lines (45 loc) · 1.61 KB

core.client.listdecisionlogentries.md

File metadata and controls

91 lines (45 loc) · 1.61 KB

Home > @cerbos/core > Client > listDecisionLogEntries

Client.listDecisionLogEntries() method

List decision log entries from the policy decision point server's audit log.

Signature:

listDecisionLogEntries(request: ListDecisionLogEntriesRequest, options?: RequestOptions): AsyncGenerator<DecisionLogEntry, void, undefined>;

Parameters

Parameter

Type

Description

request

ListDecisionLogEntriesRequest

options

RequestOptions

(Optional)

Returns:

AsyncGenerator<DecisionLogEntry, void, undefined>

Remarks

Requires

Example

for await (const entry of cerbos.listDecisionLogEntries({ filter: { tail: 5 } })) {
  console.log(entry);
}