PassFailServerMetric Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. PassFailServerMetric
- com.
Implements
public final class PassFailServerMetric
implements JsonSerializable<PassFailServerMetric>
Pass fail server metric.
Constructor Summary
| Constructor | Description |
|---|---|
| PassFailServerMetric() |
Creates an instance of Pass |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Pass |
fromJson(JsonReader jsonReader)
Reads an instance of Pass |
|
Pass |
getAction()
Get the action property: Action taken after the threshold is met. |
| Double |
getActualValue()
Get the actual |
| String |
getAggregation()
Get the aggregation property: Aggregation Type. |
| String |
getCondition()
Get the condition property: The comparison operator. |
| String |
getMetricName()
Get the metric |
| String |
getMetricNamespace()
Get the metric |
| String |
getResourceId()
Get the resource |
|
Pass |
getResult()
Get the result property: Outcome of the test run. |
| double |
getValue()
Get the value property: The value to compare with the server metric. |
|
Pass |
setAction(PassFailAction action)
Set the action property: Action taken after the threshold is met. |
|
Pass |
setAggregation(String aggregation)
Set the aggregation property: Aggregation Type. |
|
Pass |
setCondition(String condition)
Set the condition property: The comparison operator. |
|
Pass |
setMetricName(String metricName)
Set the metric |
|
Pass |
setMetricNamespace(String metricNamespace)
Set the metric |
|
Pass |
setResourceId(String resourceId)
Set the resource |
|
Pass |
setValue(double value)
Set the value property: The value to compare with the server metric. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
PassFailServerMetric
public PassFailServerMetric()
Creates an instance of PassFailServerMetric class.
Method Details
fromJson
public static PassFailServerMetric fromJson(JsonReader jsonReader)
Reads an instance of PassFailServerMetric from the JsonReader.
Parameters:
Returns:
Throws:
getAction
public PassFailAction getAction()
Get the action property: Action taken after the threshold is met. Default is ‘continue’.
Returns:
getActualValue
public Double getActualValue()
Get the actualValue property: The actual value of the server metric.
Returns:
getAggregation
public String getAggregation()
Get the aggregation property: Aggregation Type.
Returns:
getCondition
public String getCondition()
Get the condition property: The comparison operator. Supported types ‘>’, ‘<’.
Returns:
getMetricName
public String getMetricName()
Get the metricName property: The server metric name.
Returns:
getMetricNamespace
public String getMetricNamespace()
Get the metricNamespace property: The server metric namespace.
Returns:
getResourceId
public String getResourceId()
Get the resourceId property: The resource id of the resource emitting the metric.
Returns:
getResult
public PassFailResult getResult()
Get the result property: Outcome of the test run.
Returns:
getValue
public double getValue()
Get the value property: The value to compare with the server metric.
Returns:
setAction
public PassFailServerMetric setAction(PassFailAction action)
Set the action property: Action taken after the threshold is met. Default is ‘continue’.
Parameters:
Returns:
setAggregation
public PassFailServerMetric setAggregation(String aggregation)
Set the aggregation property: Aggregation Type.
Required when create the resource.
Parameters:
Returns:
setCondition
public PassFailServerMetric setCondition(String condition)
Set the condition property: The comparison operator. Supported types ‘>’, ‘<’.
Required when create the resource.
Parameters:
Returns:
setMetricName
public PassFailServerMetric setMetricName(String metricName)
Set the metricName property: The server metric name.
Required when create the resource.
Parameters:
Returns:
setMetricNamespace
public PassFailServerMetric setMetricNamespace(String metricNamespace)
Set the metricNamespace property: The server metric namespace.
Required when create the resource.
Parameters:
Returns:
setResourceId
public PassFailServerMetric setResourceId(String resourceId)
Set the resourceId property: The resource id of the resource emitting the metric.
Required when create the resource.
Parameters:
Returns:
setValue
public PassFailServerMetric setValue(double value)
Set the value property: The value to compare with the server metric.
Required when create the resource.
Parameters:
Returns: