Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/7.12' into backport/7.12/pr-96690
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 13, 2021
2 parents 2d5f94b + 197a80c commit 6a3e6e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"dependencies": {
"@elastic/datemath": "link:packages/elastic-datemath",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@^7.12.0-canary.6",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@^7.12.0-canary.7",
"@elastic/ems-client": "7.12.0",
"@elastic/eui": "31.7.0",
"@elastic/filesaver": "1.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ export const buildBulkBody = ({
...buildSignal([doc], rule),
...additionalSignalFields(doc),
};
delete doc._source.threshold_result;
const event = buildEventTypeSignal(doc);
const { threshold_result: thresholdResult, ...filteredSource } = doc._source || {
threshold_result: null,
};
const signalHit: SignalHit = {
...doc._source,
...filteredSource,
'@timestamp': new Date().toISOString(),
event,
signal,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2167,10 +2167,10 @@
version "0.0.0"
uid ""

"@elastic/elasticsearch@npm:@elastic/elasticsearch-canary@^7.12.0-canary.6":
version "7.12.0-canary.6"
resolved "https://registry.yarnpkg.com/@elastic/elasticsearch-canary/-/elasticsearch-canary-7.12.0-canary.6.tgz#65a9ad7dbc372e39a2925ee2eaea98fb9996fa0c"
integrity sha512-2mEU66wG07iRg8ONMFKYvliaepZSReHT2x2Pd541TEtFoKXw+2m6Btdu6em+wEgxRlWSGdVh4ZFk5f2TR8AhbQ==
"@elastic/elasticsearch@npm:@elastic/elasticsearch-canary@^7.12.0-canary.7":
version "7.12.0-canary.7"
resolved "https://registry.yarnpkg.com/@elastic/elasticsearch-canary/-/elasticsearch-canary-7.12.0-canary.7.tgz#4ee0c2c1be6e842357a3e68566cff543f58b0d38"
integrity sha512-ZS27nBGr9RlGGPp7lIG4cwMu/eaEqwucrWX1+EqvO0eAYocxdzkgkExabW81u7Zc7DK9n3nIuAGdV9WowvzZdQ==
dependencies:
debug "^4.3.1"
hpagent "^0.1.1"
Expand Down

0 comments on commit 6a3e6e9

Please sign in to comment.