Skip to content

Commit

Permalink
[Security Solution][Detection Engine] fixes type errors, adds categor…
Browse files Browse the repository at this point in the history
…y for new ES|QL rule type (#167745)

## Summary

- #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
  • Loading branch information
vitaliidm authored Oct 2, 2023
1 parent b0ef90d commit 274139e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 }),
};
Expand Down

0 comments on commit 274139e

Please sign in to comment.