Прочитај на енглеском Уреди

Делите путем


Meter.CreateHistogram Method

Definition

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.

C#
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;

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

.NET 10 и друге верзије
Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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.

C#
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;
C#
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;

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

.NET 10 и друге верзије
Производ Верзије
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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.

C#
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T>(string name) where T : struct;

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

.NET 10 и друге верзије
Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

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.

C#
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T>(string name, string? unit, string? description) where T : struct;
C#
public System.Diagnostics.Metrics.Histogram<T> CreateHistogram<T>(string name, string? unit = default, string? description = default) where T : struct;

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.

Applies to

.NET 10 и друге верзије
Производ Верзије
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)