Skip to content

Commit 98f3c01

Browse files
committed
feat: add asset group fields to alert constants and configuration
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 08b3615 commit 98f3c01

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

frontend/src/app/shared/constants/alert/alert-field.constant.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const ALERT_SEVERITY_FIELD = 'severity';
1414
export const ALERT_IMPACT_FIELD = 'impact';
1515
export const ALERT_SEVERITY_FIELD_LABEL = 'severityLabel';
1616
export const ALERT_TAGS_FIELD = 'tags';
17+
export const ALERT_ASSETS_GROUP_NAME_FIELD = 'assetGroupName';
18+
export const ALERT_ASSETS_GROUP_ID_FIELD = 'assetGroupId';
1719
export const ALERT_NOTE_FIELD = 'notes';
1820
export const ALERT_OBSERVATION_FIELD = 'statusObservation';
1921
export const ALERT_TIMESTAMP_FIELD = '@timestamp';
@@ -438,6 +440,12 @@ export const ALERT_FILTERS_FIELDS: UtmFieldType[] = [
438440
customStyle: 'text-blue-800',
439441
visible: true,
440442
},
443+
{
444+
label: 'Datasource Group',
445+
field: ALERT_ASSETS_GROUP_NAME_FIELD,
446+
type: ElasticDataTypesEnum.STRING,
447+
visible: true,
448+
},
441449
{
442450
label: 'ID',
443451
field: ALERT_CASE_ID_FIELD,
@@ -605,7 +613,7 @@ export const ALERT_FILTERS_FIELDS: UtmFieldType[] = [
605613
field: ALERT_TAGS_FIELD,
606614
type: ElasticDataTypesEnum.STRING,
607615
visible: true,
608-
},
616+
}
609617
];
610618

611619
export const EVENT_FIELDS: UtmFieldType[] = [

0 commit comments

Comments
 (0)