kibana/docs
Chris Roberson c18ac126dc
[Alerting] Change execution of alerts from async to sync (#97311) (#106298)
* added ability to run ephemeral tasks

* fixed typing

* added typing on plugin

* WIP

* Fix type issues

* Hook up the ephemeral task into the task runner for actions

* Tasks can now run independently of one another

* Use deferred language

* Refactor taskParams slightly

* Use Promise.all

* Remove deferred logic

* Add config options to limit the amount of tasks executing at once

* Add ephemeral task monitoring

* WIP

* Add single test so far

* Ensure we log after actions have executed

* Remove confusing * 1

* Add logic to ensure we fallback to default enqueueing if the total actions is above the config

* Add additional test

* Fix tests a bit, ensure we log the alerting:actions-execute right away and the tests should listen for alerts:execute

* Better tests

* If the queue is at capacity, attempt to execute the ephemeral task as a regular action

* Ensure we run ephemeral tasks before to avoid them getting stuck in the queue

* Do not handle the promise anymore

* Remove unnecessary code

* Properly handle errors from ephemeral task lifecycle

* moved acitons domain out of alerting and into actions plugin

* Remove some tests

* Fix TS and test issues

* Fix type issues

* Fix more type issues

* Fix more type issues

* Fix jest tests

* Fix more jest tests

* Off by default

* Fix jest tests

* Update config for this suite too

* Start of telemetry code

* Fix types and add missing files

* Fix telemetry schema

* Fix types

* Fix more types

* moved load event emission to pollingcycle and added health stats on Ephemeral tasks

* Add more telemetry data based on new health metrics for the ephemeral queue

* Fix tests and types

* Add separate request capacity for ephemeral queue

* Fix telemetry schema and add tests for usage collection

* track polled tasks by persistence and use in capacity estimation instead of executions

* fixed typing

* Bump default capacity

* added delay metric to ephemeral stats

* Fix bad merge

* Fix tests

* Fix tests

* Fix types

* Skip failing tests

* Exclude ephemeral stats from capacity estimation tests

* PR feedback

* More PR feedback

* PR feedback

* Fix merge conflict

* Try fixing CI

* Fix broken lock file from merge

* Match master

* Add this back

* PR feedback

* Change to queue and add test

* Disable ephemeral queue in tests

* Updated desc

* Comment out ephemeral-specific tests tha require the entire test suite to support ephemeral tasks

* Add clarifying comment

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 15:42:01 -04:00
..
api Saved objects import compatibility across versions (#94072) (#103706) 2021-06-29 09:22:57 -07:00
apm docs: APM RUM Source map API (#105332) (#106157) 2021-07-19 16:37:56 -04:00
canvas [Expressions] Introduce createTable expression function, and use in Lens (#103788) (#104879) 2021-07-08 12:11:04 -04:00
code
concepts [DOCS] Updates screenshots to show new theme (#104998) (#106133) 2021-07-19 13:06:21 -04:00
dev-tools
developer [Canvas] Expression error (#103048) (#105724) 2021-07-15 07:41:16 -04:00
development Introduce preboot lifecycle stage (#103636) (#106194) 2021-07-20 03:11:45 -04:00
discover [DOCS] Updates screenshots to show new theme (#104998) (#106133) 2021-07-19 13:06:21 -04:00
fleet Remove beta admonitions for Fleet docs (#106010) (#106143) 2021-07-19 15:01:40 -04:00
getting-started [DOCS] Updates the quick start for 7.14 (#105489) (#105636) 2021-07-14 12:38:35 -04:00
images [DOCS] Updates screenshots to show new theme (#104998) (#106133) 2021-07-19 13:06:21 -04:00
management [Vislib XY axis] Adds a deprecation notice in the UI and a docs section (#105055) (#106221) 2021-07-20 08:41:07 -04:00
maps [maps][docs] refresh screenshots for 7.14 (#105601) (#105622) 2021-07-14 11:55:08 -04:00
migration
observability
settings [Alerting] Change execution of alerts from async to sync (#97311) (#106298) 2021-07-20 15:42:01 -04:00
setup Remove beta admonitions for Fleet docs (#106010) (#106143) 2021-07-19 15:01:40 -04:00
siem [DOCS] Elastic Sec Overview (Fixing Image) (#104529) (#104700) 2021-07-07 13:09:29 -04:00
spaces Space management page UX improvements (#100448) (#106211) 2021-07-20 06:40:29 -04:00
uptime/images
user [Vislib XY axis] Adds a deprecation notice in the UI and a docs section (#105055) (#106221) 2021-07-20 08:41:07 -04:00
visualize/images
accessibility.asciidoc
action-type-template.asciidoc
CHANGELOG.asciidoc [7.x] [DOCS] Removes coming tags from 7.13.4 release notes (#106111) (#106112) 2021-07-20 09:02:54 -05:00
glossary.asciidoc
gs-index.asciidoc
index-extra-title-page.html [DOCS] Adds link to video landing page (#101413) (#101670) 2021-06-08 14:14:47 -07:00
index.asciidoc
index.x.asciidoc
limitations.asciidoc
migration.asciidoc
redirects.asciidoc [DOCS] Updates to the Reporting docs (#101326) (#103947) 2021-06-30 13:24:39 -04:00
release-notes.asciidoc
rule-type-template.asciidoc [Alerting][Docs] Combine rule creation and management pages (#101498) (#101979) 2021-06-10 22:14:56 -04:00
timelion.asciidoc