get_audit_logs | R Documentation |
Get Audit Logs from Posit Connect Server
get_audit_logs(src, limit = 20L, previous = NULL, nxt = NULL, asc_order = TRUE)
src |
The source object |
limit |
The number of records to return. |
previous |
Retrieve the previous page of Shiny application usage logs relative to the provided value. This value corresponds to an internal reference within the server and should be sourced from the appropriate attribute within the paging object of a previous response. |
nxt |
Retrieve the next page of Shiny application usage logs relative to the provided value. This value corresponds to an internal reference within the server and should be sourced from the appropriate attribute within the paging object of a previous response. |
asc_order |
Defaults to TRUE; Determines if the response records should be listed in ascending or descending order within the response. Ordering is by the started timestamp field. |
Please see https://docs.posit.co/connect/api/#getAuditLogs for more information
A tibble with the following columns:
idID of the audit action
timeTimestamp in RFC3339 format when action was taken
user_idUser ID of the actor who made the audit action
user_descriptionDescription of the actor
actionAudit action taken
event_descriptionDescription of action
## Not run: library(connectapi) client <- connect() # get the last 20 audit logs get_audit_logs(client, limit = 20, asc_order = FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.