PeeringHealth Class

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

Implements

public final class PeeringHealth
implements JsonSerializable<PeeringHealth>

Health information for a peering connection.

Method Summary

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

Reads an instance of PeeringHealth from the JsonReader.

PeeringStats statsAtPrepare()

Get the statsAtPrepare property: The peering statistics captured at prepare phase.

PeeringStats statsCurrent()

Get the statsCurrent property: The current peering statistics.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of peering (for example, Private, Microsoft, Public).

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static PeeringHealth fromJson(JsonReader jsonReader)

Reads an instance of PeeringHealth from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

statsAtPrepare

public PeeringStats statsAtPrepare()

Get the statsAtPrepare property: The peering statistics captured at prepare phase.

Returns:

the statsAtPrepare value.

statsCurrent

public PeeringStats statsCurrent()

Get the statsCurrent property: The current peering statistics.

Returns:

the statsCurrent value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of peering (for example, Private, Microsoft, Public).

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to