Class WebtestLocationAvailabilityCriteria
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertCriteria
com.azure.resourcemanager.monitor.models.WebtestLocationAvailabilityCriteria
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricAlertCriteria>
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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebtestLocationAvailabilityCriteria from the JsonReader.Get the odataType property: specifies the type of the alert criteria.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 MetricAlertCriteria
additionalProperties, withAdditionalPropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebtestLocationAvailabilityCriteria
public WebtestLocationAvailabilityCriteria()Creates an instance of WebtestLocationAvailabilityCriteria class.
-
-
Method Details
-
odataType
Get the odataType property: specifies the type of the alert criteria.- Overrides:
odataTypein classMetricAlertCriteria- Returns:
- the odataType value.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricAlertCriteria>- Overrides:
toJsonin classMetricAlertCriteria- Throws:
IOException
-
fromJson
public static WebtestLocationAvailabilityCriteria fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WebtestLocationAvailabilityCriteria from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WebtestLocationAvailabilityCriteria if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WebtestLocationAvailabilityCriteria.
-