Class ScheduledAlertRule
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
com.azure.resourcemanager.securityinsights.fluent.models.AlertRuleInner
com.azure.resourcemanager.securityinsights.models.ScheduledAlertRule
Represents scheduled alert rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertDetailsOverride property: The alert details override settings.Get the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.Get the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.Get the description property: The description of the alert rule.Get the displayName property: The display name for alerts created by this alert rule.enabled()
Get the enabled property: Determines whether this alert rule is enabled or disabled.Get the entityMappings property: Array of the entity mappings of the alert rule.Get the eventGroupingSettings property: The event grouping settings.Get the incidentConfiguration property: The settings of the incidents that created from alerts triggered by this analytics rule.Get the lastModifiedUtc property: The last time that this alert rule has been modified.query()
Get the query property: The query that creates alerts for this rule.Get the queryFrequency property: The frequency (in ISO 8601 duration format) for this alert rule to run.Get the queryPeriod property: The period (in ISO 8601 duration format) that this alert rule looks at.severity()
Get the severity property: The severity for alerts created by this alert rule.Get the suppressionDuration property: The suppression (in ISO 8601 duration format) to wait since last time this alert rule been triggered.Get the suppressionEnabled property: Determines whether the suppression for this alert rule is enabled or disabled.tactics()
Get the tactics property: The tactics of the alert rule.Get the techniques property: The techniques of the alert rule.Get the templateVersion property: The version of the alert rule template used to create this rule - in format <a.b.c>, where all are numbers, for example 0 <1.0.2>.Get the triggerOperator property: The operation against the threshold that triggers alert rule.Get the triggerThreshold property: The threshold triggers this alert rule.void
validate()
Validates the instance.withAlertDetailsOverride
(AlertDetailsOverride alertDetailsOverride) Set the alertDetailsOverride property: The alert details override settings.withAlertRuleTemplateName
(String alertRuleTemplateName) Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.withCustomDetails
(Map<String, String> customDetails) Set the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.withDescription
(String description) Set the description property: The description of the alert rule.withDisplayName
(String displayName) Set the displayName property: The display name for alerts created by this alert rule.withEnabled
(Boolean enabled) Set the enabled property: Determines whether this alert rule is enabled or disabled.withEntityMappings
(List<EntityMapping> entityMappings) Set the entityMappings property: Array of the entity mappings of the alert rule.Set the etag property: Etag of the azure resource.withEventGroupingSettings
(EventGroupingSettings eventGroupingSettings) Set the eventGroupingSettings property: The event grouping settings.withIncidentConfiguration
(IncidentConfiguration incidentConfiguration) Set the incidentConfiguration property: The settings of the incidents that created from alerts triggered by this analytics rule.Set the query property: The query that creates alerts for this rule.withQueryFrequency
(Duration queryFrequency) Set the queryFrequency property: The frequency (in ISO 8601 duration format) for this alert rule to run.withQueryPeriod
(Duration queryPeriod) Set the queryPeriod property: The period (in ISO 8601 duration format) that this alert rule looks at.withSeverity
(AlertSeverity severity) Set the severity property: The severity for alerts created by this alert rule.withSuppressionDuration
(Duration suppressionDuration) Set the suppressionDuration property: The suppression (in ISO 8601 duration format) to wait since last time this alert rule been triggered.withSuppressionEnabled
(Boolean suppressionEnabled) Set the suppressionEnabled property: Determines whether the suppression for this alert rule is enabled or disabled.withTactics
(List<AttackTactic> tactics) Set the tactics property: The tactics of the alert rule.withTechniques
(List<String> techniques) Set the techniques property: The techniques of the alert rule.withTemplateVersion
(String templateVersion) Set the templateVersion property: The version of the alert rule template used to create this rule - in format <a.b.c>, where all are numbers, for example 0 <1.0.2>.withTriggerOperator
(TriggerOperator triggerOperator) Set the triggerOperator property: The operation against the threshold that triggers alert rule.withTriggerThreshold
(Integer triggerThreshold) Set the triggerThreshold property: The threshold triggers this alert rule.Methods inherited from class com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
etag, systemData
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ScheduledAlertRule
public ScheduledAlertRule()
-
-
Method Details
-
withEtag
Set the etag property: Etag of the azure resource.- Overrides:
withEtag
in classAlertRuleInner
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceWithEtag object itself.
-
alertRuleTemplateName
Get the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.- Returns:
- the alertRuleTemplateName value.
-
withAlertRuleTemplateName
Set the alertRuleTemplateName property: The Name of the alert rule template used to create this rule.- Parameters:
alertRuleTemplateName
- the alertRuleTemplateName value to set.- Returns:
- the ScheduledAlertRule object itself.
-
templateVersion
Get the templateVersion property: The version of the alert rule template used to create this rule - in format <a.b.c>, where all are numbers, for example 0 <1.0.2>.- Returns:
- the templateVersion value.
-
withTemplateVersion
Set the templateVersion property: The version of the alert rule template used to create this rule - in format <a.b.c>, where all are numbers, for example 0 <1.0.2>.- Parameters:
templateVersion
- the templateVersion value to set.- Returns:
- the ScheduledAlertRule object itself.
-
description
Get the description property: The description of the alert rule.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the alert rule.- Parameters:
description
- the description value to set.- Returns:
- the ScheduledAlertRule object itself.
-
displayName
Get the displayName property: The display name for alerts created by this alert rule.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for alerts created by this alert rule.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ScheduledAlertRule object itself.
-
enabled
Get the enabled property: Determines whether this alert rule is enabled or disabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Determines whether this alert rule is enabled or disabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the ScheduledAlertRule object itself.
-
lastModifiedUtc
Get the lastModifiedUtc property: The last time that this alert rule has been modified.- Returns:
- the lastModifiedUtc value.
-
suppressionDuration
Get the suppressionDuration property: The suppression (in ISO 8601 duration format) to wait since last time this alert rule been triggered.- Returns:
- the suppressionDuration value.
-
withSuppressionDuration
Set the suppressionDuration property: The suppression (in ISO 8601 duration format) to wait since last time this alert rule been triggered.- Parameters:
suppressionDuration
- the suppressionDuration value to set.- Returns:
- the ScheduledAlertRule object itself.
-
suppressionEnabled
Get the suppressionEnabled property: Determines whether the suppression for this alert rule is enabled or disabled.- Returns:
- the suppressionEnabled value.
-
withSuppressionEnabled
Set the suppressionEnabled property: Determines whether the suppression for this alert rule is enabled or disabled.- Parameters:
suppressionEnabled
- the suppressionEnabled value to set.- Returns:
- the ScheduledAlertRule object itself.
-
tactics
Get the tactics property: The tactics of the alert rule.- Returns:
- the tactics value.
-
withTactics
Set the tactics property: The tactics of the alert rule.- Parameters:
tactics
- the tactics value to set.- Returns:
- the ScheduledAlertRule object itself.
-
techniques
Get the techniques property: The techniques of the alert rule.- Returns:
- the techniques value.
-
withTechniques
Set the techniques property: The techniques of the alert rule.- Parameters:
techniques
- the techniques value to set.- Returns:
- the ScheduledAlertRule object itself.
-
incidentConfiguration
Get the incidentConfiguration property: The settings of the incidents that created from alerts triggered by this analytics rule.- Returns:
- the incidentConfiguration value.
-
withIncidentConfiguration
Set the incidentConfiguration property: The settings of the incidents that created from alerts triggered by this analytics rule.- Parameters:
incidentConfiguration
- the incidentConfiguration value to set.- Returns:
- the ScheduledAlertRule object itself.
-
query
Get the query property: The query that creates alerts for this rule.- Returns:
- the query value.
-
withQuery
Set the query property: The query that creates alerts for this rule.- Parameters:
query
- the query value to set.- Returns:
- the ScheduledAlertRule object itself.
-
queryFrequency
Get the queryFrequency property: The frequency (in ISO 8601 duration format) for this alert rule to run.- Returns:
- the queryFrequency value.
-
withQueryFrequency
Set the queryFrequency property: The frequency (in ISO 8601 duration format) for this alert rule to run.- Parameters:
queryFrequency
- the queryFrequency value to set.- Returns:
- the ScheduledAlertRule object itself.
-
queryPeriod
Get the queryPeriod property: The period (in ISO 8601 duration format) that this alert rule looks at.- Returns:
- the queryPeriod value.
-
withQueryPeriod
Set the queryPeriod property: The period (in ISO 8601 duration format) that this alert rule looks at.- Parameters:
queryPeriod
- the queryPeriod value to set.- Returns:
- the ScheduledAlertRule object itself.
-
severity
Get the severity property: The severity for alerts created by this alert rule.- Returns:
- the severity value.
-
withSeverity
Set the severity property: The severity for alerts created by this alert rule.- Parameters:
severity
- the severity value to set.- Returns:
- the ScheduledAlertRule object itself.
-
triggerOperator
Get the triggerOperator property: The operation against the threshold that triggers alert rule.- Returns:
- the triggerOperator value.
-
withTriggerOperator
Set the triggerOperator property: The operation against the threshold that triggers alert rule.- Parameters:
triggerOperator
- the triggerOperator value to set.- Returns:
- the ScheduledAlertRule object itself.
-
triggerThreshold
Get the triggerThreshold property: The threshold triggers this alert rule.- Returns:
- the triggerThreshold value.
-
withTriggerThreshold
Set the triggerThreshold property: The threshold triggers this alert rule.- Parameters:
triggerThreshold
- the triggerThreshold value to set.- Returns:
- the ScheduledAlertRule object itself.
-
eventGroupingSettings
Get the eventGroupingSettings property: The event grouping settings.- Returns:
- the eventGroupingSettings value.
-
withEventGroupingSettings
Set the eventGroupingSettings property: The event grouping settings.- Parameters:
eventGroupingSettings
- the eventGroupingSettings value to set.- Returns:
- the ScheduledAlertRule object itself.
-
customDetails
Get the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.- Returns:
- the customDetails value.
-
withCustomDetails
Set the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.- Parameters:
customDetails
- the customDetails value to set.- Returns:
- the ScheduledAlertRule object itself.
-
entityMappings
Get the entityMappings property: Array of the entity mappings of the alert rule.- Returns:
- the entityMappings value.
-
withEntityMappings
Set the entityMappings property: Array of the entity mappings of the alert rule.- Parameters:
entityMappings
- the entityMappings value to set.- Returns:
- the ScheduledAlertRule object itself.
-
alertDetailsOverride
Get the alertDetailsOverride property: The alert details override settings.- Returns:
- the alertDetailsOverride value.
-
withAlertDetailsOverride
Set the alertDetailsOverride property: The alert details override settings.- Parameters:
alertDetailsOverride
- the alertDetailsOverride value to set.- Returns:
- the ScheduledAlertRule object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAlertRuleInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-