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

T

The 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

name string

Name of the histogram.

description string

Description of the histogram.

unit string

UCUM unit of the histogram, such as s for seconds.

Properties

Description

Gets the description of the histogram.

public string Description { get; }

Property Value

string

Name

Gets the name of the histogram.

public string Name { get; }

Property Value

string

Unit

Gets the UCUM unit of the histogram.

public string? Unit { get; }

Property Value

string