Table of Contents

Interface IMetricRecorder

Namespace
Homa.Sdk.Metrics
Assembly
Homa.Sdk.Metrics.Abstractions.dll

Represents an object which allows to push new data points to the metric.

public interface IMetricRecorder

Methods

Record(double)

Pushes new data point to the metric.

void Record(double value)

Parameters

value double

Value of the data point

Remarks

Call to this method MUST NOT THROW.

Record(double, params IMetricLabel[])

Pushes new data point to the metric.

void Record(double value, params IMetricLabel[] labels)

Parameters

value double

Value of the data point

labels IMetricLabel[]

(optional) data points specific labels

Remarks

Call to this method MUST NOT THROW.

Record(double, IEnumerable<IMetricLabel>)

Pushes new data point to the metric.

void Record(double value, IEnumerable<IMetricLabel> labels)

Parameters

value double

Value of the data point

labels IEnumerable<IMetricLabel>

(optional) data points specific labels

Remarks

Call to this method MUST NOT THROW.