From 085b7b850d31b3b53e42eb5fbf89628a238437fb Mon Sep 17 00:00:00 2001 From: Ying Date: Tue, 7 Feb 2023 16:02:07 -0500 Subject: [PATCH] testing revert --- .../assets/field_maps/technical_rule_field_map.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/rule_registry/common/assets/field_maps/technical_rule_field_map.ts b/x-pack/plugins/rule_registry/common/assets/field_maps/technical_rule_field_map.ts index 9f1ee0838c154..59bad29950d42 100644 --- a/x-pack/plugins/rule_registry/common/assets/field_maps/technical_rule_field_map.ts +++ b/x-pack/plugins/rule_registry/common/assets/field_maps/technical_rule_field_map.ts @@ -17,7 +17,7 @@ export const technicalRuleFieldMap = { Fields.EVENT_ACTION, Fields.TAGS ), - [Fields.ALERT_RULE_PARAMETERS]: { type: 'flattened', ignore_above: 4096 }, + [Fields.ALERT_RULE_PARAMETERS]: { type: 'flattened', ignore_above: 4096, required: false }, [Fields.ALERT_RULE_TYPE_ID]: { type: 'keyword', required: true }, [Fields.ALERT_RULE_CONSUMER]: { type: 'keyword', required: true }, [Fields.ALERT_RULE_PRODUCER]: { type: 'keyword', required: true }, @@ -26,14 +26,15 @@ export const technicalRuleFieldMap = { [Fields.ALERT_INSTANCE_ID]: { type: 'keyword', required: true }, [Fields.ALERT_START]: { type: 'date' }, [Fields.ALERT_TIME_RANGE]: { + required: false, type: 'date_range', format: 'epoch_millis||strict_date_optional_time', }, - [Fields.ALERT_END]: { type: 'date' }, - [Fields.ALERT_DURATION]: { type: 'long' }, - [Fields.ALERT_SEVERITY]: { type: 'keyword' }, + [Fields.ALERT_END]: { type: 'date', required: false }, + [Fields.ALERT_DURATION]: { type: 'long', required: false }, + [Fields.ALERT_SEVERITY]: { type: 'keyword', required: false }, [Fields.ALERT_STATUS]: { type: 'keyword', required: true }, - [Fields.ALERT_FLAPPING]: { type: 'boolean' }, + [Fields.ALERT_FLAPPING]: { type: 'boolean', required: false }, [Fields.VERSION]: { type: 'version', array: false,