pub trait ClientSystemAuditLogExt {
// Required method
fn audit_log_list(&self) -> AuditLogList<'_>;
}
Expand description
These endpoints relate to audit logs.
Required Methods§
Sourcefn audit_log_list(&self) -> AuditLogList<'_>
fn audit_log_list(&self) -> AuditLogList<'_>
View audit log
A single item in the audit log represents both the beginning and end of
the logged operation (represented by time_started
and
time_completed
) so that clients do not have to find multiple entries
and match them up by request ID to get the full picture of an operation.
Because timestamps may not be unique, entries have also have a unique
id
that can be used to deduplicate items fetched from overlapping time
intervals.
Audit log entries are designed to be immutable: once you see an entry,
fetching it again will never get you a different result. The list is
ordered by time_completed
, not time_started
. If you fetch the audit
log for a time range that is fully in the past, the resulting list is
guaranteed to be complete, i.e., fetching the same timespan again later
will always produce the same set of entries.
Sends a GET
request to /v1/system/audit-log
Arguments:
end_time
: Exclusivelimit
: Maximum number of items returned by a single callpage_token
: Token returned by previous call to retrieve the subsequent pagesort_by
start_time
: Required, inclusive
let response = client.audit_log_list()
.end_time(end_time)
.limit(limit)
.page_token(page_token)
.sort_by(sort_by)
.start_time(start_time)
.send()
.await;