Class Counter
Used to measure rates inside a system.
Namespace:Phobos.Monitoring.Metrics
Assembly:Phobos.Monitoring.dll
Syntax
public sealed class Counter : Metric, IMetric
Methods
Decrement(Int64)
Decrement the counter value by N.
Declaration
public void Decrement(long decrementVal = -1L)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | decrementVal | The value by which to decrement the counter. Defaults to |
Increment(Int64)
Increment the counter value by N.
Declaration
public void Increment(long incrementValue = 1L)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | incrementValue | The value by which to increment the counter. Defaults to |