Share via


AutoScaleRun Class

  • java.lang.Object
    • com.azure.compute.batch.models.AutoScaleRun

Implements

public final class AutoScaleRun
implements JsonSerializable<AutoScaleRun>

The results and errors from an execution of a Pool autoscale formula.

Method Summary

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

Reads an instance of AutoScaleRun from the JsonReader.

AutoScaleRunError getError()

Get the error property: Details of the error encountered evaluating the autoscale formula on the Pool, if the evaluation was unsuccessful.

String getResults()

Get the results property: The final values of all variables used in the evaluation of the autoscale formula.

OffsetDateTime getTimestamp()

Get the timestamp property: The time at which the autoscale formula was last evaluated.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static AutoScaleRun fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

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.

getTimestamp

public OffsetDateTime getTimestamp()

Get the timestamp property: The time at which the autoscale formula was last evaluated.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to