Class HistogramAttribute<T>
- Namespace
- Cratis.Metrics
- Assembly
- Cratis.Fundamentals.dll
Marks a method that records a distribution of measurements.
[AttributeUsage(AttributeTargets.Method)]
public sealed class HistogramAttribute<T> : Attribute
Type Parameters
TThe numeric measurement type.
- Inheritance
-
HistogramAttribute<T>
- Inherited Members
- Extension Methods
Constructors
HistogramAttribute(string, string, string?)
Marks a method that records a distribution of measurements.
public HistogramAttribute(string name, string description, string? unit = null)
Parameters
namestringName of the histogram.
descriptionstringDescription of the histogram.
unitstringUCUM unit of the histogram, such as s for seconds.
Properties
Description
Gets the description of the histogram.
public string Description { get; }
Property Value
Name
Gets the name of the histogram.
public string Name { get; }
Property Value
Unit
Gets the UCUM unit of the histogram.
public string? Unit { get; }