pub struct LogsResource { /* private fields */ }Expand description
Logs — the request audit log (/api/v2/audit/request) and the live log (/api/v2/logs).
Implementations§
Source§impl LogsResource
impl LogsResource
Sourcepub async fn audit_all(&self) -> Result<Vec<AuditLog>, ManagerError>
pub async fn audit_all(&self) -> Result<Vec<AuditLog>, ManagerError>
Collect every audit-log entry across pages.
Sourcepub async fn live(&self) -> Result<Vec<LiveLog>, ManagerError>
pub async fn live(&self) -> Result<Vec<LiveLog>, ManagerError>
Read the live log.
Sourcepub async fn enable_live(
&self,
) -> Result<DefaultV2MessageResponse, ManagerError>
pub async fn enable_live( &self, ) -> Result<DefaultV2MessageResponse, ManagerError>
Enable live logging.
Sourcepub async fn disable_live(
&self,
) -> Result<DefaultV2MessageResponse, ManagerError>
pub async fn disable_live( &self, ) -> Result<DefaultV2MessageResponse, ManagerError>
Disable live logging.
Sourcepub async fn write(
&self,
body: WriteLogRequest,
) -> Result<GenericItemResponse, ManagerError>
pub async fn write( &self, body: WriteLogRequest, ) -> Result<GenericItemResponse, ManagerError>
Write a single entry to the live log.
Auto Trait Implementations§
impl !RefUnwindSafe for LogsResource
impl !UnwindSafe for LogsResource
impl Freeze for LogsResource
impl Send for LogsResource
impl Sync for LogsResource
impl Unpin for LogsResource
impl UnsafeUnpin for LogsResource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more