Class MetricAlertStatusProperties
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertStatusProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricAlertStatusProperties>
public final class MetricAlertStatusProperties
extends Object
implements com.azure.json.JsonSerializable<MetricAlertStatusProperties>
An alert status properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MetricAlertStatusProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dimensions property: An object describing the type of the dimensions.static MetricAlertStatusPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricAlertStatusProperties from the JsonReader.status()Get the status property: status value.Get the timestamp property: UTC time when the status was checked.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDimensions(Map<String, String> dimensions) Set the dimensions property: An object describing the type of the dimensions.withStatus(String status) Set the status property: status value.withTimestamp(OffsetDateTime timestamp) Set the timestamp property: UTC time when the status was checked.Methods inherited from class java.lang.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
-
MetricAlertStatusProperties
public MetricAlertStatusProperties()Creates an instance of MetricAlertStatusProperties class.
-
-
Method Details
-
dimensions
Get the dimensions property: An object describing the type of the dimensions.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: An object describing the type of the dimensions.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricAlertStatusProperties object itself.
-
status
Get the status property: status value.- Returns:
- the status value.
-
withStatus
Set the status property: status value.- Parameters:
status- the status value to set.- Returns:
- the MetricAlertStatusProperties object itself.
-
timestamp
Get the timestamp property: UTC time when the status was checked.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: UTC time when the status was checked.- Parameters:
timestamp- the timestamp value to set.- Returns:
- the MetricAlertStatusProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricAlertStatusProperties>- Throws:
IOException
-
fromJson
public static MetricAlertStatusProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MetricAlertStatusProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricAlertStatusProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MetricAlertStatusProperties.
-