Class GroupingConfiguration
java.lang.Object
com.azure.resourcemanager.securityinsights.models.GroupingConfiguration
Grouping configuration property bag.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
Get the enabled property: Grouping enabled.Get the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).Get the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected).Get the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected).Get the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).Get the matchingMethod property: Grouping matching method.boolean
Get the reopenClosedIncident property: Re-open closed matching incidents.void
validate()
Validates the instance.withEnabled
(boolean enabled) Set the enabled property: Grouping enabled.withGroupByAlertDetails
(List<AlertDetail> groupByAlertDetails) Set the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).withGroupByCustomDetails
(List<String> groupByCustomDetails) Set the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected).withGroupByEntities
(List<EntityMappingType> groupByEntities) Set the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected).withLookbackDuration
(Duration lookbackDuration) Set the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).withMatchingMethod
(MatchingMethod matchingMethod) Set the matchingMethod property: Grouping matching method.withReopenClosedIncident
(boolean reopenClosedIncident) Set the reopenClosedIncident property: Re-open closed matching incidents.
-
Constructor Details
-
GroupingConfiguration
public GroupingConfiguration()
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: Grouping enabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Grouping enabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the GroupingConfiguration object itself.
-
reopenClosedIncident
public boolean reopenClosedIncident()Get the reopenClosedIncident property: Re-open closed matching incidents.- Returns:
- the reopenClosedIncident value.
-
withReopenClosedIncident
Set the reopenClosedIncident property: Re-open closed matching incidents.- Parameters:
reopenClosedIncident
- the reopenClosedIncident value to set.- Returns:
- the GroupingConfiguration object itself.
-
lookbackDuration
Get the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).- Returns:
- the lookbackDuration value.
-
withLookbackDuration
Set the lookbackDuration property: Limit the group to alerts created within the lookback duration (in ISO 8601 duration format).- Parameters:
lookbackDuration
- the lookbackDuration value to set.- Returns:
- the GroupingConfiguration object itself.
-
matchingMethod
Get the matchingMethod property: Grouping matching method. When method is Selected at least one of groupByEntities, groupByAlertDetails, groupByCustomDetails must be provided and not empty.- Returns:
- the matchingMethod value.
-
withMatchingMethod
Set the matchingMethod property: Grouping matching method. When method is Selected at least one of groupByEntities, groupByAlertDetails, groupByCustomDetails must be provided and not empty.- Parameters:
matchingMethod
- the matchingMethod value to set.- Returns:
- the GroupingConfiguration object itself.
-
groupByEntities
Get the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected). Only entities defined in the current alert rule may be used.- Returns:
- the groupByEntities value.
-
withGroupByEntities
Set the groupByEntities property: A list of entity types to group by (when matchingMethod is Selected). Only entities defined in the current alert rule may be used.- Parameters:
groupByEntities
- the groupByEntities value to set.- Returns:
- the GroupingConfiguration object itself.
-
groupByAlertDetails
Get the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).- Returns:
- the groupByAlertDetails value.
-
withGroupByAlertDetails
Set the groupByAlertDetails property: A list of alert details to group by (when matchingMethod is Selected).- Parameters:
groupByAlertDetails
- the groupByAlertDetails value to set.- Returns:
- the GroupingConfiguration object itself.
-
groupByCustomDetails
Get the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected). Only keys defined in the current alert rule may be used.- Returns:
- the groupByCustomDetails value.
-
withGroupByCustomDetails
Set the groupByCustomDetails property: A list of custom details keys to group by (when matchingMethod is Selected). Only keys defined in the current alert rule may be used.- Parameters:
groupByCustomDetails
- the groupByCustomDetails value to set.- Returns:
- the GroupingConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-