Property OverrideNegativeRatesWith
OverrideNegativeRatesWith
When not null, a negative rate is not returned: the buffered counters are discarded,
the new counter is buffered as the first one and this value is returned instead.
Meant for use cases where a negative rate is unexpected and undesired (e.g. caused by a counter reset or a device bug).
When null (default), negative rates are returned as calculated. This setting is not serialized.
[JsonIgnore]
public double? OverrideNegativeRatesWith { get; }