Class DetectorAbnormalTimePeriod

java.lang.Object
com.azure.resourcemanager.appservice.models.DetectorAbnormalTimePeriod
All Implemented Interfaces:
com.azure.json.JsonSerializable<DetectorAbnormalTimePeriod>

public final class DetectorAbnormalTimePeriod extends Object implements com.azure.json.JsonSerializable<DetectorAbnormalTimePeriod>
Class representing Abnormal Time Period detected.
  • Method Details

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time of the correlated event.
      Returns:
      the startTime value.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time of the correlated event.
      Returns:
      the endTime value.
    • message

      public String message()
      Get the message property: Message describing the event.
      Returns:
      the message value.
    • source

      public String source()
      Get the source property: Represents the name of the Detector.
      Returns:
      the source value.
    • priority

      public Double priority()
      Get the priority property: Represents the rank of the Detector.
      Returns:
      the priority value.
    • metadata

      public List<List<NameValuePair>> metadata()
      Get the metadata property: Downtime metadata.
      Returns:
      the metadata value.
    • type

      public IssueType type()
      Get the type property: Represents the type of the Detector.
      Returns:
      the type value.
    • solutions

      public List<Solution> solutions()
      Get the solutions property: List of proposed solutions.
      Returns:
      the solutions value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static DetectorAbnormalTimePeriod fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DetectorAbnormalTimePeriod from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DetectorAbnormalTimePeriod 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 DetectorAbnormalTimePeriod.