From d5ea90c7c737048c346cfd3da7076044d858d1eb Mon Sep 17 00:00:00 2001 From: Nikita Khristinin Date: Fri, 30 Aug 2024 09:21:47 +0200 Subject: [PATCH] fix name --- .../src/schemas/generated/alert_schema.ts | 2 +- .../src/default_alerts_as_data.ts | 2 +- .../alert_as_data_fields.test.ts.snap | 16 ++++++++-------- .../execution_logic/indicator_match.ts | 1 + 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/kbn-alerts-as-data-utils/src/schemas/generated/alert_schema.ts b/packages/kbn-alerts-as-data-utils/src/schemas/generated/alert_schema.ts index 7b5dce4544926a..b2a37d01fa3f73 100644 --- a/packages/kbn-alerts-as-data-utils/src/schemas/generated/alert_schema.ts +++ b/packages/kbn-alerts-as-data-utils/src/schemas/generated/alert_schema.ts @@ -92,7 +92,7 @@ const AlertOptional = rt.partial({ 'kibana.alert.end': schemaDate, 'kibana.alert.flapping': schemaBoolean, 'kibana.alert.flapping_history': schemaBooleanArray, - 'kibana.alert.intended_timstamp': schemaDate, + 'kibana.alert.intended_timestamp': schemaDate, 'kibana.alert.last_detected': schemaDate, 'kibana.alert.maintenance_window_ids': schemaStringArray, 'kibana.alert.previous_action_group': schemaString, diff --git a/packages/kbn-rule-data-utils/src/default_alerts_as_data.ts b/packages/kbn-rule-data-utils/src/default_alerts_as_data.ts index e75aa3adc86634..d1be2d83c41b3d 100644 --- a/packages/kbn-rule-data-utils/src/default_alerts_as_data.ts +++ b/packages/kbn-rule-data-utils/src/default_alerts_as_data.ts @@ -59,7 +59,7 @@ const ALERT_INSTANCE_ID = `${ALERT_NAMESPACE}.instance.id` as const; const ALERT_LAST_DETECTED = `${ALERT_NAMESPACE}.last_detected` as const; // kiana.alert.intended_timestamp - timestamp when the alert was intended to be detected, useful for backfilling -const ALERT_INTENDED_TIMESTAMP = `${ALERT_NAMESPACE}.intended_timstamp` as const; +const ALERT_INTENDED_TIMESTAMP = `${ALERT_NAMESPACE}.intended_timestamp` as const; // kibana.alert.reason - human readable reason that this alert is active const ALERT_REASON = `${ALERT_NAMESPACE}.reason` as const; diff --git a/x-pack/plugins/alerting/server/integration_tests/__snapshots__/alert_as_data_fields.test.ts.snap b/x-pack/plugins/alerting/server/integration_tests/__snapshots__/alert_as_data_fields.test.ts.snap index 565081da44b7b1..2ce82a1b3925fd 100644 --- a/x-pack/plugins/alerting/server/integration_tests/__snapshots__/alert_as_data_fields.test.ts.snap +++ b/x-pack/plugins/alerting/server/integration_tests/__snapshots__/alert_as_data_fields.test.ts.snap @@ -837,7 +837,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -1935,7 +1935,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -3033,7 +3033,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -4131,7 +4131,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -5229,7 +5229,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -6333,7 +6333,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -7431,7 +7431,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", @@ -8529,7 +8529,7 @@ Object { "required": true, "type": "keyword", }, - "kibana.alert.intended_timstamp": Object { + "kibana.alert.intended_timestamp": Object { "array": false, "required": false, "type": "date", diff --git a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/execution_logic/indicator_match.ts b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/execution_logic/indicator_match.ts index 018676b61e86bb..4fe62efa20f785 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/execution_logic/indicator_match.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/execution_logic/indicator_match.ts @@ -153,6 +153,7 @@ function alertsAreTheSame(alertsA: any[], alertsB: any[]): void { 'kibana.alert.rule.uuid', 'kibana.alert.rule.execution.uuid', 'kibana.alert.rule.execution.timestamp', + 'kibana.alert.intended_timestamp', 'kibana.alert.start', 'kibana.alert.reason', 'kibana.alert.uuid',