Meter.CreateObservableGauge 方法

定義

多載

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

ObservableGauge 是一種異步檢測,會報告非加總值 () (例如室內溫度 - 從多個會議室報告溫度值並加總檢測) 。

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

ObservableGauge 是一種異步檢測,會報告非加總值 () (例如室內溫度 - 從多個會議室報告溫度值並加總檢測) 。

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

建立 ObservableGauge 實例,這是異步檢測,會在觀察到檢測時報告非加值 () 。

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

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

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

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

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

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

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

來源:
Meter.cs
來源:
Meter.cs

ObservableGauge 是一種異步檢測,會報告非加總值 () (例如室內溫度 - 從多個會議室報告溫度值並加總檢測) 。

public:
generic <typename T>
 where T : value class System::Diagnostics::Metrics::ObservableGauge<T> ^ CreateObservableGauge(System::String ^ name, Func<System::Diagnostics::Metrics::Measurement<T>> ^ observeValue, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
member this.CreateObservableGauge : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValue As Func(Of Measurement(Of T)), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

observeValue
Func<Measurement<T>>

呼叫 以在呼叫 RecordObservableInstruments()Observe()取得度量的回呼。

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

tags
IEnumerable<KeyValuePair<String,Object>>

要附加至計數器的標記。

傳回

新的可觀察量測計。

適用於

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

來源:
Meter.cs
來源:
Meter.cs

ObservableGauge 是一種異步檢測,會報告非加總值 () (例如室內溫度 - 從多個會議室報告溫度值並加總檢測) 。

public:
generic <typename T>
 where T : value class System::Diagnostics::Metrics::ObservableGauge<T> ^ CreateObservableGauge(System::String ^ name, Func<T> ^ observeValue, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<T> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
member this.CreateObservableGauge : string * Func<'T (requires 'T : struct)> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValue As Func(Of T), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

observeValue
Func<T>

呼叫 以在呼叫 RecordObservableInstruments()Observe()取得度量的回呼。

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

tags
IEnumerable<KeyValuePair<String,Object>>

要附加至計數器的標記。

傳回

新的可觀察量測計。

適用於

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

來源:
Meter.cs
來源:
Meter.cs

建立 ObservableGauge 實例,這是異步檢測,會在觀察到檢測時報告非加值 () 。

public:
generic <typename T>
 where T : value class System::Diagnostics::Metrics::ObservableGauge<T> ^ CreateObservableGauge(System::String ^ name, Func<System::Collections::Generic::IEnumerable<System::Diagnostics::Metrics::Measurement<T>> ^> ^ observeValues, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<System.Collections.Generic.IEnumerable<System.Diagnostics.Metrics.Measurement<T>>> observeValues, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
member this.CreateObservableGauge : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValues As Func(Of IEnumerable(Of Measurement(Of T))), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可為 null

observeValues
Func<IEnumerable<Measurement<T>>>

呼叫 以在呼叫 RecordObservableInstruments()Observe()取得度量的回呼。

unit
String

選擇性的測量單位。

description
String

選擇性的檢測描述。

tags
IEnumerable<KeyValuePair<String,Object>>

要附加至計數器的標記。

傳回

新的可觀察量測計。

備註

例如:室內溫度 - 報告多個會議室的溫度值並加總值並無意義。

適用於

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

來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<T> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableGauge : string * Func<'T (requires 'T : struct)> * string * string -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValue As Func(Of T), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

observeValue
Func<T>

呼叫 以在呼叫 時 ObservableCounter{T}.Observe() 取得度量的 RecordObservableInstruments()回呼。

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

傳回

新的可觀察量測計。

備註

非加總值的範例是室內溫度;也就是說,報告多個房間的溫度值並加總並不合理。

適用於

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

來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableGauge : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValue As Func(Of Measurement(Of T)), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

observeValue
Func<Measurement<T>>

呼叫 以在呼叫 時 ObservableCounter{T}.Observe() 取得度量的 RecordObservableInstruments()回呼。

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

傳回

新的可觀察量測計。

備註

非加總值的範例是室內溫度;也就是說,報告多個房間的溫度值並加總並不合理。

適用於

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

來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs

建立 ObservableGauge,這是在觀察到檢測時報告非加總值的異步檢測。

public System.Diagnostics.Metrics.ObservableGauge<T> CreateObservableGauge<T> (string name, Func<System.Collections.Generic.IEnumerable<System.Diagnostics.Metrics.Measurement<T>>> observeValues, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableGauge : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string -> System.Diagnostics.Metrics.ObservableGauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableGauge(Of T As Structure) (name As String, observeValues As Func(Of IEnumerable(Of Measurement(Of T))), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableGauge(Of T)

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

observeValues
Func<IEnumerable<Measurement<T>>>

呼叫 以在呼叫 時 ObservableCounter{T}.Observe() 取得度量的 RecordObservableInstruments()回呼。

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

傳回

新的可觀察量測計。

備註

非加總值的範例是室內溫度;也就是說,報告多個房間的溫度值並加總並不合理。

適用於