你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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