AlertInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. authorization. fluent. models. AlertInner
- com.
- com.
public final class AlertInner
extends ProxyResource
The alert.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertInner() |
Creates an instance of Alert |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Alert |
alertConfiguration()
Get the alert |
|
Alert |
alertDefinition()
Get the alert |
|
List<Alert |
alertIncidents()
Get the alert |
|
static
Alert |
fromJson(JsonReader jsonReader)
Reads an instance of Alert |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| Integer |
incidentCount()
Get the incident |
| Boolean |
isActive()
Get the is |
|
Offset |
lastModifiedDateTime()
Get the last |
|
Offset |
lastScannedDateTime()
Get the last |
| String |
name()
Get the name property: The name of the resource. |
| String |
scope()
Get the scope property: The alert scope. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Alert |
withIsActive(Boolean isActive)
Set the is |
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:
alertDefinition
public AlertDefinitionInner alertDefinition()
Get the alertDefinition property: The alert definition.
Returns:
alertIncidents
public List<AlertIncidentInner> alertIncidents()
Get the alertIncidents property: The alert incidents.
Returns:
fromJson
public static AlertInner fromJson(JsonReader jsonReader)
Reads an instance of AlertInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AlertInner.id()Returns:
incidentCount
public Integer incidentCount()
Get the incidentCount property: The number of generated incidents of the alert.
Returns:
isActive
public Boolean isActive()
Get the isActive property: False by default; true if the alert is active.
Returns:
lastModifiedDateTime
public OffsetDateTime lastModifiedDateTime()
Get the lastModifiedDateTime property: The date time when the alert configuration was updated or new incidents were generated.
Returns:
lastScannedDateTime
public OffsetDateTime lastScannedDateTime()
Get the lastScannedDateTime property: The date time when the alert was last scanned.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AlertInner.name()Returns:
scope
public String scope()
Get the scope property: The alert scope.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AlertInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AlertInner.type()Returns:
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:
Returns: