OptrisOptrisDocumentation

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

optris::sdk::ActionDropCounts

How many action reports a source has lost, and how many actions.

Read with RuleEngine::GetActionDropCounts(). The per-action reports, ActionError and ActionCompleted (including ActionOutcome::kDroppedQueueFull), are best effort: a chattering alarm in front of a slow handler can outrun the bounded list of reports waiting to be delivered, and past it a report is lost. These two counts are exact, so an application can say "N reports were lost" rather than leave rows silently without an outcome.

Over the life of the camera, Player or StillSource, across reconnects.

Public attributes

actions_dropped

uint64_t actions_dropped = 0

Actions discarded from a full action queue. Each one is also reported as ActionOutcome::kDroppedQueueFull, unless that report is itself among the lost ones counted below.

reports_dropped

uint64_t reports_dropped = 0

ActionError and ActionCompleted reports that were lost because too many were already waiting for the application to take them.