Skip to content

Commit

Permalink
updated new code since merge with master to use exceptions_list`
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Apr 17, 2020
1 parent 76d3f26 commit 7724235
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "excluded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "excluded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.action",
"values_operator": "included",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "excluded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "included",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"query": "host.name: *",
"interval": "30s",
"language": "kuery",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "included",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "query",
"query": "host.name: *",
"interval": "30s",
"lists": [
"exceptions_list": [
{
"field": "event.module",
"values_operator": "excluded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const buildQueryExceptions = ({
}: {
query: string;
language: Language;
lists: RuleAlertParams['lists'];
lists: RuleAlertParams['exceptions_list'];
}): Query[] => {
if (lists && lists !== null) {
const exceptions = buildExceptions({ lists, language, query });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getQueryFilter = (
language: Language,
filters: PartialFilter[],
index: string[],
lists: RuleAlertParams['lists']
lists: RuleAlertParams['exceptions_list']
) => {
const indexPattern = {
fields: [],
Expand Down Expand Up @@ -53,7 +53,7 @@ interface GetFilterArgs {
savedId: string | undefined | null;
services: AlertServices;
index: string[] | undefined | null;
lists: RuleAlertParams['lists'];
lists: RuleAlertParams['exceptions_list'];
}

interface QueryAttributes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const signalRulesAlertType = ({
query,
to,
type,
lists,
exceptions_list,
} = params;
const searchAfterSize = Math.min(maxSignals, DEFAULT_SEARCH_AFTER_PAGE_SIZE);
let hasError: boolean = false;
Expand Down Expand Up @@ -201,7 +201,7 @@ export const signalRulesAlertType = ({
savedId,
services,
index: inputIndex,
lists,
lists: exceptions_list,
});

const noReIndex = buildEventsSearchQuery({
Expand Down

0 comments on commit 7724235

Please sign in to comment.