Share via


Meter.CreateObservableGauge Metoda

Definice

Přetížení

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

ObservableGauge je asynchronní nástroj, který hlásí nepřičítané hodnoty (např. teplotu v místnosti – nemá smysl hlásit hodnotu teploty z více místností a sečíst je) při pozorování přístroje.

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

ObservableGauge je asynchronní nástroj, který hlásí nepřičítané hodnoty (např. teplotu v místnosti – nemá smysl hlásit hodnotu teploty z více místností a sečíst je) při pozorování přístroje.

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

Vytvoří instanci ObservableGauge, což je asynchronní instrument, který hlásí hodnoty, které nejsou při pozorování nástroje.

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

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs

ObservableGauge je asynchronní nástroj, který hlásí nepřičítané hodnoty (např. teplotu v místnosti – nemá smysl hlásit hodnotu teploty z více místností a sečíst je) při pozorování přístroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. nemůže být null.

observeValue
Func<Measurement<T>>

Zpětné volání, které se má volat, za účelem získání měření, když Observe() je volán metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

tags
IEnumerable<KeyValuePair<String,Object>>

značky pro připojení k čítači.

Návraty

Nové pozorovatelné měřidlo.

Platí pro

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs

ObservableGauge je asynchronní nástroj, který hlásí nepřičítané hodnoty (např. teplotu v místnosti – nemá smysl hlásit hodnotu teploty z více místností a sečíst je) při pozorování přístroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. nemůže být null.

observeValue
Func<T>

Zpětné volání, které se má volat, za účelem získání měření, když Observe() je volán metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

tags
IEnumerable<KeyValuePair<String,Object>>

značky pro připojení k čítači.

Návraty

Nové pozorovatelné měřidlo.

Platí pro

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs

Vytvoří instanci ObservableGauge, což je asynchronní instrument, který hlásí hodnoty, které nejsou při pozorování nástroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. Nemůže to být null.

observeValues
Func<IEnumerable<Measurement<T>>>

Zpětné volání, které se má volat, za účelem získání měření, když Observe() je volán metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

tags
IEnumerable<KeyValuePair<String,Object>>

Značky, které se mají připojit k čítači.

Návraty

Nové pozorovatelné měřidlo.

Poznámky

Příklad: Teplota místnosti – nemá smysl hlásit hodnotu teploty z více místností a sečíst je.

Platí pro

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs
Zdroj:
Meter.cs

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. Nemůže být null.

observeValue
Func<T>

Zpětné volání, které se má volat za účelem získání měření, když ObservableCounter{T}.Observe() je volána metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

Návraty

Nové pozorovatelné měřidlo.

Poznámky

Příkladem nesoudiční hodnoty je teplota místnosti; to znamená, že nemá smysl hlásit hodnotu teploty z více místností a sečíst je.

Platí pro

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs
Zdroj:
Meter.cs

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. Nemůže být null.

observeValue
Func<Measurement<T>>

Zpětné volání, které se má volat za účelem získání měření, když ObservableCounter{T}.Observe() je volána metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

Návraty

Nové pozorovatelné měřidlo.

Poznámky

Příkladem nesoudiční hodnoty je teplota místnosti; to znamená, že nemá smysl hlásit hodnotu teploty z více místností a sečíst je.

Platí pro

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

Zdroj:
Meter.cs
Zdroj:
Meter.cs
Zdroj:
Meter.cs

Vytvoří ObservableGauge, což je asynchronní nástroj, který hlásí hodnoty, které nejsou přídatné při pozorování nástroje.

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)

Parametry typu

T

Číselný typ měření

Parametry

name
String

Název nástroje. Nemůže být null.

observeValues
Func<IEnumerable<Measurement<T>>>

Zpětné volání, které se má volat za účelem získání měření, když ObservableCounter{T}.Observe() je volána metodou RecordObservableInstruments().

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

Návraty

Nové pozorovatelné měřidlo.

Poznámky

Příkladem nesoudiční hodnoty je teplota místnosti; to znamená, že nemá smysl hlásit hodnotu teploty z více místností a sečíst je.

Platí pro