Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Mar 19, 2020
1 parent 231d96d commit abd6471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { SearchResponse } from 'elasticsearch';

import { Logger } from '../../../../../../../../src/core/server';
import { AlertServices } from '../../../../../../../plugins/alerting/server';
import { AlertAction } from '../../../../../../../plugins/alerting/common';
import { RuleTypeParams } from '../types';
import { singleBulkCreate } from './single_bulk_create';
import { AnomalyResults, Anomaly } from '../../machine_learning';

interface BulkCreateMlSignalsParams {
actions: AlertAction[];
someResult: AnomalyResults;
ruleParams: RuleTypeParams;
services: AlertServices;
Expand All @@ -28,6 +30,7 @@ interface BulkCreateMlSignalsParams {
interval: string;
enabled: boolean;
tags: string[];
throttle: string | null;
}

interface EcsAnomaly extends Anomaly {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export const signalRulesAlertType = ({
}

creationSucceeded = await bulkCreateMlSignals({
actions,
throttle,
someResult: anomalyResults,
ruleParams: params,
services,
Expand Down

0 comments on commit abd6471

Please sign in to comment.