Share via


Meter.CreateUpDownCounter Metodo

Definizione

Overload

CreateUpDownCounter<T>(String, String, String)

Create un oggetto UpDownCounter.

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

Create un oggetto UpDownCounter.

CreateUpDownCounter<T>(String, String, String)

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

Create un oggetto UpDownCounter.

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à strumento facoltativa delle misurazioni.

description
String

Descrizione dello strumento facoltativo.

Restituisce

Nuovo contatore verso il basso.

Commenti

UpDownCounter è uno strumento che supporta la segnalazione di valori di metrica positivi o negativi. L'esempio usa per UpDownCounter: segnalando la modifica delle richieste attive o delle dimensioni della coda.

Si applica a

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

Source:
Meter.cs
Source:
Meter.cs

Create un oggetto UpDownCounter.

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à strumento facoltativa delle misurazioni.

description
String

Descrizione dello strumento facoltativo.

tags
IEnumerable<KeyValuePair<String,Object>>

tag da collegare al contatore.

Restituisce

Nuovo contatore verso il basso.

Commenti

UpDownCounter è uno strumento che supporta la segnalazione di valori di metrica positivi o negativi. L'esempio usa per UpDownCounter: segnalando la modifica delle richieste attive o delle dimensioni della coda.

Si applica a