Meter.CreateHistogram 方法

定義

多載

CreateHistogram<T>(String, String, String)

建立直方圖,這是一種檢測,可用來報告可能具有統計意義的任意值。 它適用於直方圖、摘要和百分位數等統計數據。

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

建立直方圖實例,這是一種檢測,可用來報告可能具有統計意義的任意值。 它適用於直方圖、摘要和百分位數等統計數據。

CreateHistogram<T>(String, String, String)

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

建立直方圖,這是一種檢測,可用來報告可能具有統計意義的任意值。 它適用於直方圖、摘要和百分位數等統計數據。

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

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可以是 null

unit
String

選擇性的測量單位。

description
String

選擇性檢測描述。

傳回

新的直方圖。

備註

直方圖的範例用法:要求持續時間和響應承載的大小。

適用於

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

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

建立直方圖實例,這是一種檢測,可用來報告可能具有統計意義的任意值。 它適用於直方圖、摘要和百分位數等統計數據。

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

類型參數

T

度量的數值型別。

參數

name
String

檢測名稱。 不可為 null

unit
String

選擇性的測量單位。

description
String

選擇性的檢測描述。

tags
IEnumerable<KeyValuePair<String,Object>>

要附加至計數器的標記。

傳回

新的直方圖。

備註

直方圖的範例用法:要求持續時間和響應承載的大小。

適用於