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

double

Count

Calls that reported a value.

public int Count { get; init; }

Property Value

int

Expression

Its expression as written.

public required string Expression { get; init; }

Property Value

string

Max

The largest; NaN without values.

public double Max { get; init; }

Property Value

double

Min

The smallest; NaN without values.

public double Min { get; init; }

Property Value

double

Missing

Completed calls whose response did not yield a value.

public int Missing { get; init; }

Property Value

int

MissingReason

Why the first of them did not, e.g. usage.prompt_tokens is missing.

public string? MissingReason { get; init; }

Property Value

string

Name

The metric's name.

public required string Name { get; init; }

Property Value

string

P50

The median; NaN without values.

public double P50 { get; init; }

Property Value

double

P90

The 90th percentile; NaN without values.

public double P90 { get; init; }

Property Value

double

P95

The 95th percentile; NaN without values.

public double P95 { get; init; }

Property Value

double

P99

The 99th percentile; NaN without values.

public double P99 { get; init; }

Property Value

double

Sum

The total.

public double Sum { get; init; }

Property Value

double

Methods

Format(double)

A value for display: up to six significant decimals, invariant.

public static string Format(double value)

Parameters

value double

Returns

string

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

name string
expression string
values IEnumerable<double>
missing int
missingReason string

Returns

BowireResponseMetricStats

Value(BowireMetricAggregation)

The value of one aggregation.

public double Value(BowireMetricAggregation aggregation)

Parameters

aggregation BowireMetricAggregation

Returns

double