Table of Contents

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 MetricStatistic
value double
tags IEnumerable<KeyValuePair<string, string>>

Properties

Statistic

[JsonPropertyName("statistic")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public MetricStatistic Statistic { get; }

Property Value

MetricStatistic

Tags

[JsonIgnore]
public IEnumerable<KeyValuePair<string, string>> Tags { get; set; }

Property Value

IEnumerable<KeyValuePair<string, string>>

Value

[JsonPropertyName("value")]
public double Value { get; }

Property Value

double

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.