Επεξεργασία

Κοινή χρήση μέσω


Meter Class

Definition

Meter is the class responsible for creating and tracking the Instruments.

public ref class Meter : IDisposable
public class Meter : IDisposable
type Meter = class
    interface IDisposable
Public Class Meter
Implements IDisposable
Inheritance
Meter
Implements

Constructors

Meter(MeterOptions)

Initialize a new instance of the Meter using the MeterOptions.

Meter(String, String, IEnumerable<KeyValuePair<String,Object>>, Object)

Initializes a new instance of the Meter using the meter name and version.

Meter(String, String)

Initializes a new instance of Meter using the specified meter name and version.

Meter(String)

Initializes a new instance of Meter using the specified meter name.

Properties

Name

Gets the Meter name.

Scope

Returns the Meter scope object.

Tags

Returns the tags associated with the Meter.

Version

Gets the Meter version.

Methods

CreateCounter<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates a metrics Counter object.

CreateCounter<T>(String, String, String)

Create a metrics Counter object.

CreateGauge<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Create a metrics Gauge object.

CreateGauge<T>(String)

Creates a Gauge instrument, which can be used to record non-additive values.

CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>)

Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.

CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates an Histogram instance, which is an Instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.

CreateHistogram<T>(String, String, String)

Creates a Histogram, which is an instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentiles.

CreateHistogram<T>(String)

Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.

CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.

CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String)

Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.

CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.

CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String)

Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.

CreateObservableCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates an ObservableCounter instance, which is an Instrument that reports monotonically increasing value(s) when the instrument is being observed.

CreateObservableCounter<T>(String, Func<T>, String, String)

Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed.

CreateObservableGauge<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Creates an ObservableGauge instance, which is an asynchronous Instrument that reports non-additive value(s) when the instrument is being observed.

CreateObservableGauge<T>(String, Func<IEnumerable<Measurement<T>>>, String, String)

Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.

CreateObservableGauge<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

ObservableGauge is an asynchronous Instrument which reports non-additive value(s) (e.g. the room temperature - it makes no sense to report the temperature value from multiple rooms and sum them up) when the instrument is being observed.

CreateObservableGauge<T>(String, Func<Measurement<T>>, String, String)

Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.

CreateObservableGauge<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>)

ObservableGauge is an asynchronous Instrument which reports non-additive value(s) (e.g. the room temperature - it makes no sense to report the temperature value from multiple rooms and sum them up) when the instrument is being observed.

CreateObservableGauge<T>(String, Func<T>, String, String)

Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String)

Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String)

Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Create an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument which reports increasing or decreasing value(s) when the instrument is being observed.

CreateObservableUpDownCounter<T>(String, Func<T>, String, String)

Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed.

CreateUpDownCounter<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Create a metrics UpDownCounter object.

CreateUpDownCounter<T>(String, String, String)

Create a metrics UpDownCounter object.

Dispose()

Dispose the Meter which will disable all instruments created by this meter.

Dispose(Boolean)

Dispose the Meter which will disable all instruments created by this meter.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also