Class WebtestLocationAvailabilityCriteria
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.MetricAlertCriteria
-
- com.azure.resourcemanager.monitor.models.WebtestLocationAvailabilityCriteria
-
public class WebtestLocationAvailabilityCriteria extends MetricAlertCriteria
Specifies the metric alert rule criteria for a web test resource.
-
-
Constructor Summary
Constructors Constructor Description WebtestLocationAvailabilityCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcomponentId()Get the componentId property: The Application Insights resource Id.floatfailedLocationCount()Get the failedLocationCount property: The number of failed locations.voidvalidate()Validates the instance.StringwebTestId()Get the webTestId property: The Application Insights web test Id.WebtestLocationAvailabilityCriteriawithComponentId(String componentId)Set the componentId property: The Application Insights resource Id.WebtestLocationAvailabilityCriteriawithFailedLocationCount(float failedLocationCount)Set the failedLocationCount property: The number of failed locations.WebtestLocationAvailabilityCriteriawithWebTestId(String webTestId)Set the webTestId property: The Application Insights web test Id.-
Methods inherited from class com.azure.resourcemanager.monitor.models.MetricAlertCriteria
additionalProperties, withAdditionalProperties
-
-
-
-
Method Detail
-
webTestId
public String webTestId()
Get the webTestId property: The Application Insights web test Id.- Returns:
- the webTestId value.
-
withWebTestId
public WebtestLocationAvailabilityCriteria withWebTestId(String webTestId)
Set the webTestId property: The Application Insights web test Id.- Parameters:
webTestId- the webTestId value to set.- Returns:
- the WebtestLocationAvailabilityCriteria object itself.
-
componentId
public String componentId()
Get the componentId property: The Application Insights resource Id.- Returns:
- the componentId value.
-
withComponentId
public WebtestLocationAvailabilityCriteria withComponentId(String componentId)
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
public WebtestLocationAvailabilityCriteria withFailedLocationCount(float failedLocationCount)
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.
-
-