Interface ICustomMetricGauge<T>
- Namespace
- Temporalio.Runtime
- Assembly
- Temporalio.dll
Interface to implement for a gauge metric.
public interface ICustomMetricGauge<T> : ICustomMetric<T> where T : struct
Type Parameters
TType of value for the metric.
Methods
Set(T, object)
Set the given value on the gauge.
void Set(T value, object tags)
Parameters
valueTValue to set. Currently this will always be a non-negative
long.tagsobjectTags. This will be the same value/type as returned from CreateTags(object?, IReadOnlyCollection<KeyValuePair<string, object>>).