Class MetricDeclaration
An application metric and where its value comes from.
public sealed class MetricDeclaration
- Inheritance
-
MetricDeclaration
- Inherited Members
Properties
Codec
How the value travels.
public Codec Codec { get; }
Property Value
Index
The order this metric was declared in. Not the wire index, which starts above the engine's reserved range.
public int Index { get; }
Property Value
Kind
Gauge or counter.
public MetricKind Kind { get; }
Property Value
Labels
The labels, empty when the metric contributes one value.
public IReadOnlyList<string> Labels { get; }
Property Value
Name
The metric's name.
public string Name { get; }
Property Value
Unit
Its unit.
public string Unit { get; }
Property Value
Methods
ToString()
public override string ToString()