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

JsonElement?

Headers

The response's headers / metadata, looked up case-insensitively.

public IReadOnlyDictionary<string, string> Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Rates

The rates of the run's price profile, by name.

public IReadOnlyDictionary<string, double> Rates { get; init; }

Property Value

IReadOnlyDictionary<string, double>

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

body string
headers IReadOnlyDictionary<string, string>
rates IReadOnlyDictionary<string, double>

Returns

BowireMetricContext