Class MetricMetadataAttribute
Attribute to provide more information about a metric, such as a custom name and units.
Inherited Members
Namespace: Unity.Multiplayer.Tools.NetStats
Assembly: Unity.Multiplayer.Tools.NetStats.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class MetricMetadataAttribute : Attribute
Properties
DisplayAsPercentage
Toggle for the metric to be shown as a percentage. This should only be used for unitless metrics.
Declaration
public bool DisplayAsPercentage { get; set; }
Property Value
Type | Description |
---|---|
bool |
DisplayName
The custom display name to show for a metric.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
MetricKind
The kind of metric. By default, the metric is a counter.
Declaration
public MetricKind MetricKind { get; set; }
Property Value
Type | Description |
---|---|
Metric |
Units
The units for the metric. By default, there are no units.
Declaration
public Units Units { get; set; }
Property Value
Type | Description |
---|---|
Units |