App Metrics Fork me on GitHub
Show / Hide Table of Contents

Interface IMetricValueProvider<T>

Indicates the ability to provide the value for a metric. This is the raw value. Consumers should use MetricValueSourceBase<T>

Namespace:App.Metrics.Core.Abstractions
Assembly:cs.temp.dll.dll
Syntax
public interface IMetricValueProvider<out T>
Type Parameters
Name Description
T

Type of the value returned by the metric

Properties

Value

Gets the current value of the metric.

Declaration
T Value { get; }
Property Value
Type Description
T

The value.

Methods

GetValue(Boolean)

Get the current value for the metric, but also reset the metric. Useful for pushing data to only one consumer (ex: graphite) where you might want to only capture values just between the report interval.

Declaration
T GetValue(bool resetMetric = false)
Parameters
Type Name Description
System.Boolean resetMetric

if set to true the metric will be reset.

Returns
Type Description
T

The current value for the metric.

Back to top Copyright © 2017 Allan Hardy
Generated by DocFX