Class TimerValue
The value reported by a Timer Metric
Inheritance
System.Object
TimerValue
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:App.Metrics.Timer
Assembly:cs.temp.dll.dll
Syntax
public sealed class TimerValue
Constructors
TimerValue(MeterValue, HistogramValue, Int64, TimeUnit)
Declaration
public TimerValue(MeterValue rate, HistogramValue histogram, long activeSessions, TimeUnit durationUnit)
Parameters
Type | Name | Description |
---|---|---|
MeterValue | rate | |
HistogramValue | histogram | |
System.Int64 | activeSessions | |
TimeUnit | durationUnit |
Properties
ActiveSessions
Declaration
public long ActiveSessions { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
DurationUnit
Declaration
public TimeUnit DurationUnit { get; }
Property Value
Type | Description |
---|---|
TimeUnit |
Histogram
Declaration
public HistogramValue Histogram { get; }
Property Value
Type | Description |
---|---|
HistogramValue |
Rate
Declaration
public MeterValue Rate { get; }
Property Value
Type | Description |
---|---|
MeterValue |
Methods
Scale(TimeUnit, TimeUnit)
Declaration
public TimerValue Scale(TimeUnit rate, TimeUnit duration)
Parameters
Type | Name | Description |
---|---|---|
TimeUnit | rate | |
TimeUnit | duration |
Returns
Type | Description |
---|---|
TimerValue |