Table of Contents

Class MetricData

Namespace
DotCompute.Abstractions.Interfaces.Telemetry
Assembly
DotCompute.Abstractions.dll

Represents a metric data point.

public class MetricData
Inheritance
MetricData
Inherited Members

Properties

Name

Gets or sets the metric name.

public required string Name { get; init; }

Property Value

string

Tags

Gets or sets the tags/dimensions.

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

Property Value

IDictionary<string, object>

Timestamp

Gets or sets the timestamp.

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

Type

Gets or sets the metric type.

public MetricType Type { get; init; }

Property Value

MetricType

Unit

Gets or sets the unit of measurement.

public string? Unit { get; init; }

Property Value

string

Value

Gets or sets the metric value.

public required double Value { get; init; }

Property Value

double