Meter.CreateHistogram 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>) | |
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
创建直方图实例,该实例是一种检测,可用于报告可能具有统计意义的任意值。 它适用于直方图、摘要和百分位数等统计信息。 |
CreateHistogram<T>(String) | |
CreateHistogram<T>(String, String, String) |
创建直方图,它是一种可用于报告可能具有统计意义的任意值的工具。 它适用于直方图、摘要和百分位数等统计信息。 |
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>)
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T> (string name, string? unit = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default, System.Diagnostics.Metrics.InstrumentAdvice<T>? advice = default) where T : struct;
member this.CreateHistogram : string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> * System.Diagnostics.Metrics.InstrumentAdvice<'T (requires 'T : struct)> -> 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, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing, Optional advice As InstrumentAdvice(Of T) = Nothing) As Histogram(Of T)
类型参数
- T
参数
- name
- String
- unit
- String
- description
- String
- tags
- IEnumerable<KeyValuePair<String,Object>>
- advice
- InstrumentAdvice<T>
返回
适用于
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>>
要附加到计数器的标记。
返回
新的直方图。
注解
直方图的示例使用:请求持续时间和响应有效负载的大小。
适用于
CreateHistogram<T>(String)
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::Histogram<T> ^ CreateHistogram(System::String ^ name);
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T> (string name) where T : struct;
member this.CreateHistogram : string -> System.Diagnostics.Metrics.Histogram<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateHistogram(Of T As Structure) (name As String) As Histogram(Of T)
类型参数
- T
参数
- name
- String
返回
适用于
CreateHistogram<T>(String, String, String)
- Source:
- Meter.cs
- 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);
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T> (string name, string? unit = default, string? description = default) where T : struct;
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T> (string name, string? unit, string? description) 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)
Public Function CreateHistogram(Of T As Structure) (name As String, unit As String, description As String) As Histogram(Of T)
类型参数
- T
度量的数字类型。
参数
- name
- String
检测名称。 不能 null
。
- unit
- String
可选的测量单位。
- description
- String
可选检测说明。
返回
新的直方图。
注解
直方图的示例:请求持续时间和响应有效负载的大小。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈