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 |
System.Boolean | reportItemPercentages | if set to |
System.Boolean | reportSetItems | if set to |
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 |