Meter.CreateHistogram Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>) |
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile. |
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Creates an Histogram instance, which is an Instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile. |
CreateHistogram<T>(String) |
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile. |
CreateHistogram<T>(String, String, String) |
Creates a Histogram, which is an instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentiles. |
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>)
- Source:
- Meter.cs
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
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)
Type Parameters
- T
Parameters
- name
- String
The instrument name. Cannot be null
.
- unit
- String
Optional instrument unit of measurements.
- description
- String
Optional instrument description.
- tags
- IEnumerable<KeyValuePair<String,Object>>
Optional tags to attach to the histogram.
- advice
- InstrumentAdvice<T>
Optional InstrumentAdvice<T> to attach to the histogram.
Returns
Remarks
Example uses for Histogram: the request duration and the size of the response payload.
Applies to
CreateHistogram<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Source:
- Meter.cs
- Source:
- Meter.cs
- Source:
- Meter.cs
- Source:
- Meter.cs
Creates an Histogram instance, which is an Instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
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;
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)
Type Parameters
- T
The numerical type of the measurement.
Parameters
- name
- String
The instrument name. It cannot be null
.
- unit
- String
An optional instrument unit of measurements.
- description
- String
An optional instrument description.
- tags
- IEnumerable<KeyValuePair<String,Object>>
The tags to attach to the counter.
Returns
A new histogram.
Remarks
Example uses for Histogram: the request duration and the size of the response payload.
Applies to
CreateHistogram<T>(String)
- Source:
- Meter.cs
Histogram is an Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
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)
Type Parameters
- T
Parameters
- name
- String
The instrument name. Cannot be null
.
Returns
Remarks
Example uses for Histogram: the request duration and the size of the response payload.
Applies to
CreateHistogram<T>(String, String, String)
- Source:
- Meter.cs
- Source:
- Meter.cs
- Source:
- Meter.cs
- Source:
- Meter.cs
- Source:
- Meter.cs
Creates a Histogram, which is an instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentiles.
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)
Type Parameters
- T
The numerical type of the measurement.
Parameters
- name
- String
The instrument name. Cannot be null
.
- unit
- String
Optional instrument unit of measurements.
- description
- String
Optional instrument description.
Returns
A new histogram.
Remarks
Example uses for Histogram: The request duration and the size of the response payload.