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

Class CounterValueSource

Combines the value for a counter with the defined unit for the value.

Inheritance
System.Object
CounterValueSource
Namespace:App.Metrics.Counter
Assembly:cs.temp.dll.dll
Syntax
public sealed class CounterValueSource : MetricValueSourceBase<CounterValue>

Constructors

CounterValueSource(String, IMetricValueProvider<CounterValue>, Unit, MetricTags, Boolean, Boolean, Boolean)

Initializes a new instance of the CounterValueSource class.

Declaration
public CounterValueSource(string name, IMetricValueProvider<CounterValue> value, Unit unit, MetricTags tags, bool resetOnReporting = false, bool reportItemPercentages = true, bool reportSetItems = true)
Parameters
Type Name Description
System.String name

The name.

IMetricValueProvider<CounterValue> value

The value.

Unit unit

The unit.

MetricTags tags

The tags.

System.Boolean resetOnReporting

if set to true [reset on reporting]. Defaults to false.

System.Boolean reportItemPercentages

if set to true [report item percentages]. Defaults to true

System.Boolean reportSetItems

if set to true [report set items]. Defaults to true

Properties

ReportItemPercentages

Declaration
public bool ReportItemPercentages { get; }
Property Value
Type Description
System.Boolean

ReportSetItems

Declaration
public bool ReportSetItems { get; }
Property Value
Type Description
System.Boolean

ResetOnReporting

Declaration
public bool ResetOnReporting { get; }
Property Value
Type Description
System.Boolean
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX