AutoScaleRun Class

  • java.lang.Object
    • com.azure.resourcemanager.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
AutoScaleRunError error()

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

OffsetDateTime evaluationTime()

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

static AutoScaleRun fromJson(JsonReader jsonReader)

Reads an instance of AutoScaleRun from the JsonReader.

String results()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

error

public AutoScaleRunError error()

Get the error property: Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful. An error that occurred when autoscaling a pool.

Returns:

the error value.

evaluationTime

public OffsetDateTime evaluationTime()

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

Returns:

the evaluationTime value.

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.

results

public String results()

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to