MetricValue Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.MetricValue

Implements

public final class MetricValue
implements JsonSerializable<MetricValue>

Represents a metric value.

Method Summary

Modifier and Type Method and Description
static MetricValue fromJson(JsonReader jsonReader)

Reads an instance of MetricValue from the JsonReader.

OffsetDateTime getTimestamp()

Get the timestamp property: The timestamp for the metric value in RFC 3339 format.

Double getValue()

Get the value property: The metric value.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetricValue fromJson(JsonReader jsonReader)

Reads an instance of MetricValue from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MetricValue.

getTimestamp

public OffsetDateTime getTimestamp()

Get the timestamp property: The timestamp for the metric value in RFC 3339 format.

Returns:

the timestamp value.

getValue

public Double getValue()

Get the value property: The metric value.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to