Interface IMeasureGaugeMetrics
Provides access to the API allowing Gauge Metrics to be measured/recorded.
Namespace:App.Metrics.Gauge.Abstractions
Assembly:cs.temp.dll.dll
Syntax
public interface IMeasureGaugeMetrics
Methods
SetValue(GaugeOptions, MetricTags, Double)
Declaration
void SetValue(GaugeOptions options, MetricTags tags, double value)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | |
MetricTags | tags | |
System.Double | value |
SetValue(GaugeOptions, MetricTags, Func<IMetricValueProvider<Double>>)
Records
Declaration
void SetValue(GaugeOptions options, MetricTags tags, Func<IMetricValueProvider<double>> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | The details of the gauge that is being measured. |
MetricTags | tags | The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
|
System.Func<IMetricValueProvider<System.Double>> | valueProvider | A function that returns custom value provider for the gauge. |
SetValue(GaugeOptions, MetricTags, Func<Double>)
Records
Declaration
void SetValue(GaugeOptions options, MetricTags tags, Func<double> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | The details of the gauge that is being measured. |
MetricTags | tags | The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
|
System.Func<System.Double> | valueProvider | A function that returns the value for the gauge. |
SetValue(GaugeOptions, Double)
Declaration
void SetValue(GaugeOptions options, double value)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | |
System.Double | value |
SetValue(GaugeOptions, Func<IMetricValueProvider<Double>>)
Records
Declaration
void SetValue(GaugeOptions options, Func<IMetricValueProvider<double>> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | The details of the gauge that is being measured. |
System.Func<IMetricValueProvider<System.Double>> | valueProvider | A function that returns custom value provider for the gauge. |
SetValue(GaugeOptions, Func<Double>)
Records
Declaration
void SetValue(GaugeOptions options, Func<double> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
GaugeOptions | options | The details of the gauge that is being measured. |
System.Func<System.Double> | valueProvider | A function that returns custom value provider for the gauge. |