Class AnomalyAlert
java.lang.Object
com.azure.ai.metricsadvisor.models.AnomalyAlert
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnomalyAlert>
public final class AnomalyAlert
extends Object
implements com.azure.json.JsonSerializable<AnomalyAlert>
The AnomalyAlert model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnomalyAlertfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AnomalyAlert from the JsonReader.Get the createdTime property: created time.getId()Get the id property: alert id.Get the modifiedTime property: modified time.Get the timestamp property: anomaly time.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
AnomalyAlert
public AnomalyAlert()Creates an instance of AnomalyAlert class.
-
-
Method Details
-
getId
Get the id property: alert id.- Returns:
- the id value.
-
getTimestamp
Get the timestamp property: anomaly time.- Returns:
- the timestamp value.
-
getCreatedTime
Get the createdTime property: created time.- Returns:
- the createdTime value.
-
getModifiedTime
Get the modifiedTime property: modified time.- Returns:
- the modifiedTime value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AnomalyAlert>- Throws:
IOException
-
fromJson
Reads an instance of AnomalyAlert from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AnomalyAlert 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 AnomalyAlert.
-