Class PerfMonSample
java.lang.Object
com.azure.resourcemanager.appservice.models.PerfMonSample
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PerfMonSample>
public final class PerfMonSample
extends Object
implements com.azure.json.JsonSerializable<PerfMonSample>
Performance monitor sample in a set.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerfMonSamplefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PerfMonSample from the JsonReader.Get the instanceName property: Name of the server on which the measurement is made.time()Get the time property: Point in time for which counter was measured.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Value of counter at a certain time.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
time
Get the time property: Point in time for which counter was measured.- Returns:
- the time value.
-
instanceName
Get the instanceName property: Name of the server on which the measurement is made.- Returns:
- the instanceName value.
-
value
Get the value property: Value of counter at a certain time.- Returns:
- the value value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PerfMonSample>- Throws:
IOException
-
fromJson
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.
-