C# Class DotNetWorkQueue.Metrics.Net.Meter

A meter measures the rate at which a set of events occur, in a few different ways. The mean rate is the average rate of events. It’s generally useful for trivia, but as it represents the total rate for your application’s entire lifetime (e.g., the total number of requests handled, divided by the number of seconds the process has been running), it does not offer a sense of recency. Luckily, meters also record three different exponentially-weighted moving average rates: the 1-, 5-, and 15-minute moving averages.
Inheritance: IMeter
Exibir arquivo Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Mark ( ) : void

Mark the occurrence of an event.

Mark ( long count ) : void

Mark the occurrence of count events.

Mark ( string item ) : void

Mark the occurrence of an event for an item in a set. The total rate of the event is updated, but the meter will also keep track and update a specific rate for each item registered. The meter value will contain the total rate and for each registered item the specific rate and percentage of total count.

Mark ( string item, long count ) : void

Mark the occurrence of count events for an item in a set. The total rate of the event is updated, but the meter will also keep track and update a specific rate for each item registered. The meter value will contain the total rate and for each registered item the specific rate and percentage of total count.

Meter ( global meter )

Initializes a new instance of the Meter class.

Method Details

Mark() public method

Mark the occurrence of an event.
public Mark ( ) : void
return void

Mark() public method

Mark the occurrence of count events.
public Mark ( long count ) : void
count long
return void

Mark() public method

Mark the occurrence of an event for an item in a set. The total rate of the event is updated, but the meter will also keep track and update a specific rate for each item registered. The meter value will contain the total rate and for each registered item the specific rate and percentage of total count.
public Mark ( string item ) : void
item string Item from the set for which to record the event.
return void

Mark() public method

Mark the occurrence of count events for an item in a set. The total rate of the event is updated, but the meter will also keep track and update a specific rate for each item registered. The meter value will contain the total rate and for each registered item the specific rate and percentage of total count.
public Mark ( string item, long count ) : void
item string Item from the set for which to record the events.
count long
return void

Meter() public method

Initializes a new instance of the Meter class.
public Meter ( global meter )
meter global The meter.