Class ScheduledAlertRuleCommonProperties
java.lang.Object
com.azure.resourcemanager.securityinsights.models.ScheduledAlertRuleCommonProperties
- Direct Known Subclasses:
ScheduledAlertRuleProperties
Scheduled alert rule template property bag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the alertDetailsOverride property: The alert details override settings.Get the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.Get the entityMappings property: Array of the entity mappings of the alert rule.Get the eventGroupingSettings property: The event grouping settings.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 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.withCustomDetails
(Map<String, String> customDetails) Set the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.withEntityMappings
(List<EntityMapping> entityMappings) Set the entityMappings property: Array of the entity mappings of the alert rule.withEventGroupingSettings
(EventGroupingSettings eventGroupingSettings) Set the eventGroupingSettings property: The event grouping settings.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.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.
-
Constructor Details
-
ScheduledAlertRuleCommonProperties
public ScheduledAlertRuleCommonProperties()
-
-
Method Details
-
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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties object itself.
-
eventGroupingSettings
Get the eventGroupingSettings property: The event grouping settings.- Returns:
- the eventGroupingSettings value.
-
withEventGroupingSettings
public ScheduledAlertRuleCommonProperties withEventGroupingSettings(EventGroupingSettings eventGroupingSettings) Set the eventGroupingSettings property: The event grouping settings.- Parameters:
eventGroupingSettings
- the eventGroupingSettings value to set.- Returns:
- the ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties 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 ScheduledAlertRuleCommonProperties object itself.
-
alertDetailsOverride
Get the alertDetailsOverride property: The alert details override settings.- Returns:
- the alertDetailsOverride value.
-
withAlertDetailsOverride
public ScheduledAlertRuleCommonProperties withAlertDetailsOverride(AlertDetailsOverride alertDetailsOverride) Set the alertDetailsOverride property: The alert details override settings.- Parameters:
alertDetailsOverride
- the alertDetailsOverride value to set.- Returns:
- the ScheduledAlertRuleCommonProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-