Class ApiCounters
API counters of the detailed stats snapshot.
public sealed record ApiCounters : IEquatable<ApiCounters>
- Inheritance
-
ApiCounters
- Implements
- Inherited Members
Properties
Errors
Error totals per endpoint, an others bucket collects the overflow past the endpoint cap.
[JsonPropertyName("errors")]
[JsonInclude]
public IReadOnlyDictionary<string, long>? Errors { get; }
Property Value
Remarks
A null value for an endpoint throws on parse, unlike the source counters, which drop their null values.
Requests
Request totals per endpoint, an others bucket collects the overflow past the endpoint cap.
[JsonPropertyName("requests")]
[JsonInclude]
public IReadOnlyDictionary<string, long>? Requests { get; }
Property Value
Remarks
A null value for an endpoint throws on parse, unlike the source counters, which drop their null values.
Methods
Equals(ApiCounters?)
Indicates whether both counters carry the same totals.
public bool Equals(ApiCounters? other)
Parameters
otherApiCountersThe counters to compare with.
Returns
- bool
Whether the maps match, compared by content.
GetHashCode()
Returns a hash of the counters, the maps stay out of it.
public override int GetHashCode()
Returns
- int
The hash code.