Skip to content

Commit

Permalink
Merge branch 'master' into updated-at-load-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Sep 4, 2021
2 parents 9dcfa9c + 9132b43 commit 36ce9ee
Show file tree
Hide file tree
Showing 90 changed files with 69 additions and 279 deletions.
2 changes: 1 addition & 1 deletion docs/management/connectors/action-types/email.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ For other email servers, you can check the list of well-known services that Node
[[elasticcloud]]
==== Sending email from Elastic Cloud

IMPORTANT: These instructions require you to link:{cloud}/ec-watcher.html#ec-watcher-whitelist[whitelist] the email addresses that notifications get sent first.
IMPORTANT: These instructions require you to link:{cloud}/ec-watcher.html#ec-watcher-whitelist[allowlist] the email addresses that notifications get sent.

Use the following connector settings to send email from Elastic Cloud:

Expand Down
30 changes: 29 additions & 1 deletion docs/user/alerting/rule-types/es-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,32 @@ image::user/alerting/images/rule-types-es-query-valid.png[Test {es} query return
* An error message is shown if the query is invalid.
+
[role="screenshot"]
image::user/alerting/images/rule-types-es-query-invalid.png[Test {es} query shows error when invalid]
image::user/alerting/images/rule-types-es-query-invalid.png[Test {es} query shows error when invalid]

[float]
==== Match de-duplication

The {es} query rule type performs de-duplication of document matches across rule executions. If you configure the rule with a schedule interval smaller than the time window, and a document matches a query in multiple rule executions, it will be alerted on only once.

Suppose you have a rule configured to run every minute. The rule uses a time window of 1 hour and checks if there are more than 99 matches for the query. The {es} query rule type will do the following:

[cols="3*<"]
|===

| `Execution 1 (0:00)`
| Rule finds 113 matches in the last hour: `113 > 99`
| Rule is active and user will be alerted.

| `Execution 2 (0:01)`
| Rule finds 127 matches in the last hour. 105 of the matches are duplicates that were alerted on in Execution 1, so you actually have 22 matches: `22 !> 99`
| No alert.

| `Execution 3 (0:02)`
| Rule finds 159 matches in the last hour. 88 of the matches are duplicates that were alerted on in Execution 1, so you actually have 71 matches: `71 !> 99`
| No alert.

| `Execution 4 (0:03)`
| Rule finds 190 matches in the last hour. 71 of them are duplicates that were alerted on in Exeuction 1, so you actually have 119 matches: `119 > 99`
| Rule is active and user will be alerted.

|===
3 changes: 0 additions & 3 deletions packages/elastic-datemath/.babelrc

This file was deleted.

6 changes: 0 additions & 6 deletions packages/kbn-ace/.babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions packages/kbn-ace/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jsts_transpiler(
srcs = SRCS,
additional_args = [
"--copy-files",
"--ignore",
"**/*/src/ace/modes/x_json/worker/x_json.ace.worker.js",
"--quiet"
],
build_pkg_name = package_name(),
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-alerts/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-alerts/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-alerts/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
3 changes: 0 additions & 3 deletions packages/kbn-analytics/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-analytics/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-analytics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
3 changes: 0 additions & 3 deletions packages/kbn-apm-config-loader/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-apm-utils/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-babel-code-parser/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-cli-dev-mode/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-config-schema/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-config/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-crypto/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-dev-utils/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-docs-utils/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-es-archiver/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-es-query/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-es-query/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-es-query/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
3 changes: 0 additions & 3 deletions packages/kbn-es/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-field-types/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-i18n/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-i18n/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-i18n/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
3 changes: 0 additions & 3 deletions packages/kbn-interpreter/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-io-ts-utils/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-legacy-logging/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-logging/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-mapbox-gl/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-monaco/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-monaco/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-monaco/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

webpack(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-optimizer/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-plugin-generator/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-plugin-helpers/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/kbn-rule-data-utils/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-autocomplete/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-autocomplete/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-autocomplete/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-es-utils/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-hook-utils/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-hook-utils/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-hook-utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-alerting-types/.babelrc

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-list-types/.babelrc

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-types/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-types/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-io-ts-types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-utils/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-io-ts-utils/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-io-ts-utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-list-api/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-list-api/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-list-api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-list-constants/.babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-list-constants/.babelrc.browser

This file was deleted.

2 changes: 1 addition & 1 deletion packages/kbn-securitysolution-list-constants/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jsts_transpiler(
name = "target_web",
srcs = SRCS,
build_pkg_name = package_name(),
config_file = ".babelrc.browser"
web = True,
)

ts_config(
Expand Down
4 changes: 0 additions & 4 deletions packages/kbn-securitysolution-list-hooks/.babelrc

This file was deleted.

Loading

0 comments on commit 36ce9ee

Please sign in to comment.