AlertInner Class

public final class AlertInner
extends ProxyResource

The alert.

Constructor Summary

Constructor Description
AlertInner()

Creates an instance of AlertInner class.

Method Summary

Modifier and Type Method and Description
AlertConfigurationInner alertConfiguration()

Get the alertConfiguration property: The alert configuration.

AlertDefinitionInner alertDefinition()

Get the alertDefinition property: The alert definition.

List<AlertIncidentInner> alertIncidents()

Get the alertIncidents property: The alert incidents.

static AlertInner fromJson(JsonReader jsonReader)

Reads an instance of AlertInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Integer incidentCount()

Get the incidentCount property: The number of generated incidents of the alert.

Boolean isActive()

Get the isActive property: False by default; true if the alert is active.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date time when the alert configuration was updated or new incidents were generated.

OffsetDateTime lastScannedDateTime()

Get the lastScannedDateTime property: The date time when the alert was last scanned.

String name()

Get the name property: The name of the resource.

String scope()

Get the scope property: The alert scope.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AlertInner withIsActive(Boolean isActive)

Set the isActive property: False by default; true if the alert is active.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AlertInner

public AlertInner()

Creates an instance of AlertInner class.

Method Details

alertConfiguration

public AlertConfigurationInner alertConfiguration()

Get the alertConfiguration property: The alert configuration.

Returns:

the alertConfiguration value.

alertDefinition

public AlertDefinitionInner alertDefinition()

Get the alertDefinition property: The alert definition.

Returns:

the alertDefinition value.

alertIncidents

public List<AlertIncidentInner> alertIncidents()

Get the alertIncidents property: The alert incidents.

Returns:

the alertIncidents value.

fromJson

public static AlertInner fromJson(JsonReader jsonReader)

Reads an instance of AlertInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AlertInner.id()

Returns:

the id value.

incidentCount

public Integer incidentCount()

Get the incidentCount property: The number of generated incidents of the alert.

Returns:

the incidentCount value.

isActive

public Boolean isActive()

Get the isActive property: False by default; true if the alert is active.

Returns:

the isActive value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The date time when the alert configuration was updated or new incidents were generated.

Returns:

the lastModifiedDateTime value.

lastScannedDateTime

public OffsetDateTime lastScannedDateTime()

Get the lastScannedDateTime property: The date time when the alert was last scanned.

Returns:

the lastScannedDateTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AlertInner.name()

Returns:

the name value.

scope

public String scope()

Get the scope property: The alert scope.

Returns:

the scope value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AlertInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AlertInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIsActive

public AlertInner withIsActive(Boolean isActive)

Set the isActive property: False by default; true if the alert is active.

Parameters:

isActive - the isActive value to set.

Returns:

the AlertInner object itself.

Applies to