Class IncidentInner
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the activatedTime property: The time at which the incident was activated in ISO8601 format.static IncidentInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of IncidentInner from the JsonReader.isActive()
Get the isActive property: A boolean to indicate whether the incident is active or resolved.name()
Get the name property: Incident name.Get the resolvedTime property: The time at which the incident was resolved in ISO8601 format.ruleName()
Get the ruleName property: Rule name that is associated with the incident.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
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
Get the name property: Incident name.- Returns:
- the name value.
-
ruleName
Get the ruleName property: Rule name that is associated with the incident.- Returns:
- the ruleName value.
-
isActive
Get the isActive property: A boolean to indicate whether the incident is active or resolved.- Returns:
- the isActive value.
-
activatedTime
Get the activatedTime property: The time at which the incident was activated in ISO8601 format.- Returns:
- the activatedTime value.
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<IncidentInner>
- Throws:
IOException
-
fromJson
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.
-