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 Details

    • AnomalyAlert

      public AnomalyAlert()
      Creates an instance of AnomalyAlert class.
  • Method Details

    • getId

      public String getId()
      Get the id property: alert id.
      Returns:
      the id value.
    • getTimestamp

      public OffsetDateTime getTimestamp()
      Get the timestamp property: anomaly time.
      Returns:
      the timestamp value.
    • getCreatedTime

      public OffsetDateTime getCreatedTime()
      Get the createdTime property: created time.
      Returns:
      the createdTime value.
    • getModifiedTime

      public OffsetDateTime getModifiedTime()
      Get the modifiedTime property: modified time.
      Returns:
      the modifiedTime value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AnomalyAlert>
      Throws:
      IOException
    • fromJson

      public static AnomalyAlert fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.