An instrument that supports reporting positive or negative metric values. UpDownCounter may be used in scenarios like reporting the change in active requests or queue size.
generic <typename T>
where T : value classpublic ref class UpDownCounter sealed : System::Diagnostics::Metrics::Instrument<T>
public sealed class UpDownCounter<T> : System.Diagnostics.Metrics.Instrument<T> where T : struct
type UpDownCounter<'T (requires 'T : struct)> = class
inherit Instrument<'T (requires 'T : struct)>
Public NotInheritable Class UpDownCounter(Of T)
Inherits Instrument(Of T)
Type Parameters
The type that the UpDownCounter represents.
This class supports only the following generic parameter types: Byte, Int16, Int32, Int64, Single, Double, and Decimal
Properties Methods Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T, KeyValuePair<String,Object>)Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T, KeyValuePair<String,Object>[])Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T, ReadOnlySpan<KeyValuePair<String,Object>>)Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T, TagList)Records the delta value of the measurement. The delta can be positive, negative, or zero.
Add(T)Records the delta value of the measurement. The delta can be positive, negative, or zero.
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) Publish()Activates the instrument to start recording measurements and to allow listeners to start listening to such measurements.
(Inherited from Instrument) RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) RecordMeasurement(T, KeyValuePair<String,Object>)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) RecordMeasurement(T, TagList)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) RecordMeasurement(T)Records a measurement by notifying all MeterListener objects that are listening to this instrument.
(Inherited from Instrument<T>) ToString()Returns a string that represents the current object.
(Inherited from Object)Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4