Class BowirePriceProfile

Namespace
Kuestenlogik.Bowire.Benchmarking
Assembly
Kuestenlogik.Bowire.Benchmarking.dll

#621 — the rates a run's cost expressions use, as they were when the run started: from configuration, or fetched from a provider that serves its own. Recorded in the report beside the cost they produced, so a figure is only ever compared with one made at the same rates.

public sealed record BowirePriceProfile : IEquatable<BowirePriceProfile>
Inheritance
BowirePriceProfile
Implements
Inherited Members

Constructors

BowirePriceProfile()

public BowirePriceProfile()

Properties

Name

The profile's name in configuration.

[JsonPropertyName("name")]
public required string Name { get; init; }

Property Value

string

Rates

The rates, by name (input, output, cache-read …).

[JsonPropertyName("rates")]
public required IReadOnlyDictionary<string, double> Rates { get; init; }

Property Value

IReadOnlyDictionary<string, double>

ResolvedAt

When they were read.

[JsonPropertyName("resolvedAt")]
public DateTimeOffset ResolvedAt { get; init; }

Property Value

DateTimeOffset

Source

Where they came from: configuration, or the URL they were fetched from.

[JsonPropertyName("source")]
public required string Source { get; init; }

Property Value

string

Methods

Equals(BowirePriceProfile?)

public bool Equals(BowirePriceProfile? other)

Parameters

other BowirePriceProfile

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowirePriceProfile?, BowirePriceProfile?)

public static bool operator ==(BowirePriceProfile? left, BowirePriceProfile? right)

Parameters

left BowirePriceProfile
right BowirePriceProfile

Returns

bool

operator !=(BowirePriceProfile?, BowirePriceProfile?)

public static bool operator !=(BowirePriceProfile? left, BowirePriceProfile? right)

Parameters

left BowirePriceProfile
right BowirePriceProfile

Returns

bool