IncidentInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. IncidentInner
- com.
Implements
public final class IncidentInner
implements JsonSerializable<IncidentInner>
An alert incident indicates the activation status of an alert rule.
Constructor Summary
| Constructor | Description |
|---|---|
| IncidentInner() |
Creates an instance of Incident |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
activatedTime()
Get the activated |
|
static
Incident |
fromJson(JsonReader jsonReader)
Reads an instance of Incident |
| Boolean |
isActive()
Get the is |
| String |
name()
Get the name property: Incident name. |
|
Offset |
resolvedTime()
Get the resolved |
| String |
ruleName()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
IncidentInner
public IncidentInner()
Creates an instance of IncidentInner class.
Method Details
activatedTime
public OffsetDateTime activatedTime()
Get the activatedTime property: The time at which the incident was activated in ISO8601 format.
Returns:
fromJson
public static IncidentInner fromJson(JsonReader jsonReader)
Reads an instance of IncidentInner from the JsonReader.
Parameters:
Returns:
Throws:
isActive
public Boolean isActive()
Get the isActive property: A boolean to indicate whether the incident is active or resolved.
Returns:
name
public String name()
Get the name property: Incident name.
Returns:
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:
ruleName
public String ruleName()
Get the ruleName property: Rule name that is associated with the incident.
Returns:
toJson
validate
public void validate()
Validates the instance.