C# Class DotNetWorkQueue.Metrics.Net.Metrics

Root metrics class; wraps metrics.net
Inheritance: IMetrics, IDisposable
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
Context ( string contextName ) : IMetricsContext

Create a new child metrics context. Metrics added to the child context are kept separate from the metrics in the parent context.

Counter ( string name, Units unit, string tag = null ) : ICounter

A counter is a simple incrementing and decrementing 64-bit integer. Ex number of active requests.

Counter ( string name, string unitName, string tag = null ) : ICounter

A counter is a simple incrementing and decrementing 64-bit integer. Ex number of active requests.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Gauge ( string name, Func valueProvider, Units unit, string tag = null ) : void

A gauge is the simplest metric type. It just returns a value. This metric is suitable for instantaneous values.

Histogram ( string name, Units unit, SamplingTypes samplingType, string tag = null ) : IHistogram

A Histogram measures the distribution of values in a stream of data: e.g., the number of results returned by a search.

Meter ( string name, Units unit, TimeUnits rateUnit, string tag = null ) : IMeter

A meter measures the rate at which a set of events occur, in a few different ways. This metric is suitable for keeping a record of now often something happens ( error, request etc ).

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.

Meter ( string name, string unitName, TimeUnits rateUnit, string tag = null ) : IMeter

A meter measures the rate at which a set of events occur, in a few different ways. This metric is suitable for keeping a record of now often something happens ( error, request etc ).

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.

Metrics ( string rootName ) : System

Initializes a new instance of the Metrics class.

ShutdownContext ( string contextName ) : void

Remove a child context. The metrics for the child context are removed from the MetricsData of the parent context.

Timer ( string name, Units unit, SamplingTypes samplingType, TimeUnits rateUnit, TimeUnits durationUnit, string tag = null ) : ITimer

A timer is basically a histogram of the duration of a type of event and a meter of the rate of its occurrence.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Context() public méthode

Create a new child metrics context. Metrics added to the child context are kept separate from the metrics in the parent context.
public Context ( string contextName ) : IMetricsContext
contextName string Name of the child context.
Résultat IMetricsContext

Counter() public méthode

A counter is a simple incrementing and decrementing 64-bit integer. Ex number of active requests.
public Counter ( string name, Units unit, string tag = null ) : ICounter
name string Name of the metric. Must be unique across all counters in this context.
unit Units Description of what the is being measured ( Unit.Requests , Unit.Items etc ) .
tag string Optional tag that can be associated with the metric.
Résultat ICounter

Counter() public méthode

A counter is a simple incrementing and decrementing 64-bit integer. Ex number of active requests.
public Counter ( string name, string unitName, string tag = null ) : ICounter
name string Name of the metric. Must be unique across all counters in this context.
unitName string A Parent name; child counters can be added to this by specifying the this name
tag string Optional tag that can be associated with the metric.
Résultat ICounter

Dispose() public méthode

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

Gauge() public méthode

A gauge is the simplest metric type. It just returns a value. This metric is suitable for instantaneous values.
public Gauge ( string name, Func valueProvider, Units unit, string tag = null ) : void
name string Name of this gauge metric. Must be unique across all gauges in this context.
valueProvider Func Function that returns the value for the gauge.
unit Units Description of want the value represents ( Unit.Requests , Unit.Items etc ) .
tag string Optional tag that can be associated with the metric.
Résultat void

Histogram() public méthode

A Histogram measures the distribution of values in a stream of data: e.g., the number of results returned by a search.
public Histogram ( string name, Units unit, SamplingTypes samplingType, string tag = null ) : IHistogram
name string Name of the metric. Must be unique across all histograms in this context.
unit Units Description of what the is being measured ( Unit.Requests , Unit.Items etc ) .
samplingType SamplingTypes Type of the sampling to use (see SamplingType for details ).
tag string Optional tag that can be associated with the metric.
Résultat IHistogram

Meter() public méthode

A meter measures the rate at which a set of events occur, in a few different ways. This metric is suitable for keeping a record of now often something happens ( error, request etc ).
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.
public Meter ( string name, Units unit, TimeUnits rateUnit, string tag = null ) : IMeter
name string Name of the metric. Must be unique across all meters in this context.
unit Units Description of what the is being measured ( Unit.Requests , Unit.Items etc ) .
rateUnit TimeUnits Time unit for rates reporting. Defaults to Second ( occurrences / second ).
tag string Optional tag that can be associated with the metric.
Résultat IMeter

Meter() public méthode

A meter measures the rate at which a set of events occur, in a few different ways. This metric is suitable for keeping a record of now often something happens ( error, request etc ).
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.
public Meter ( string name, string unitName, TimeUnits rateUnit, string tag = null ) : IMeter
name string Name of the metric. Must be unique across all meters in this context.
unitName string A Parent name; child counters can be added to this by specifying the this name
rateUnit TimeUnits Time unit for rates reporting. Defaults to Second ( occurrences / second ).
tag string Optional tag that can be associated with the metric.
Résultat IMeter

Metrics() public méthode

Initializes a new instance of the Metrics class.
public Metrics ( string rootName ) : System
rootName string Name of the root.
Résultat System

ShutdownContext() public méthode

Remove a child context. The metrics for the child context are removed from the MetricsData of the parent context.
public ShutdownContext ( string contextName ) : void
contextName string Name of the child context to shutdown.
Résultat void

Timer() public méthode

A timer is basically a histogram of the duration of a type of event and a meter of the rate of its occurrence.
public Timer ( string name, Units unit, SamplingTypes samplingType, TimeUnits rateUnit, TimeUnits durationUnit, string tag = null ) : ITimer
name string Name of the metric. Must be unique across all timers in this context.
unit Units Description of what the is being measured ( Unit.Requests , Unit.Items etc ) .
samplingType SamplingTypes Type of the sampling to use (see SamplingType for details ).
rateUnit TimeUnits Time unit for rates reporting. Defaults to Second ( occurrences / second ).
durationUnit TimeUnits Time unit for reporting durations. Defaults to Milliseconds.
tag string Optional tag that can be associated with the metric.
Résultat ITimer