Class BowireResponseMetricStats
- Namespace
- Kuestenlogik.Bowire.Benchmarking
- Assembly
- Kuestenlogik.Bowire.Benchmarking.dll
#621 — a response metric over a run: the aggregations of the values the calls reported, and how many did not report it, with the first reason.
public sealed class BowireResponseMetricStats
- Inheritance
-
BowireResponseMetricStats
- Inherited Members
Constructors
BowireResponseMetricStats()
public BowireResponseMetricStats()
Properties
Avg
The mean; NaN without values.
public double Avg { get; init; }
Property Value
Count
Calls that reported a value.
public int Count { get; init; }
Property Value
Expression
Its expression as written.
public required string Expression { get; init; }
Property Value
Max
The largest; NaN without values.
public double Max { get; init; }
Property Value
Min
The smallest; NaN without values.
public double Min { get; init; }
Property Value
Missing
Completed calls whose response did not yield a value.
public int Missing { get; init; }
Property Value
MissingReason
Why the first of them did not, e.g. usage.prompt_tokens is missing.
public string? MissingReason { get; init; }
Property Value
Name
The metric's name.
public required string Name { get; init; }
Property Value
P50
The median; NaN without values.
public double P50 { get; init; }
Property Value
P90
The 90th percentile; NaN without values.
public double P90 { get; init; }
Property Value
P95
The 95th percentile; NaN without values.
public double P95 { get; init; }
Property Value
P99
The 99th percentile; NaN without values.
public double P99 { get; init; }
Property Value
Sum
The total.
public double Sum { get; init; }
Property Value
Methods
Format(double)
A value for display: up to six significant decimals, invariant.
public static string Format(double value)
Parameters
valuedouble
Returns
From(string, string, IEnumerable<double>, int, string?)
Aggregate the values a run's calls reported.
public static BowireResponseMetricStats From(string name, string expression, IEnumerable<double> values, int missing, string? missingReason)
Parameters
Returns
Value(BowireMetricAggregation)
The value of one aggregation.
public double Value(BowireMetricAggregation aggregation)
Parameters
aggregationBowireMetricAggregation