Condividi tramite


ComputeBatchModelFactory.AutoScaleRun Method

Definition

Initializes a new instance of AutoScaleRun.

public static Azure.Compute.Batch.AutoScaleRun AutoScaleRun (DateTimeOffset timestamp = default, string results = default, Azure.Compute.Batch.AutoScaleRunError error = default);
static member AutoScaleRun : DateTimeOffset * string * Azure.Compute.Batch.AutoScaleRunError -> Azure.Compute.Batch.AutoScaleRun
Public Shared Function AutoScaleRun (Optional timestamp As DateTimeOffset = Nothing, Optional results As String = Nothing, Optional error As AutoScaleRunError = Nothing) As AutoScaleRun

Parameters

timestamp
DateTimeOffset

The time at which the autoscale formula was last evaluated.

results
String

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.

error
AutoScaleRunError

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

Returns

A new AutoScaleRun instance for mocking.

Applies to