Class BowireHoldStats

Namespace
Kuestenlogik.Bowire.Benchmarking
Assembly
Kuestenlogik.Bowire.Benchmarking.dll

#624 — what became of a hold's connections: the survival numbers a threshold reads, over every connection it opened.

public sealed class BowireHoldStats
Inheritance
BowireHoldStats
Inherited Members

Properties

Channel

Whether they were held as channels (OpenChannelAsync(string, string, string, bool, Dictionary<string, string>?, CancellationToken)) rather than server streams.

public bool Channel { get; }

Property Value

bool

Connections

Every connection, in the order they were opened.

public IReadOnlyList<BowireHeldConnection> Connections { get; }

Property Value

IReadOnlyList<BowireHeldConnection>

Dropped

Connections that ended before the hold did: closed by the peer, failed, or timed out.

public int Dropped { get; }

Property Value

int

Ends

How the connections ended, by outcome.

public IReadOnlyDictionary<BowireConnectionEnd, int> Ends { get; }

Property Value

IReadOnlyDictionary<BowireConnectionEnd, int>

FirstChunk

Time to first chunk over the connections that got one, in milliseconds.

public BowireBenchmarkStats FirstChunk { get; }

Property Value

BowireBenchmarkStats

Gaps

Gaps between consecutive chunks over every connection, in milliseconds.

public BowireBenchmarkStats Gaps { get; }

Property Value

BowireBenchmarkStats

Lifetimes

Lifetimes of every connection, in milliseconds.

public BowireBenchmarkStats Lifetimes { get; }

Property Value

BowireBenchmarkStats

Quiet

Connections held to the end that were silent for at least the quiet threshold.

public int Quiet { get; }

Property Value

int

Reconnects

Replacements opened to keep the slots filled.

public int Reconnects { get; }

Property Value

int

Slots

How many connections were held at once.

public int Slots { get; }

Property Value

int

Survival

The slots' first connections that lasted to the end, as a fraction of the slots. A replacement does not count: a reconnect hides a drop from whoever is listening, not from this number.

public double Survival { get; }

Property Value

double

UpAtEnd

Slots whose current connection was open at the end, replacements included.

public int UpAtEnd { get; }

Property Value

int

Methods

From(int, IReadOnlyList<BowireHeldConnection>)

The statistics of a hold of slots connections.

public static BowireHoldStats From(int slots, IReadOnlyList<BowireHeldConnection> connections)

Parameters

slots int
connections IReadOnlyList<BowireHeldConnection>

Returns

BowireHoldStats

Value(BowireBenchmarkMetric)

Read one metric. Lifetimes are seconds (a hold is measured in minutes); gaps and first chunks are milliseconds, like every latency. A metric a hold has no value for is NaN, which breaches its budget.

public double Value(BowireBenchmarkMetric metric)

Parameters

metric BowireBenchmarkMetric

Returns

double