pub struct LocalFsArchive { /* private fields */ }Expand description
Local-filesystem archive. Copies events to
<root>/<tenant>/<yyyy-mm>/archive-<from>-<to>.parquet using the
same atomic-write primitive as live storage.
Best fit: a separate, cheaper, possibly larger volume than the hot path uses. NOT a replacement for off-site backup — same datacenter failure modes apply. For multi-region durability, use an object-store backend.
Implementations§
Trait Implementations§
Source§impl ArchiveTarget for LocalFsArchive
impl ArchiveTarget for LocalFsArchive
Source§fn archive(
&self,
tenant_id: &str,
from: DateTime<Utc>,
to: DateTime<Utc>,
events: &[Event],
) -> Result<()>
fn archive( &self, tenant_id: &str, from: DateTime<Utc>, to: DateTime<Utc>, events: &[Event], ) -> Result<()>
Archive a batch of events scoped to
tenant_id and the time
window [from, to]. Returns Ok(()) only if the data is
durably persisted in the target.Source§fn description(&self) -> String
fn description(&self) -> String
Human-readable description of the backend, for logging.
Defaults to the
Debug representation.Auto Trait Implementations§
impl Freeze for LocalFsArchive
impl RefUnwindSafe for LocalFsArchive
impl Send for LocalFsArchive
impl Sync for LocalFsArchive
impl Unpin for LocalFsArchive
impl UnsafeUnpin for LocalFsArchive
impl UnwindSafe for LocalFsArchive
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