MetricAvailability Class

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

Implements

public final class MetricAvailability
implements JsonSerializable<MetricAvailability>

Metric availability specifies the time grain (aggregation interval or frequency).

Method Summary

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

Reads an instance of MetricAvailability from the JsonReader.

TimeGrain getTimeGrain()

Get the timeGrain property: The time grain specifies the aggregation interval for the metric.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetricAvailability fromJson(JsonReader jsonReader)

Reads an instance of MetricAvailability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricAvailability 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 MetricAvailability.

getTimeGrain

public TimeGrain getTimeGrain()

Get the timeGrain property: The time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'PT1H', etc.

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to