Add namespace to default grouping csp fields (#225279)

This commit is contained in:
Ido Cohen 2025-06-25 20:10:54 +03:00 committed by GitHub
parent bb7cce6d7b
commit 1ebff0e634
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -182,6 +182,7 @@ export const FINDINGS_GROUPING_OPTIONS = {
CLOUD_ACCOUNT_ID: 'cloud.account.id',
ORCHESTRATOR_CLUSTER_NAME: 'orchestrator.cluster.name',
ORCHESTRATOR_CLUSTER_ID: 'orchestrator.cluster.id',
NAMESPACE: 'data_stream.namespace',
};
export const VULNERABILITY_FIELDS = {

View file

@ -100,6 +100,12 @@ export const defaultGroupingOptions: GroupOption[] = [
}),
key: FINDINGS_GROUPING_OPTIONS.ORCHESTRATOR_CLUSTER_ID,
},
{
label: i18n.translate('xpack.csp.findings.latestFindings.groupNamespace', {
defaultMessage: 'Namespace',
}),
key: FINDINGS_GROUPING_OPTIONS.NAMESPACE,
},
];
export const groupingTitle = i18n.translate('xpack.csp.findings.latestFindings.groupBy', {