Share via


Meter.CreateHistogram 方法

定义

重载

CreateHistogram<T>(String, String, String)

创建一个直方图,这是一个可用于报告可能具有统计意义的任意值的工具。 它适用于直方图、摘要和百分位数等统计信息。

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

创建一个直方图实例,该实例是一个可用于报告可能具有统计意义的任意值的工具。 它适用于直方图、摘要和百分位等统计信息。

CreateHistogram<T>(String, String, String)

Source:
Meter.cs
Source:
Meter.cs
Source:
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>>)

Source:
Meter.cs
Source:
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>>

要附加到计数器的标记。

返回

新的直方图。

注解

示例使用直方图:请求持续时间和响应有效负载的大小。

适用于