* only display gap error when a gap is too large for the gap mitigation code to cover, general code cleanup, adds some tests for separate function
* removes throwing of errors and log error and return null for maxCatchup, ratio, and gapDiffInUnits properties
* forgot to delete commented out code
* remove math.abs since we fixed this bug by switching around logic when calculating gapDiffInUnits in getGapMaxCatchupRatio fn
* updates tests for when a gap error should be written to rule status
* fix typo
* First draft, not quite working but a good start
* More working
* Support configuring throttle
* Get the other alerts working too
* More
* Separate into individual files
* Menu support as well as better integration in existing UIs
* Red borders!
* New overview style, and renamed alert
* more visual updates
* Update cpu usage and improve settings configuration in UI
* Convert cluster health and license expiration alert to use legacy data model
* Remove most of the custom UI and use the flyout
* Add the actual alerts
* Remove more code
* Fix formatting
* Fix up some errors
* Remove unnecessary code
* Updates
* add more links here
* Fix up linkage
* Added nodes changed alert
* Most of the version mismatch working
* Add kibana mismatch
* UI tweaks
* Add timestamp
* Support actions in the enable api
* Move this around
* Better support for changing legacy alerts
* Add missing files
* Update alerts
* Enable alerts whenever any page is visited in SM
* Tweaks
* Use more practical default
* Remove the buggy renderer and ensure setup mode can show all alerts
* Updates
* Remove unnecessary code
* Remove some dead code
* Cleanup
* Fix snapshot
* Fixes
* Fixes
* Fix test
* Add alerts to kibana and logstash listing pages
* Fix test
* Add disable/mute options
* Tweaks
* Fix linting
* Fix i18n
* Adding a couple tests
* Fix localization
* Use http
* Ensure we properly handle when an alert is resolved
* Fix tests
* Hide legacy alerts if not the right license
* Design tweaks
* Fix tests
* PR feedback
* Moar tests
* Fix i18n
* Ensure we have a control over the messaging
* Fix translations
* Tweaks
* More localization
* Copy changes
* Type
* [DOCS] Adds API keys to API docs
* Fixes link title
* Update docs/api/using-api.asciidoc
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
* Use updated onPreAuth from Platform
* Add config flag. Increase default value.
* Set max connections flag default to 0 (disabled)
* Don't use limiting logic on checkin route
* Confirm preAuth handler only added when max > 0
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* refactor installation to add/remove installed assets as they are added/removed
* update types
* uninstall assets when installation fails
* refactor installation to add/remove installed assets as they are added/removed
* update types
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Update security solution telemetry to use ML providers
This interface recently changed and we're now able to use the ML
contract to retrieve these values. A few unnecessary arguments are
stubbed as we're in a non-user, non-request context.
* Simplify our capabilities stub assignment
This is more legible but still gets the point across; the intermediate
variable was explicit but ultimately unnnecessary.
* Update tests following telemetry refactor
We're not calling different methods, so our mocks need to change
slightly.
* [ML] Fix error toasts shown when starting or editing jobs
* [ML] Adds toast_notification_service.ts file
* [ML] Fix Jest and type_check tests
* [ML] Alter check for statusCode in error object handling
* [ML] Fix errors Jest test
The behavior here was that you'd be redirected to detections from
wherever you were, with no warning/indication.
When we knew we needed an index, and that we could create one,
needsConfiguration was incorrectly 'true' during the time between
realizing this fact and creating the index. That intermediate state is
now captured in needsIndexConfiguration, which is true if we either
can't create the index or we failed our attempt to do so.
* Send kibana version on requests to registry search.
* Only use semver part of kibanaVersion.
* Adjust test.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>