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
Connections
Every connection, in the order they were opened.
public IReadOnlyList<BowireHeldConnection> Connections { get; }
Property Value
Dropped
Connections that ended before the hold did: closed by the peer, failed, or timed out.
public int Dropped { get; }
Property Value
Ends
How the connections ended, by outcome.
public IReadOnlyDictionary<BowireConnectionEnd, int> Ends { get; }
Property Value
FirstChunk
Time to first chunk over the connections that got one, in milliseconds.
public BowireBenchmarkStats FirstChunk { get; }
Property Value
Gaps
Gaps between consecutive chunks over every connection, in milliseconds.
public BowireBenchmarkStats Gaps { get; }
Property Value
Lifetimes
Lifetimes of every connection, in milliseconds.
public BowireBenchmarkStats Lifetimes { get; }
Property Value
Quiet
Connections held to the end that were silent for at least the quiet threshold.
public int Quiet { get; }
Property Value
Reconnects
Replacements opened to keep the slots filled.
public int Reconnects { get; }
Property Value
Slots
How many connections were held at once.
public int Slots { get; }
Property Value
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
UpAtEnd
Slots whose current connection was open at the end, replacements included.
public int UpAtEnd { get; }
Property Value
Methods
From(int, IReadOnlyList<BowireHeldConnection>)
The statistics of a hold of slots connections.
public static BowireHoldStats From(int slots, IReadOnlyList<BowireHeldConnection> connections)
Parameters
slotsintconnectionsIReadOnlyList<BowireHeldConnection>
Returns
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
metricBowireBenchmarkMetric