OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

SessionSourceStatistics

public sealed record SessionSourceStatistics : IEquatable<SessionSourceStatistics>

What one source of a running, or just-finished, session did.

SessionSourceStatistics: constructors

public SessionSourceStatistics(ulong FramesWritten, ulong FramesDimensionMismatch, ulong FramesWriteError, ulong FramesDroppedBacklog, ulong FramesPtsRepaired, ulong FramesFromOwnStamp, TimeSpan FirstFrame, TimeSpan LastFrame, TimeSpan MaxGap, ulong Outages, TimeSpan OutageTotal, string LastError)

What one source of a running, or just-finished, session did.

  • FramesWritten: Frames the session has taken into the file for this source. As for RecordingStatistics.FramesWritten: a frame counts here once the container has accepted it, which is a moment before its bytes are necessarily on the disk. Stopping the session is what makes the file complete.
  • FramesDimensionMismatch: Frames refused because they were not the size the source was declared with. Every one is a frame missing from the file.
  • FramesWriteError: Frames lost to a write or encode failure.
  • FramesDroppedBacklog: Frames refused because the hand-over queue was full under SessionBacklogPolicy.DropNewest.
  • FramesPtsRepaired: Frames whose session stamp did not advance past the previous one's. Each is written at the millisecond after the previous frame's, because a recording keeps whole milliseconds; a frame that advanced by less than a millisecond is moved the same way and is not counted. A large count means the clock has resolution the session cannot use.
  • FramesFromOwnStamp: Frames whose session time came from the frame's own arrival stamp. Always zero under SessionTimestampSource.Handover.
  • FirstFrame: Session time of this source's first frame, from the start of the session. TimeSpan.Zero before its first frame.
  • LastFrame: Session time of its most recent frame.
  • MaxGap: The longest run of session time this source went without delivering a frame, after its first.
  • Outages: How many times this source was reported lost, whether or not the camera came back.
  • OutageTotal: Total session time spent disconnected. An outage still open when the session stopped counts up to the moment it stopped. Not the same as MaxGap, which is the largest hole whatever caused it: a busy disk, a shutter cycle, a camera that was idle. This is only the time somebody said the camera was gone.
  • LastError: The most recent write failure for this source, or an empty string.

SessionSourceStatistics: properties

public TimeSpan FirstFrame { get; init; }

Session time of this source's first frame, from the start of the session. TimeSpan.Zero before its first frame.

public ulong FramesDimensionMismatch { get; init; }

Frames refused because they were not the size the source was declared with. Every one is a frame missing from the file.

public ulong FramesDroppedBacklog { get; init; }

Frames refused because the hand-over queue was full under SessionBacklogPolicy.DropNewest.

public ulong FramesFromOwnStamp { get; init; }

Frames whose session time came from the frame's own arrival stamp. Always zero under SessionTimestampSource.Handover.

public ulong FramesPtsRepaired { get; init; }

Frames whose session stamp did not advance past the previous one's. Each is written at the millisecond after the previous frame's, because a recording keeps whole milliseconds; a frame that advanced by less than a millisecond is moved the same way and is not counted. A large count means the clock has resolution the session cannot use.

public ulong FramesWriteError { get; init; }

Frames lost to a write or encode failure.

public ulong FramesWritten { get; init; }

Frames the session has taken into the file for this source. As for RecordingStatistics.FramesWritten: a frame counts here once the container has accepted it, which is a moment before its bytes are necessarily on the disk. Stopping the session is what makes the file complete.

public string LastError { get; init; }

The most recent write failure for this source, or an empty string.

public TimeSpan LastFrame { get; init; }

Session time of its most recent frame.

public TimeSpan MaxGap { get; init; }

The longest run of session time this source went without delivering a frame, after its first.

public TimeSpan OutageTotal { get; init; }

Total session time spent disconnected. An outage still open when the session stopped counts up to the moment it stopped.

Not the same as MaxGap, which is the largest hole whatever caused it: a busy disk, a shutter cycle, a camera that was idle. This is only the time somebody said the camera was gone.

public ulong Outages { get; init; }

How many times this source was reported lost, whether or not the camera came back.