* 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>
* Migrate timelion to the NP.
* fixed ci
* Fixed paths
* fixed UI settings
* Fixed ci
* fix CI
* Fixed some comments
* Fixed browser tests
* fixed state
* Fixed comments
* Fixed save expression
* Fixed navigation
* fix CI
* Fixed some problem
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
resolves https://github.com/elastic/kibana/issues/68309
Previously, if the initialization of the elasticsearch resources failed
during initialization, the event logger would still try to write events.
Which is somewhat of a catastrophic failure, as typically the logger would
try writing to the alias name, but no alias exists, so a new index would
be created with the name of the alias. Making it impossible to initialize
successfully later until that index was deleted.
The core initialization calls already returned success indicators, so this
PR just responds to those and prevents the logger from writing to the index
if initialization failed.
* hides overview item when no other obs plugin is available.
* reverting tests changes
* reverting tests changes
* adding overview to observability tests
* [ML] dragSelect as part of ExplorerSwimlane component
* [ML] use wrapper ref
* [ML] rename callback
* [ML] WIP open in anomaly explorer
* [ML] MlUrlGenerator unit tests
* [ML] WIP actions
* [ML] restore pagination
* [ML] fix fromPage on initial load
* [ML] fix cell selection, filter and time range actions
* [ML] update url generator params
* [ML] prevent label text selection on drag select
* [ML] fix types and unit tests
* [ML] fix embeddable init
* [ML] fix swim lane unit tests
* [ML] change action label, use filter action only for single cell click
* [ML] fix time range bounds
* [ML] fix TS issues
* [ML] fix pagination persistence
* [ML] use viewByFrom the embeddable input
* Add a date range of `now-1d` to the cloud query
* Add a timeout of 5m to all queries (we'll investigate using async queries to improve this in the future.)
* Factor out the date range filter into a variable
* Fix a bug with the `indices_stats` tasks when it doesn't return data
* Update the merge mapping script to create a migration file
* [search] Refactor the way search strategies are registered/retrieved on the server
* Fix types and tests and update docs
* Fix failing test
* Move strategy name into options
* Remove FE strategies
* TypeScript of hell
delete search explorer
* Fix search interceptor OSS tests
* test cleanup
* fix
* return search wrapper
* initial api
* Shiny happy cleanup
* docs
* fix jest test
* simplify strategy registration
* fix rebase
* fix rebase
* fix backport
* types
* TS for strategy
* docs
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Introduces dedicated Kibana API endpoints as part of ML and transform plugin API endpoints and moves the logic to query and transform the required data from client to server.
- Adds support for sampling to retrieve the data for the field histograms. For now this is not configurable by the end user and is hard coded to 5000. This is to have a first iteration of this functionality in for 7.9 and protect users when querying large clusters. The button to enable the histogram charts now includes a tooltip that mentions the sampler.