Skip to content
ConsoleMonster
Class

RunSnapshot

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed

A consistent copy of a RunTracker.

Inheritance

  • object
  • RunSnapshot

Usage

Explore 13 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 5

Accepted by parameters 8

Methods

public string ProgressLine() #

Formats the same compact progress line used by CI output.

Returns

string Completion counts, ETA and throughput in items per minute.

Properties

public IReadOnlyList<RunItemSnapshot> Items { get; internal set; } #

Declared items and their state, or an empty list for a count-only tracker.

public double Rate { get; internal set; } #

Completed items per second over the tracker's moving ten-second window.

public IReadOnlyList<double> Rates { get; internal set; } #

Recent throughput samples, one per elapsed second, for a compact trend.

public TimeSpan? Remaining { get; } #

Estimated remaining time from the moving rate, or null until the rate can be measured.

public IReadOnlyList<StatusKind> States { get; } #

Each item's state, in input order.

public IReadOnlyList<RunActivity> Running { get; } #

The running items, oldest first.

public IReadOnlyList<RunFailure> Failures { get; } #

The failed, errored and timed-out items, in the order they finished.

public TimeSpan Elapsed { get; } #

The run time (fixed once finished).

public bool IsFinished { get; } #

Whether the run finished.

public int Passed { get; } #

Items that passed.

public int Failed { get; } #

Items that failed or timed out.

public int Warned { get; } #

Items that finished with a warning.

public int Skipped { get; } #

Items skipped (not run because the run stopped).

public int Errors { get; } #

Items that could not run to a verdict (StatusKind.Error).

public int Investigate { get; } #

Items to investigate (StatusKind.Investigate).

public int NotRun { get; } #

Items deliberately not run (StatusKind.NotRun).

public int Total { get; } #

Items in total.

public IReadOnlyList<int> Attempts { get; internal set; } #

How many times each item has run, in input order: 0 before it starts, 2 or more once retried.

public int Retried { get; private set; } #

Items that needed more than one attempt, whatever their outcome.

public int Done { get; } #

Items finished, whatever the outcome.