From 274139eff7da2052d3c1e43260782387d0614287 Mon Sep 17 00:00:00 2001 From: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:47:22 +0100 Subject: [PATCH] [Security Solution][Detection Engine] fixes type errors, adds category for new ES|QL rule type (#167745) ## Summary - https://github.com/elastic/kibana/pull/166781 PR added category id for each Security rule type. This PR was created before ES|QL rule was added, but ES|QL rule got merged earlier, before the last successful build for that PR was created. That allowed maintenance window PR to be merged, without adding category to ES|QL rule --- .../detection_engine/rule_types/esql/create_esql_alert_type.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/esql/create_esql_alert_type.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/esql/create_esql_alert_type.ts index f14c1a83c2fe8..18f752a4a0d97 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/esql/create_esql_alert_type.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/esql/create_esql_alert_type.ts @@ -7,6 +7,7 @@ import { validateNonExact } from '@kbn/securitysolution-io-ts-utils'; import { ESQL_RULE_TYPE_ID } from '@kbn/securitysolution-rules'; +import { DEFAULT_APP_CATEGORIES } from '@kbn/core-application-common'; import { SERVER_APP_ID } from '../../../../../common/constants'; import type { EsqlRuleParams } from '../../rule_schema'; @@ -47,6 +48,7 @@ export const createEsqlAlertType = ( }, minimumLicenseRequired: 'basic', isExportable: false, + category: DEFAULT_APP_CATEGORIES.security.id, producer: SERVER_APP_ID, executor: (params) => esqlExecutor({ ...params, version }), };