Condividi tramite


PerfMonSample Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.PerfMonSample

Implements

public final class PerfMonSample
implements JsonSerializable<PerfMonSample>

Performance monitor sample in a set.

Method Summary

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

Reads an instance of PerfMonSample from the JsonReader.

String instanceName()

Get the instanceName property: Name of the server on which the measurement is made.

OffsetDateTime time()

Get the time property: Point in time for which counter was measured.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Double value()

Get the value property: Value of counter at a certain time.

Methods inherited from java.lang.Object

Method Details

fromJson

public static PerfMonSample fromJson(JsonReader jsonReader)

Reads an instance of PerfMonSample from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceName

public String instanceName()

Get the instanceName property: Name of the server on which the measurement is made.

Returns:

the instanceName value.

time

public OffsetDateTime time()

Get the time property: Point in time for which counter was measured.

Returns:

the time value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Double value()

Get the value property: Value of counter at a certain time.

Returns:

the value value.

Applies to