Table of Contents

Class MetricSample

Namespace
Moongate.Server.Metrics.Data
Assembly
Moongate.Server.Metrics.dll

Represents one collected metric data point.

public sealed record MetricSample : IEquatable<MetricSample>
Inheritance
MetricSample
Implements
Inherited Members

Constructors

MetricSample(string, double, DateTimeOffset?, IReadOnlyDictionary<string, string>?, MetricType, string?)

Represents one collected metric data point.

public MetricSample(string Name, double Value, DateTimeOffset? Timestamp = null, IReadOnlyDictionary<string, string>? Tags = null, MetricType Type = MetricType.Gauge, string? Help = null)

Parameters

Name string
Value double
Timestamp DateTimeOffset?
Tags IReadOnlyDictionary<string, string>
Type MetricType
Help string

Properties

Help

public string? Help { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Tags

public IReadOnlyDictionary<string, string>? Tags { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Timestamp

public DateTimeOffset? Timestamp { get; init; }

Property Value

DateTimeOffset?

Type

public MetricType Type { get; init; }

Property Value

MetricType

Value

public double Value { get; init; }

Property Value

double