Package com.azure.compute.batch.models
Class AutoScaleRun
java.lang.Object
com.azure.compute.batch.models.AutoScaleRun
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoScaleRun>
public final class AutoScaleRun
extends Object
implements com.azure.json.JsonSerializable<AutoScaleRun>
The results and errors from an execution of a Pool autoscale formula.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutoScaleRunfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoScaleRun from the JsonReader.getError()Get the error property: Details of the error encountered evaluating the autoscale formula on the Pool, if the evaluation was unsuccessful.Get the results property: The final values of all variables used in the evaluation of the autoscale formula.Get the timestamp property: The time at which the autoscale formula was last evaluated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
getTimestamp
Get the timestamp property: The time at which the autoscale formula was last evaluated.- Returns:
- the timestamp value.
-
getResults
Get the results property: The final values of all variables used in the evaluation of the autoscale formula. Each variable value is returned in the form $variable=value, and variables are separated by semicolons.- Returns:
- the results value.
-
getError
Get the error property: Details of the error encountered evaluating the autoscale formula on the Pool, if the evaluation was unsuccessful.- Returns:
- the error value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutoScaleRun>- Throws:
IOException
-
fromJson
Reads an instance of AutoScaleRun from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AutoScaleRun if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AutoScaleRun.
-