java.lang.Object
com.azure.resourcemanager.monitor.fluent.models.IncidentInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<IncidentInner>

public final class IncidentInner extends Object implements com.azure.json.JsonSerializable<IncidentInner>
An alert incident indicates the activation status of an alert rule.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of IncidentInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the activatedTime property: The time at which the incident was activated in ISO8601 format.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of IncidentInner from the JsonReader.
    Get the isActive property: A boolean to indicate whether the incident is active or resolved.
    Get the name property: Incident name.
    Get the resolvedTime property: The time at which the incident was resolved in ISO8601 format.
    Get the ruleName property: Rule name that is associated with the incident.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • IncidentInner

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

    • name

      public String name()
      Get the name property: Incident name.
      Returns:
      the name value.
    • ruleName

      public String ruleName()
      Get the ruleName property: Rule name that is associated with the incident.
      Returns:
      the ruleName value.
    • isActive

      public Boolean isActive()
      Get the isActive property: A boolean to indicate whether the incident is active or resolved.
      Returns:
      the isActive value.
    • activatedTime

      public OffsetDateTime activatedTime()
      Get the activatedTime property: The time at which the incident was activated in ISO8601 format.
      Returns:
      the activatedTime value.
    • resolvedTime

      public OffsetDateTime resolvedTime()
      Get the resolvedTime property: The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
      Returns:
      the resolvedTime 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<IncidentInner>
      Throws:
      IOException
    • fromJson

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