Class QueryBasedAlertRuleTemplateProperties
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.QueryBasedAlertRuleTemplateProperties
-
public class QueryBasedAlertRuleTemplateProperties extends Object
Query based alert rule template base property bag.
-
-
Constructor Summary
Constructors Constructor Description QueryBasedAlertRuleTemplateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertDetailsOverride
alertDetailsOverride()
Get the alertDetailsOverride property: The alert details override settings.Map<String,String>
customDetails()
Get the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.List<EntityMapping>
entityMappings()
Get the entityMappings property: Array of the entity mappings of the alert rule.String
query()
Get the query property: The query that creates alerts for this rule.AlertSeverity
severity()
Get the severity property: The severity for alerts created by this alert rule.void
validate()
Validates the instance.String
version()
Get the version property: The version of this template - in format <a.b.c>, where all are numbers.QueryBasedAlertRuleTemplateProperties
withAlertDetailsOverride(AlertDetailsOverride alertDetailsOverride)
Set the alertDetailsOverride property: The alert details override settings.QueryBasedAlertRuleTemplateProperties
withCustomDetails(Map<String,String> customDetails)
Set the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.QueryBasedAlertRuleTemplateProperties
withEntityMappings(List<EntityMapping> entityMappings)
Set the entityMappings property: Array of the entity mappings of the alert rule.QueryBasedAlertRuleTemplateProperties
withQuery(String query)
Set the query property: The query that creates alerts for this rule.QueryBasedAlertRuleTemplateProperties
withSeverity(AlertSeverity severity)
Set the severity property: The severity for alerts created by this alert rule.QueryBasedAlertRuleTemplateProperties
withVersion(String version)
Set the version property: The version of this template - in format <a.b.c>, where all are numbers.
-
-
-
Method Detail
-
query
public String query()
Get the query property: The query that creates alerts for this rule.- Returns:
- the query value.
-
withQuery
public QueryBasedAlertRuleTemplateProperties withQuery(String query)
Set the query property: The query that creates alerts for this rule.- Parameters:
query
- the query value to set.- Returns:
- the QueryBasedAlertRuleTemplateProperties object itself.
-
severity
public AlertSeverity severity()
Get the severity property: The severity for alerts created by this alert rule.- Returns:
- the severity value.
-
withSeverity
public QueryBasedAlertRuleTemplateProperties withSeverity(AlertSeverity severity)
Set the severity property: The severity for alerts created by this alert rule.- Parameters:
severity
- the severity value to set.- Returns:
- the QueryBasedAlertRuleTemplateProperties object itself.
-
version
public String version()
Get the version property: The version of this template - in format <a.b.c>, where all are numbers. For example <1.0.2>.- Returns:
- the version value.
-
withVersion
public QueryBasedAlertRuleTemplateProperties withVersion(String version)
Set the version property: The version of this template - in format <a.b.c>, where all are numbers. For example <1.0.2>.- Parameters:
version
- the version value to set.- Returns:
- the QueryBasedAlertRuleTemplateProperties object itself.
-
customDetails
public Map<String,String> customDetails()
Get the customDetails property: Dictionary of string key-value pairs of columns to be attached to the alert.- Returns:
- the customDetails value.
-
withCustomDetails
public QueryBasedAlertRuleTemplateProperties withCustomDetails(Map<String,String> customDetails)
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 QueryBasedAlertRuleTemplateProperties object itself.
-
entityMappings
public List<EntityMapping> entityMappings()
Get the entityMappings property: Array of the entity mappings of the alert rule.- Returns:
- the entityMappings value.
-
withEntityMappings
public QueryBasedAlertRuleTemplateProperties withEntityMappings(List<EntityMapping> entityMappings)
Set the entityMappings property: Array of the entity mappings of the alert rule.- Parameters:
entityMappings
- the entityMappings value to set.- Returns:
- the QueryBasedAlertRuleTemplateProperties object itself.
-
alertDetailsOverride
public AlertDetailsOverride alertDetailsOverride()
Get the alertDetailsOverride property: The alert details override settings.- Returns:
- the alertDetailsOverride value.
-
withAlertDetailsOverride
public QueryBasedAlertRuleTemplateProperties withAlertDetailsOverride(AlertDetailsOverride alertDetailsOverride)
Set the alertDetailsOverride property: The alert details override settings.- Parameters:
alertDetailsOverride
- the alertDetailsOverride value to set.- Returns:
- the QueryBasedAlertRuleTemplateProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-