Class MetricSample
- Namespace
- Steeltoe.Management.OpenTelemetry.Metrics
- Assembly
- Steeltoe.Management.OpenTelemetryBase.dll
public class MetricSample
- Inheritance
-
MetricSample
- Inherited Members
Constructors
MetricSample(MetricStatistic, double, IEnumerable<KeyValuePair<string, string>>)
public MetricSample(MetricStatistic statistic, double value, IEnumerable<KeyValuePair<string, string>> tags = null)
Parameters
statistic
MetricStatisticvalue
doubletags
IEnumerable<KeyValuePair<string, string>>
Properties
Statistic
[JsonPropertyName("statistic")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public MetricStatistic Statistic { get; }
Property Value
Tags
[JsonIgnore]
public IEnumerable<KeyValuePair<string, string>> Tags { get; set; }
Property Value
Value
[JsonPropertyName("value")]
public double Value { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.