Skip to main content

push_machine_batch

Function push_machine_batch 

Source
pub fn push_machine_batch(
    conn: &Connection,
    sync_dir: &Path,
    machine_id: &str,
    since_rowid: i64,
    dry_run: bool,
) -> KimetsuResult<ExportSummary>
Expand description

Write this machine’s new events as a JSONL batch under <sync_dir>/<machine_id>/<cursor>.jsonl (atomic write).

Returns the number of events written and the new export cursor.