Share via


Instrument<T>.RecordMeasurement Method

Definition

Overloads

RecordMeasurement(T)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this 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.

RecordMeasurement(T)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected virtual void RecordMeasurement (T measurement);
abstract member RecordMeasurement : 'T -> unit
override this.RecordMeasurement : 'T -> unit
Protected Overridable Sub RecordMeasurement (measurement As T)

Parameters

measurement
T

The measurement value.

Applies to

RecordMeasurement(T, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected virtual void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object> tag);
abstract member RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Protected Overridable Sub RecordMeasurement (measurement As T, tag As KeyValuePair(Of String, Object))

Parameters

measurement
T

The measurement value.

tag
KeyValuePair<String,Object>

A key-value pair tag associated with the measurement.

Applies to

RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected abstract void RecordMeasurement (T measurement, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object>> tags);
abstract member RecordMeasurement : 'T * ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, obj>> -> unit
Protected MustOverride Sub RecordMeasurement (measurement As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)))

Parameters

measurement
T

The measurement value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

A span of key-value pair tags associated with the measurement.

Applies to

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records a measurement by notifying all MeterListener objects that are listening to this instrument.

protected virtual void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object> tag1, System.Collections.Generic.KeyValuePair<string,object> tag2);
abstract member RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Protected Overridable Sub RecordMeasurement (measurement As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object))

Parameters

measurement
T

The measurement value.

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

Applies to

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.

protected virtual void RecordMeasurement (T measurement, System.Collections.Generic.KeyValuePair<string,object> tag1, System.Collections.Generic.KeyValuePair<string,object> tag2, System.Collections.Generic.KeyValuePair<string,object> tag3);
abstract member RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.RecordMeasurement : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Protected Overridable Sub RecordMeasurement (measurement As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object), tag3 As KeyValuePair(Of String, Object))

Parameters

measurement
T

The measurement value.

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

tag3
KeyValuePair<String,Object>

A third key-value pair tag associated with the measurement.

Applies to