Share via


Meter.CreateUpDownCounter Método

Definición

Sobrecargas

CreateUpDownCounter<T>(String, String, String)

Create un objeto UpDownCounter de métricas.

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

Create un objeto UpDownCounter de métricas.

CreateUpDownCounter<T>(String, String, String)

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

Create un objeto UpDownCounter de métricas.

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)

Parámetros de tipo

T

Tipo numérico de la medida.

Parámetros

name
String

Nombre del instrumento. El valor no puede ser null.

unit
String

Unidad de instrumento opcional de medidas.

description
String

Descripción opcional del instrumento.

Devoluciones

Un nuevo contador hacia abajo.

Comentarios

UpDownCounter es un instrumento que admite la generación de informes de valores de métrica positivos o negativos. Usos de ejemplo para UpDownCounter: notificar el cambio en las solicitudes activas o el tamaño de la cola.

Se aplica a

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

Source:
Meter.cs
Source:
Meter.cs

Create un objeto UpDownCounter de métricas.

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)

Parámetros de tipo

T

Tipo numérico de la medida.

Parámetros

name
String

Nombre del instrumento. El valor no puede ser null.

unit
String

Unidad de instrumento opcional de medidas.

description
String

Descripción opcional del instrumento.

tags
IEnumerable<KeyValuePair<String,Object>>

etiquetas que se van a adjuntar al contador.

Devoluciones

Un nuevo contador hacia abajo.

Comentarios

UpDownCounter es un instrumento que admite la generación de informes de valores de métrica positivos o negativos. Usos de ejemplo para UpDownCounter: notificar el cambio en las solicitudes activas o el tamaño de la cola.

Se aplica a