Metric Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. Metric
- com.
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 Json |
| String |
name()
Get the name property: The metric name. |
|
Json |
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:
Returns:
Throws:
name
public String name()
Get the name property: The metric name.
Returns:
toJson
unit
public String unit()
Get the unit property: The metric unit.
Returns:
validate
public void validate()
Validates the instance.
value
public Double value()
Get the value property: The metric value.
Returns: