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

Class FunctionGauge

A Gauge metric using a function to provide the instantaneous value to record

Inheritance
System.Object
FunctionGauge
Namespace:App.Metrics.Gauge
Assembly:cs.temp.dll.dll
Syntax
public class FunctionGauge : IGaugeMetric

Constructors

FunctionGauge(Func<Double>)

Declaration
public FunctionGauge(Func<double> valueProvider)
Parameters
Type Name Description
System.Func<System.Double> valueProvider

Properties

Value

Declaration
public double Value { get; }
Property Value
Type Description
System.Double

Methods

GetValue(Boolean)

Declaration
public double GetValue(bool resetMetric = false)
Parameters
Type Name Description
System.Boolean resetMetric
Returns
Type Description
System.Double

Reset()

Declaration
public void Reset()

SetValue(Double)

Declaration
public void SetValue(double value)
Parameters
Type Name Description
System.Double value
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX