Meter.CreateObservableCounter Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
CreateObservableCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String) |
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String) |
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<T>, String, String) |
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje. |
CreateObservableCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableCounter<T> ^ CreateObservableCounter(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.ObservableCounter<T> CreateObservableCounter<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.CreateObservableCounter : string * Func<'T (requires 'T : struct)> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(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 ObservableCounter(Of T)
Parametry typu
- T
Číselný typ měření.
Parametry
- name
- String
Název nástroje. Nemůže to být null
.
- observeValue
- Func<T>
Zpětné volání, které se má volat, aby získalo měření při Observe() volání pomocí 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ý čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableCounter<T> ^ CreateObservableCounter(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.ObservableCounter<T> CreateObservableCounter<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.CreateObservableCounter : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(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 ObservableCounter(Of T)
Parametry typu
- T
Číselný typ měření.
Parametry
- name
- String
Název nástroje. Nemůže to být null
.
- observeValue
- Func<Measurement<T>>
Zpětné volání, které se má volat, aby získalo měření, když Observe() je volán 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ý čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří instanci ObservableCounter, což je instrument, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableCounter<T> ^ CreateObservableCounter(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.ObservableCounter<T> CreateObservableCounter<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.CreateObservableCounter : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(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 ObservableCounter(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, aby získalo měření při Observe() volání pomocí 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ý čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
CreateObservableCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public System.Diagnostics.Metrics.ObservableCounter<T> CreateObservableCounter<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.CreateObservableCounter : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(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 ObservableCounter(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, aby získalo měření při ObservableCounter{T}.Observe()
volání pomocí RecordObservableInstruments().
- unit
- String
Volitelná přístrojová jednotka měření.
- description
- String
Volitelný popis nástroje.
Návraty
Nový pozorovatelný čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
CreateObservableCounter<T>(String, Func<Measurement<T>>, String, String)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public System.Diagnostics.Metrics.ObservableCounter<T> CreateObservableCounter<T> (string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableCounter : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(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 ObservableCounter(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í při ObservableCounter{T}.Observe()
volání uživatelem RecordObservableInstruments()
- unit
- String
Volitelná přístrojová jednotka měření.
- description
- String
Volitelný popis nástroje.
Návraty
Nový pozorovatelný čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
CreateObservableCounter<T>(String, Func<T>, String, String)
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
- Zdroj:
- Meter.cs
Vytvoří ObservableCounter, což je nástroj, který hlásí monotónně rostoucí hodnoty při sledování nástroje.
public System.Diagnostics.Metrics.ObservableCounter<T> CreateObservableCounter<T> (string name, Func<T> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableCounter : string * Func<'T (requires 'T : struct)> * string * string -> System.Diagnostics.Metrics.ObservableCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableCounter(Of T As Structure) (name As String, observeValue As Func(Of T), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableCounter(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, aby získalo měření při ObservableCounter{T}.Observe()
volání pomocí RecordObservableInstruments().
- unit
- String
Volitelná přístrojová jednotka měření.
- description
- String
Volitelný popis nástroje.
Návraty
Nový pozorovatelný čítač.
Poznámky
Příklad použití pro ObservableCounter: Počet chyb stránky pro každý proces.
Platí pro
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro