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
Rates
The rates, by name (input, output, cache-read …).
[JsonPropertyName("rates")]
public required IReadOnlyDictionary<string, double> Rates { get; init; }
Property Value
ResolvedAt
When they were read.
[JsonPropertyName("resolvedAt")]
public DateTimeOffset ResolvedAt { get; init; }
Property Value
Source
Where they came from: configuration, or the URL they were fetched from.
[JsonPropertyName("source")]
public required string Source { get; init; }
Property Value
Methods
Equals(BowirePriceProfile?)
public bool Equals(BowirePriceProfile? other)
Parameters
otherBowirePriceProfile
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowirePriceProfile?, BowirePriceProfile?)
public static bool operator ==(BowirePriceProfile? left, BowirePriceProfile? right)
Parameters
leftBowirePriceProfilerightBowirePriceProfile
Returns
operator !=(BowirePriceProfile?, BowirePriceProfile?)
public static bool operator !=(BowirePriceProfile? left, BowirePriceProfile? right)
Parameters
leftBowirePriceProfilerightBowirePriceProfile