Meter.CreateUpDownCounter Méthode

Définition

Surcharges

Nom Description
CreateUpDownCounter<T>(String, String, String)

Créez un objet UpDownCounter de métriques.

CreateUpDownCounter<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Créez un objet UpDownCounter de métriques.

CreateUpDownCounter<T>(String, String, String)

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Créez un objet UpDownCounter de métriques.

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

Paramètres de type

T

Type numérique de la mesure.

Paramètres

name
String

Nom de l’instrument. Ne peut pas être null.

unit
String

Unité d’instrument facultative de mesures.

description
String

Description facultative de l’instrument.

Retours

Un nouveau compteur vers le haut.

Remarques

UpDownCounter est un instrument qui prend en charge la création de rapports de valeurs de métrique positives ou négatives. Exemple d’utilisation pour UpDownCounter : signaler la modification dans les requêtes actives ou la taille de file d’attente.

S’applique à

CreateUpDownCounter<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Créez un objet UpDownCounter de métriques.

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

Paramètres de type

T

Type numérique de la mesure.

Paramètres

name
String

Nom de l’instrument. Ne peut pas être null.

unit
String

Unité d’instrument facultative de mesures.

description
String

Description facultative de l’instrument.

tags
IEnumerable<KeyValuePair<String,Object>>

balises à attacher au compteur.

Retours

Un nouveau compteur vers le haut.

Remarques

UpDownCounter est un instrument qui prend en charge la création de rapports de valeurs de métrique positives ou négatives. Exemple d’utilisation pour UpDownCounter : signaler la modification dans les requêtes actives ou la taille de file d’attente.

S’applique à