Class MetricAttribute
- Namespace
- Moongate.Server.Metrics.Data.Attributes
- Assembly
- Moongate.Server.Metrics.dll
Declares a metric sample mapping for a snapshot property.
[AttributeUsage(AttributeTargets.Property)]
public sealed class MetricAttribute : Attribute
- Inheritance
-
MetricAttribute
- Inherited Members
Constructors
MetricAttribute(string)
public MetricAttribute(string name)
Parameters
namestring
Properties
Aliases
Gets or sets optional alias metric names emitted with the same value.
public string[] Aliases { get; init; }
Property Value
- string[]
Name
Gets the metric name emitted for the annotated property.
public string Name { get; }
Property Value
Transform
Gets or sets the value transformation applied before emitting the metric sample.
public MetricValueTransformType Transform { get; init; }