Metric Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.Metric

Implements

public final class Metric
implements JsonSerializable<Metric>

Metric entry for migration peering statistics.

Method Summary

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

Reads an instance of Metric from the JsonReader.

String name()

Get the name property: The metric name.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The metric unit.

void validate()

Validates the instance.

Double value()

Get the value property: The metric value.

Methods inherited from java.lang.Object

Method Details

fromJson

public static Metric fromJson(JsonReader jsonReader)

Reads an instance of Metric from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The metric name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The metric unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

value

public Double value()

Get the value property: The metric value.

Returns:

the value value.

Applies to