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(String)

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

Meter(String, String)

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

Properties

Name

Gets the Meter name.

Version

Gets the Meter version.

Methods

CreateCounter<T>(String, String, String)

Create a metrics Counter object.

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.

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)

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)

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)

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)

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)

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)

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)

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)

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)

Create a metrics UpDownCounter object.

Dispose()

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