Skip to content

Commit

Permalink
Add eql rule type to ruleTypeMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Sep 14, 2021
1 parent bc969c2 commit 9339cee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import { WrappedRACAlert } from '../rule_types/types';
import { SearchTypes } from '../../../../common/detection_engine/types';
import { IRuleExecutionLogClient } from '../rule_execution_log/types';
import {
EQL_RULE_TYPE_ID,
INDICATOR_RULE_TYPE_ID,
ML_RULE_TYPE_ID,
QUERY_RULE_TYPE_ID,
Expand Down Expand Up @@ -1014,7 +1015,7 @@ export const getField = <T extends SearchTypes>(event: SimpleHit, field: string)
* Maps legacy rule types to RAC rule type IDs.
*/
export const ruleTypeMappings = {
eql: SIGNALS_ID,
eql: EQL_RULE_TYPE_ID,
machine_learning: ML_RULE_TYPE_ID,
query: QUERY_RULE_TYPE_ID,
saved_query: SIGNALS_ID,
Expand Down

0 comments on commit 9339cee

Please sign in to comment.