feat: add rule.name to global highlighted fields (#137949)

This enables quick checks of malware signatures for the new vulnerable driver protection we're shipping in 8.4

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Jan Monschke 2022-08-03 15:38:58 +02:00 committed by GitHub
parent 3d5632310b
commit 4e853e028d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -653,6 +653,12 @@ export const generateAlertDetailsDataMock = () => [
values: ['dummy.exe'],
originalValue: ['dummy.exe'],
},
{
category: 'rule',
field: 'rule.name',
values: ['Test Rule Name'],
originalValue: ['Test Rule Name'],
},
];
export const mockAlertDetailsData = generateAlertDetailsDataMock();

View file

@ -74,7 +74,7 @@ describe('AlertSummaryView', () => {
</TestProviders>
);
['host.name', 'user.name', i18n.RULE_TYPE, 'query'].forEach((fieldId) => {
['host.name', 'user.name', i18n.RULE_TYPE, 'query', 'rule.name'].forEach((fieldId) => {
expect(getByText(fieldId));
});
});

View file

@ -38,6 +38,7 @@ const alwaysDisplayedFields: EventSummaryField[] = [
{ id: 'host.name' },
{ id: 'agent.id', overrideField: AGENT_STATUS_FIELD_NAME, label: i18n.AGENT_STATUS },
{ id: 'user.name' },
{ id: 'rule.name' },
{ id: ALERT_RULE_TYPE, label: i18n.RULE_TYPE },
];