語言

Meter.CreateUpDownCounter 方法

定義

多載

名稱 Description
CreateUpDownCounter<T>(String, String, String)

建立一個 Metrics UpDownCounter 物件。

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

建立一個 Metrics UpDownCounter 物件。

CreateUpDownCounter<T>(String, String, String)

來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs

建立一個 Metrics 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)

類型參數

T

測量的數字類型。

參數

name
String

樂器名稱。 不可以是 null。

unit
String

可選的儀器計量單位。

description
String

可選的儀器說明。

傳回

一個新的上下計數器。

備註

UpDownCounter 是一種支援報告正負指標值的工具。 UpDownCounter 的範例用途:報告活躍請求或佇列大小的變化。

適用於

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

來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs
來源:
Meter.cs

建立一個 Metrics 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;
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)

類型參數

T

測量的數字類型。

參數

name
String

樂器名稱。 不可以是 null。

unit
String

可選的儀器計量單位。

description
String

可選的儀器說明。

tags
IEnumerable<KeyValuePair<String,Object>>

標籤要貼在櫃檯上。

傳回

一個新的上下計數器。

備註

UpDownCounter 是一種支援報告正負指標值的工具。 UpDownCounter 的範例用途:報告活躍請求或佇列大小的變化。

適用於