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

PassFailServerMetric Constructor

Definition

Initializes a new instance of PassFailServerMetric.

public PassFailServerMetric(Azure.Core.ResourceIdentifier resourceId, string metricNamespace, string metricName, string aggregation, string condition, double value);
new Azure.Developer.LoadTesting.PassFailServerMetric : Azure.Core.ResourceIdentifier * string * string * string * string * double -> Azure.Developer.LoadTesting.PassFailServerMetric
Public Sub New (resourceId As ResourceIdentifier, metricNamespace As String, metricName As String, aggregation As String, condition As String, value As Double)

Parameters

resourceId
ResourceIdentifier

The resource id of the resource emitting the metric.

metricNamespace
String

The server metric namespace.

metricName
String

The server metric name.

aggregation
String

Aggregation Type.

condition
String

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

value
Double

The value to compare with the server metric.

Exceptions

resourceId, metricNamespace, metricName, aggregation or condition is null.

Applies to