Meter.CreateUpDownCounter Metodo

Definizione

Overload

CreateUpDownCounter<T>(String, String, String)

Creare un oggetto UpDownCounter metrics.

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

Creare un oggetto UpDownCounter metrics.

CreateUpDownCounter<T>(String, String, String)

Origine:
Meter.cs
Origine:
Meter.cs
Origine:
Meter.cs

Creare un oggetto UpDownCounter metrics.

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)

Parametri di tipo

T

Tipo numerico della misura.

Parametri

name
String

Nome dello strumento. Non può essere null.

unit
String

Unità di misura facoltativa degli strumenti.

description
String

Descrizione facoltativa dello strumento.

Restituisce

Nuovo contatore verso il basso.

Commenti

UpDownCounter è uno strumento che supporta la segnalazione di valori di metrica positivi o negativi. Usi di esempio per UpDownCounter: segnalazione della modifica nelle richieste attive o nelle dimensioni della coda.

Si applica a

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

Origine:
Meter.cs
Origine:
Meter.cs

Creare un oggetto UpDownCounter metrics.

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;
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)

Parametri di tipo

T

Tipo numerico della misura.

Parametri

name
String

Nome dello strumento. Non può essere null.

unit
String

Unità di misura facoltativa degli strumenti.

description
String

Descrizione facoltativa dello strumento.

tags
IEnumerable<KeyValuePair<String,Object>>

tag da allegare al contatore.

Restituisce

Nuovo contatore verso il basso.

Commenti

UpDownCounter è uno strumento che supporta la segnalazione di valori di metrica positivi o negativi. Usi di esempio per UpDownCounter: segnalazione della modifica nelle richieste attive o nelle dimensioni della coda.

Si applica a