Meter.CreateGauge 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateGauge<T>(String) | |
CreateGauge<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
CreateGauge<T>(String)
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::Gauge<T> ^ CreateGauge(System::String ^ name);
public System.Diagnostics.Metrics.Gauge<T> CreateGauge<T> (string name) where T : struct;
member this.CreateGauge : string -> System.Diagnostics.Metrics.Gauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateGauge(Of T As Structure) (name As String) As Gauge(Of T)
类型参数
- T
参数
- name
- String
返回
适用于
CreateGauge<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)
public System.Diagnostics.Metrics.Gauge<T> CreateGauge<T> (string name, string? unit = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default) where T : struct;
member this.CreateGauge : string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Gauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateGauge(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) As Gauge(Of T)
类型参数
- T
参数
- name
- String
- unit
- String
- description
- String
- tags
- IEnumerable<KeyValuePair<String,Object>>
返回
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈