OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::rec::ContinuousStats

What a running -- or stopped -- continuous recording has done.

Public attributes

segments_written

uint64_t segments_written = 0

Segments closed and catalogued by this run.

segments_pruned

uint64_t segments_pruned = 0

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

bytes_pruned

uint64_t bytes_pruned = 0

Bytes those deletions reclaimed.

segments_adopted

uint64_t segments_adopted = 0

Segments this run adopted from an earlier one at Create().

Not deleted silently and not ignored: they are part of the timeline, they count against the retention policy, and a clip can be cut from them. Reported because an application that did not expect them is an application whose disk budget is being spent by a run it has forgotten about.

bytes_on_disk

uint64_t bytes_on_disk = 0

What the catalogued segments occupy, the open one excluded.

depth

std::chrono::milliseconds depth {0}

The span the history actually covers, oldest frame to newest, and zero when it holds nothing yet. The honest number: a history cut by a full disk reports what it has, not what was asked for.

free_bytes

uint64_t free_bytes = 0

Free space on the volume at the last check.

last_prune_reason

PruneReason last_prune_reason = PruneReason::kNone

Why the last prune happened.

retention_shortened

uint64_t retention_shortened = 0

How many times the retention window could not be honoured -- see RecordingPhase::kRetentionShortened. Counted per episode, not per segment.

recording

bool recording = false

Whether frames are still being written. False after Stop(), and after a DiskFullAction that stopped the recording.

frames

RecordingStats frames

What the segment writer and the pruner between them did with the frames. See RecordingStats.

last_error

std::string last_error

The most recent failure, or empty. A full disk, a deletion that was refused, a segment that could not be opened.