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 Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AutoScaleRun from the JsonReader.
    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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getTimestamp

      public OffsetDateTime getTimestamp()
      Get the timestamp property: The time at which the autoscale formula was last evaluated.
      Returns:
      the timestamp value.
    • getResults

      public String 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

      public AutoScaleRunError 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AutoScaleRun>
      Throws:
      IOException
    • fromJson

      public static AutoScaleRun fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.