Class WebtestLocationAvailabilityCriteria
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertCriteria
com.azure.resourcemanager.monitor.models.WebtestLocationAvailabilityCriteria
Specifies the metric alert rule criteria for a web test resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebtestLocationAvailabilityCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentId property: The Application Insights resource Id.floatGet the failedLocationCount property: The number of failed locations.voidvalidate()Validates the instance.Get the webTestId property: The Application Insights web test Id.withComponentId(String componentId) Set the componentId property: The Application Insights resource Id.withFailedLocationCount(float failedLocationCount) Set the failedLocationCount property: The number of failed locations.withWebTestId(String webTestId) Set the webTestId property: The Application Insights web test Id.Methods inherited from class com.azure.resourcemanager.monitor.models.MetricAlertCriteria
additionalProperties, withAdditionalProperties
-
Constructor Details
-
WebtestLocationAvailabilityCriteria
public WebtestLocationAvailabilityCriteria()Creates an instance of WebtestLocationAvailabilityCriteria class.
-
-
Method Details
-
webTestId
Get the webTestId property: The Application Insights web test Id.- Returns:
- the webTestId value.
-
withWebTestId
Set the webTestId property: The Application Insights web test Id.- Parameters:
webTestId- the webTestId value to set.- Returns:
- the WebtestLocationAvailabilityCriteria object itself.
-
componentId
Get the componentId property: The Application Insights resource Id.- Returns:
- the componentId value.
-
withComponentId
Set the componentId property: The Application Insights resource Id.- Parameters:
componentId- the componentId value to set.- Returns:
- the WebtestLocationAvailabilityCriteria object itself.
-
failedLocationCount
public float failedLocationCount()Get the failedLocationCount property: The number of failed locations.- Returns:
- the failedLocationCount value.
-
withFailedLocationCount
Set the failedLocationCount property: The number of failed locations.- Parameters:
failedLocationCount- the failedLocationCount value to set.- Returns:
- the WebtestLocationAvailabilityCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMetricAlertCriteria- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-