Interface IGauge
- Namespace
- DotCompute.Core.Telemetry
- Assembly
- DotCompute.Core.dll
Gauge metric interface.
public interface IGauge
Properties
Value
Gets the current value.
double Value { get; }
Property Value
Methods
Dec(double)
Decrements the gauge.
void Dec(double decrement = 1)
Parameters
decrementdouble
Inc(double)
Increments the gauge.
void Inc(double increment = 1)
Parameters
incrementdouble
Set(double)
Sets the gauge value.
void Set(double value)
Parameters
valuedouble
WithLabels(params string[])
Returns a gauge with the specified labels.
IGauge WithLabels(params string[] labels)
Parameters
labelsstring[]