Class BowireMetricContext
- Namespace
- Kuestenlogik.Bowire.Benchmarking
- Assembly
- Kuestenlogik.Bowire.Benchmarking.dll
#621 — what one response offers an expression: its body, its headers (response metadata) and the rates of the run's price profile.
public sealed class BowireMetricContext
- Inheritance
-
BowireMetricContext
- Inherited Members
Constructors
BowireMetricContext()
public BowireMetricContext()
Properties
Body
The response body, parsed; null when it is not JSON.
public JsonElement? Body { get; init; }
Property Value
Headers
The response's headers / metadata, looked up case-insensitively.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Rates
The rates of the run's price profile, by name.
public IReadOnlyDictionary<string, double> Rates { get; init; }
Property Value
Methods
For(string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, double>?)
A context for a response body (JSON or not) and its metadata.
public static BowireMetricContext For(string? body, IReadOnlyDictionary<string, string>? headers, IReadOnlyDictionary<string, double>? rates)
Parameters
bodystringheadersIReadOnlyDictionary<string, string>ratesIReadOnlyDictionary<string, double>