Class IncidentInner
- java.lang.Object
-
- com.azure.resourcemanager.monitor.fluent.models.IncidentInner
-
public final class IncidentInner extends Object
An alert incident indicates the activation status of an alert rule.
-
-
Constructor Summary
Constructors Constructor Description IncidentInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeactivatedTime()Get the activatedTime property: The time at which the incident was activated in ISO8601 format.BooleanisActive()Get the isActive property: A boolean to indicate whether the incident is active or resolved.Stringname()Get the name property: Incident name.OffsetDateTimeresolvedTime()Get the resolvedTime property: The time at which the incident was resolved in ISO8601 format.StringruleName()Get the ruleName property: Rule name that is associated with the incident.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
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.
-
-