Skip to content

Commit

Permalink
fixes more type checks after rebase with master
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Nov 14, 2019
1 parent 9bb8e14 commit f0da0ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import { SignalSourceHit, SignalSearchResponse, SignalAlertParams } from '../typ
export const sampleSignalAlertParams = (maxSignals: number | undefined): SignalAlertParams => ({
id: 'rule-1',
description: 'Detecting root and admin users',
falsePositives: [],
immutable: false,
index: ['auditbeat-*', 'filebeat-*', 'packetbeat-*', 'winlogbeat-*'],
interval: '5m',
name: 'Detect Root/Admin Users',
type: 'query',
from: 'now-6m',
tags: ['some fake tag'],
to: 'now',
severity: 'high',
query: 'user.name: root or user.name: admin',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { BulkIndexDocumentsParams } from 'elasticsearch';
import { savedObjectsClientMock } from 'src/core/server/mocks';

import { DEFAULT_SIGNALS_INDEX } from '../../../../common/constants';

import { Logger } from '../../../../../../../../src/core/server';
import {
buildBulkBody,
singleBulkIndex,
singleSearchAfter,
searchAfterAndBulkIndex,
} from './utils';
import { SignalHit } from '../../types';
import {
sampleDocNoSortId,
sampleSignalAlertParams,
Expand Down

0 comments on commit f0da0ae

Please sign in to comment.