Class MetricSample
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
NamestringValuedoubleTimestampDateTimeOffset?TagsIReadOnlyDictionary<string, string>TypeMetricTypeHelpstring
Properties
Help
public string? Help { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Tags
public IReadOnlyDictionary<string, string>? Tags { get; init; }
Property Value
Timestamp
public DateTimeOffset? Timestamp { get; init; }
Property Value
Type
public MetricType Type { get; init; }
Property Value
Value
public double Value { get; init; }