PeeringStats Class

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

Implements

public final class PeeringStats
implements JsonSerializable<PeeringStats>

Statistical information for a peering connection.

Method Summary

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

Reads an instance of PeeringStats from the JsonReader.

List<Metric> metrics()

Get the metrics property: The collection of peering metrics.

OffsetDateTime timestamp()

Get the timestamp property: The timestamp when these statistics were captured.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static PeeringStats fromJson(JsonReader jsonReader)

Reads an instance of PeeringStats from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metrics

public List<Metric> metrics()

Get the metrics property: The collection of peering metrics.

Returns:

the metrics value.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The timestamp when these statistics were captured.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to