Commit graph

39 commits

Author SHA1 Message Date
Quynh Nguyen 3469e164f4
[ML] Add option for per-partition categorization to categorization job wizard (#75061) 2020-08-19 13:03:00 -05:00
James Gowdy a81059b14b
[ML] Removing full lodash library imports (#74742)
* [ML] Removing full lodash library imports

* more has

* fixing missing filter

* removing _

* removing unused file

* removing first use

* removing comment
2020-08-12 09:24:43 +01:00
Quynh Nguyen 7868a569eb
[ML] Fix datafeed start time is incorrect when the job has trailing empty buckets (#71976)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 14:42:34 -05:00
Pete Harverson 6e30ce1ff2
[ML] Fix error toasts shown when starting or editing jobs (#71618)
* [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
2020-07-14 19:45:10 +01:00
Melissa Alvarez a4340f0ece
[ML] DF Analytics: add ability to edit job for fields supported by API (#70489)
* wip: add edit action to dfanalytics table

* add update endpoint and edit flyout

* show success and error toasts. close flyout and refresh on success

* show permission message in edit action

* update types

* disable update button if mml not valid

* show error in toast, init values are config values

* fix undefined check for allow lazy start

* prevent update if mml is empty
2020-07-06 15:10:01 -04:00
Pete Harverson b270321ff3
[ML] Fixes anomaly chart and validation for one week bucket span (#69671)
* [ML] Fixes anomaly chart and validation for one week bucket span

* [ML] Fix interval Jest tests
2020-06-24 09:20:38 +01:00
Walter Rafelsberger a489e5f0b1
[ML] Data Grid Histograms (#68359)
Adds support for histogram charts to data grid columns.
- Adds a toggle button to the data grid's header to enabled/disable column charts.
- When enabled, the charts get rendered as part of the data grid header.
- Histogram charts will get rendered for fields based on date, number, string and boolean.
2020-06-19 08:39:50 +02:00
Quynh Nguyen 5f3c3c0354
[ML] Transforms - Updated: Add ability to delete dest index & index pattern when deleting transform job (#68896) 2020-06-11 10:39:31 -05:00
Quynh Nguyen 3197a00e79
Revert "[ML] Transforms: Add ability to delete dest index & index pattern when deleting transform job" (#68793) 2020-06-10 12:02:52 -05:00
Quynh Nguyen 9bc0936311
[ML] Transforms: Add ability to delete dest index & index pattern when deleting transform job (#67922) 2020-06-10 10:11:46 -05:00
Dima Arnautov 63bb072064
[ML] Transforms: Filter aggregation support (#67591)
* [ML] WIP filter support

* [ML] value selector

* [ML] only supported filter aggs as options

* [ML] WIP apply config

* [ML] fix form persistence

* [ML] refactor

* [ML] support clone

* [ML] validation, get es config

* [ML] support "exists", fixes for the term form, validation

* [ML] fix ts issues

* [ML] don't perform request on adding incomplete agg

* [ML] basic range number support

* [ML] filter bool agg support

* [ML] functional tests

* [ML] getAggConfigFromEsAgg tests

* [ML] fix unit tests

* [ML] agg name update on config change, add unit tests

* [ML] update snapshot

* [ML] range selector enhancements

* [ML] improve types

* [ML] update step for range selector to support float numbers

* [ML] range validation

* [ML] term selector improvements

* [ML] fix switch between advanced editor

* [ML] prefix test ids

* [ML] support helper text for aggs item
2020-06-04 14:21:03 +02:00
restrry bf04235dae apply prettier styles 2020-05-22 09:08:58 +02:00
Dima Arnautov d0b9840041
[ML] API integration tests for job validation (#66265)
* [ML] TS refactoring

* [ML] fix page overflow

* [ML] tests

* [ML] fix typing issues and unit tests

* [ML] remove string conversion

* [ML] indexOf checks

* [ML] fix tooltip overflow

* [ML] fix i18n

* [ML] fix unit tests

* [ML] use MlJobAggregation

* [ML] use enums

* Revert "[ML] fix tooltip overflow"

This reverts commit 103c36bc

* Revert "[ML] fix page overflow"

This reverts commit 3c869228
2020-05-13 18:52:49 +02:00
Pete Harverson 0124977830
[ML] Fixes anomaly charts for rare detectors when model plot is enabled (#66075) 2020-05-12 14:53:48 +01:00
James Gowdy b5fb78bfce
[ML] Fix new job wizard with multiple indices (#64567)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-28 20:45:57 +01:00
Melissa Alvarez dc5c2f0e3f
[ML] Migrate Mocha unit tests to Jest: migrate job utils and query utils tests (#63775)
* migrate mocha tests to jest for query utils

* update jobUtils test to jest from mocha

* update tests to use jest syntax
2020-04-17 13:55:46 -04:00
Pete Harverson 3e26654416
[ML] Converts utils Mocha tests to Jest (#63132)
* [ML] Converts utils Mocha tests to Jest

* [ML] Remove unused imports

* [ML] Switch out enzyme mount for react testing library render

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 17:49:46 +01:00
Melissa Alvarez ebd22842c0
[ML] DF Analytics - ensure destination index pattern created (#62450)
* ensure destinationIndex name is defined

* set array for destIndex as invalid

* update type

* reset destIndex already exists error when updating advanced editor
2020-04-03 16:37:32 -04:00
James Gowdy 0236376fa9
[ML] Fixing reporting of http request errors (#61811)
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-31 11:44:01 +01:00
James Gowdy 35302ed273
[ML] Client side cut over (#60100)
* [ML] Client side cut over

* updating paths and commented code

* changes based on review

* disabling telemetry tests

* fixing start job stylesheets

* fixing everything that is broken

* fixing types and ml icon order

* using icon constant
2020-03-13 19:16:41 +00:00
Court Ewing 7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Melissa Alvarez 1cc0fa37f6
[ML] Job Selector conversion to React (#35638)
* wip: create react jobSelector wrapper + main component

* Load jobs and select first if none selected via url

* wip: create flyout content

* Add endpoint for fetching jobs with timerange for table

* display selected ids in flyout

* Add custom table allowing external selection

* add groups table in groups tab

* Get groups and jobs in initial api call

* add ability to select groups

* Hook jobSelector into SingleMetricView

* Show selected group badges with count

* Organize jobSelector component directories

* Move timerange logic to server

* Move group color selection to utils

* hide/show badges and add localization

* fetch jobs in route to enable selector jobid validation

* upate globalState on setting jobId in SingleMetricView

* Add pager options.Retain search query on tab change

* Ensure gantBar timeRanges correct

* cleanup old commented code. tweak flyout header/footer style

* running gantt bar and remove unnecessary api call

* GanttBar running style. Pass timezone to server.

* Running gantt bar limited to timerange. Clean up comments.

* Refactor jobSelector endpoint to use fullJobs

* Retain group selection in globalState

* Recalculate ganttbars on resize

* add test for JobSelectorTable
2019-05-07 11:42:34 -04:00
Pete Harverson e00dae7405
[ML] Extends support for anomaly charts when model plot is enabled (#34079)
* [ML] Extends support for anomaly charts when model plot is enabled

* [ML] Edits to util functions following review
2019-03-29 14:12:54 +00:00
Spencer 2e232c2e31
[@kbn/expect] "fork" expect.js into repo (#33761)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 09:56:48 -07:00
James Gowdy 2850fd6735
[ML] Job deleting optimisations (#29848)
* [ML] Job deleting optimisations

* fixing force=true

* updating deleting jobs check
2019-02-05 12:29:01 +00:00
pavel06081991 9d72276f13
[ML] translate anomaly utils (#28675)
[ML] translate anomalies table utils
2019-01-16 14:50:07 +03:00
Spencer 0b4ae5020b
[npm] prepare @kbn/datemath for publishing (#26559)
We need to share `@kbn/datemath` with `@elastic/eui`, and rather than making them rely on Kibana for their dependencies we've decided to republish `@kbn/datemath` as `@elastic/datemath`. This isn't something we want to do often, so please check with the platform team if you'd like to do this for another module.
2018-12-03 16:01:16 -08:00
Pete Harverson c5d9583b7a
[ML] Lowers multi-bucket impact thresholds used for anomaly display (#24136)
* [ML] Lowers multi-bucket impact thresholds used for anomaly display

* [ML] Adjust thresholds used in multi bucket impact unit tests
2018-10-18 11:14:14 +01:00
Pete Harverson 557fc7a66f
[ML] Indicate multi-bucket anomalies in results dashboards (#23746) 2018-10-03 16:09:52 +01:00
Pete Harverson 20b9cba02a
[ML] Removes job ID from detector description for duplicates (#23192) 2018-09-17 09:37:39 +01:00
Walter Rafelsberger aabe4f13d2
[ML] Support for the rare detector for charts in anomaly explorer and singe metric viewer (#21524)
- Enables support for the rare detector for the charts in Anomaly Explorer and Single Metric Viewer.
- The charts use a count aggregation. The anomaly records for rare detectors include actual/typical values, but they don't refer to values we have for other detectors. actual is always 1 and doesn't refer to the actual count. typical has the probability as its value. To avoid confusing users by displaying these values as actual/typical in the tooltip, just the value of count of the aggregation will be shown.
- This enables the existing charts to be able to visualize rare detectors. A follow-up to this PR will introduce a specific chart for rare detectors.
2018-08-01 16:38:50 +02:00
James Gowdy 60706bf77a
[ML] Better model memory limit validation (#21270) 2018-07-27 07:49:17 +01:00
Pete Harverson 755409d31d
[ML] Prevents conditions on rules for rare, metric and lat_long (#21198) 2018-07-25 12:49:03 +01:00
Walter Rafelsberger e05b668f43
[ML] More helpful job validation success messages. (#21079)
This provides more helpful texts for job validation success messages. Previously only a list of checks was shown to the user without any further explanation. This PR addresses this issue in the following way:
- At the bottom of the modal an introductory brief text about job validation including a link to documentation is inserted.
- The success messages in the list now provide a more helpful text including (where applicable) a deep link to documentation
- The messages now support a richer Callout layout including a header and additional text.
2018-07-23 23:28:38 +02:00
James Gowdy bf6cc70d24
[ML] Adding validation to the edit job flyout (#21041)
* [ML] Adding validation to the edit job flyout

* removing a bit of lodash

* tiny code clean up

* fixing validation check
2018-07-23 12:39:47 +01:00
Pete Harverson 465ab78ef7
[ML] Adds editor for configuring detector rules (#20989)
* [ML] Adds editor for configuring detector rules

* [ML] Edits to Rule Editor flyout following review
2018-07-22 14:01:45 +01:00
Pete Harverson 72f0f5918b
[ML] Don't show time series charts if metric field is script field (#19206) 2018-05-18 13:11:22 +01:00
Pete Harverson 25324c1d19
[ML] Create server-side results service (#19044)
* [ML] Create server-side results service

* [ML] Edits to server side results service following review
2018-05-16 09:59:07 +01:00
Jenkins CI fe4609647d Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00