IncidentInner Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.fluent.models.IncidentInner

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 IncidentInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime activatedTime()

Get the activatedTime property: The time at which the incident was activated in ISO8601 format.

static IncidentInner fromJson(JsonReader jsonReader)

Reads an instance of IncidentInner from the JsonReader.

Boolean isActive()

Get the isActive property: A boolean to indicate whether the incident is active or resolved.

String name()

Get the name property: Incident name.

OffsetDateTime resolvedTime()

Get the resolvedTime property: The time at which the incident was resolved in ISO8601 format.

String ruleName()

Get the ruleName property: Rule name that is associated with the incident.

JsonWriter 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:

the activatedTime value.

fromJson

public static IncidentInner fromJson(JsonReader jsonReader)

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.

isActive

public Boolean isActive()

Get the isActive property: A boolean to indicate whether the incident is active or resolved.

Returns:

the isActive value.

name

public String name()

Get the name property: Incident name.

Returns:

the name 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.

ruleName

public String ruleName()

Get the ruleName property: Rule name that is associated with the incident.

Returns:

the ruleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to