Table of Contents

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

name string

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

string

Transform

Gets or sets the value transformation applied before emitting the metric sample.

public MetricValueTransformType Transform { get; init; }

Property Value

MetricValueTransformType