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

PassFailMetric Class

Definition

Pass fail metric.

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

Constructors

PassFailMetric()

Initializes a new instance of PassFailMetric.

Properties

Action

Action taken after the threshold is met. Default is ‘continue’.

ActualValue

The actual value of the client metric for the test run.

Aggregate

The aggregation function to be applied on the client metric. Allowed functions

  • ‘percentage’ - for error metric , ‘avg’, percentiles like ‘p50’, ‘p90’, & so on, ‘min’, ‘max’ - for response_time_ms and latency metric, ‘avg’ - for requests_per_sec, ‘count’ - for requests
ClientMetric

The client metric on which the criteria should be applied.

Condition

The comparison operator. Supported types ‘>’, ‘<’.

RequestName

Request name for which the Pass fail criteria has to be applied.

Result

Outcome of the test run.

Value

The value to compare with the client metric. Allowed values - ‘error : [0.0 , 100.0] unit- % ’, response_time_ms and latency : any integer value unit- ms.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<PassFailMetric>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PassFailMetric>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PassFailMetric>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PassFailMetric>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PassFailMetric>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to