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

AutoStopCriteria Class

Definition

Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.

public class AutoStopCriteria : System.ClientModel.Primitives.IJsonModel<Azure.Developer.LoadTesting.AutoStopCriteria>, System.ClientModel.Primitives.IPersistableModel<Azure.Developer.LoadTesting.AutoStopCriteria>
type AutoStopCriteria = class
    interface IJsonModel<AutoStopCriteria>
    interface IPersistableModel<AutoStopCriteria>
Public Class AutoStopCriteria
Implements IJsonModel(Of AutoStopCriteria), IPersistableModel(Of AutoStopCriteria)
Inheritance
AutoStopCriteria
Implements

Constructors

AutoStopCriteria()

Initializes a new instance of AutoStopCriteria.

Properties

AutoStopDisabled

Whether auto-stop should be disabled. The default value is false.

ErrorRate

Threshold percentage of errors on which test run should be automatically stopped. Allowed values are in range of 0.0-100.0.

ErrorRateTimeWindow

Time window during which the error percentage should be evaluated in seconds.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AutoStopCriteria>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AutoStopCriteria>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AutoStopCriteria>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AutoStopCriteria>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AutoStopCriteria>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to