Table of Contents

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

T

Type of value for the metric.

Methods

Set(T, object)

Set the given value on the gauge.

void Set(T value, object tags)

Parameters

value T

Value to set. Currently this will always be a non-negative long.

tags object

Tags. This will be the same value/type as returned from CreateTags(object?, IReadOnlyCollection<KeyValuePair<string, object>>).