C# 클래스 DotNetWorkQueue.Metrics.Net.Metrics

Root metrics class; wraps metrics.net
상속: IMetrics, IDisposable
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

메소드 상세

Context() 공개 메소드

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.
리턴 IMetricsContext

Counter() 공개 메소드

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.
리턴 ICounter

Counter() 공개 메소드

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.
리턴 ICounter

Dispose() 공개 메소드

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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.
리턴 void

Gauge() 공개 메소드

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.
리턴 void

Histogram() 공개 메소드

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.
리턴 IHistogram

Meter() 공개 메소드

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.
리턴 IMeter

Meter() 공개 메소드

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.
리턴 IMeter

Metrics() 공개 메소드

Initializes a new instance of the Metrics class.
public Metrics ( string rootName ) : System
rootName string Name of the root.
리턴 System

ShutdownContext() 공개 메소드

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.
리턴 void

Timer() 공개 메소드

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.
리턴 ITimer