LiveSessionCounters
ConsoleMonster.Live
A point-in-time snapshot of a live session's counters and errors (LiveSession.GetCounters).
Inheritance
- object
- LiveSessionCounters
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method LiveSession.GetCounters
Constructors
public LiveSessionCounters(long eventsPosted, long eventsApplied, long eventsDropped, long applyErrors, long renderErrors, long framesRendered, long resizes, IReadOnlyDictionary<string, long> unknownTargets, Exception? lastError, Exception? failure) #Creates a snapshot.
Parameters
- eventsPosted long
- Events accepted.
- eventsApplied long
- Events applied.
- eventsDropped long
- Events ignored (unknown target, or posted after admission closed).
- applyErrors long
- Target Apply calls that threw.
- renderErrors long
- Frames replaced by the one-line error note.
- framesRendered long
- Frames rendered.
- resizes long
- Size changes redrawn.
- unknownTargets System.Collections.Generic.IReadOnlyDictionary<string, long>
- Target names that received events but do not exist, with event counts.
- lastError System.Exception?
- The most recent error, or null.
- failure System.Exception?
- The error that ended the session early, or null.
Inherited Methods
Properties
public long EventsPosted { get; } #Events accepted before shutdown closed admission.
public long EventsDropped { get; } #Events ignored: sent to an unknown target, or posted after admission closed.
public long RenderErrors { get; } #Frames where the layout threw and a one-line note was shown instead.
public long FramesRendered { get; } #Frames rendered, including the final frame.
public IReadOnlyDictionary<string, long> UnknownTargets { get; } #Target names that received events but are not registered (typos such as lanez), with event counts.
public Exception? LastError { get; } #The most recent target, rendering, recording or cleanup error, or null.
public Exception? Failure { get; } #The error that ended the session early, or null.
public bool HasProblems { get; } #Whether anything went wrong: failed updates, failed frames, unknown targets or an early end.