OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

ContinuousStats

pub struct ContinuousStats

What a running continuous recording has done.

Read it before you stop

Measured, not assumed: Camera::stop_continuous resets every counter here to zero, and Camera::continuous_timeline to empty. The files stay on disk; the bookkeeping does not. So a summary shown after a history finishes has to be taken from a reading made while it was still running -- and a check that reads these after the stop measures nothing and passes.

ContinuousStats — fields

last_prune_reason: PruneReason

Why the last prune happened.

segments_written: u64

Segments closed and catalogued by this run.

segments_pruned: u64

Segments deleted by the pruner, including ones adopted from an earlier run.

bytes_pruned: u64

Bytes those deletions reclaimed.

segments_adopted: u64

Segments this run adopted from an earlier one when it opened.

Reported rather than ignored: an application that did not expect them is one whose disk budget is being spent by a run it has forgotten about.

bytes_on_disk: u64

What the catalogued segments occupy, the open one excluded. The number to show an operator.

depth_ms: u64

The span the history actually covers, in milliseconds. The honest number: a history cut short by a full disk reports what it has, not what was asked for.

free_bytes: u64

Free space on the volume at the last check.

retention_shortened: u64

How many times the retention window could not be honoured. Counted per episode, not per segment.

frames_written: u64

Frames the history has encoded.

Not the same number as crate::RecordingStats reports: that one answers for a take, and a take and a history count different frames: both run at once when an operator records alongside the history.

frames_write_error: u64

Frames the history lost to a write or encode failure.

frames_bytes_written: u64

The size of the history's files, as the muxer reports it.

Differs from ContinuousStats::bytes_on_disk in what it counts, not in how current it is: this one counts every segment this history has ever written, including the ones retention has since deleted, and so only ever grows.

recording: bool

Whether frames are still being written.

last_error: String

The most recent failure, or empty.