Commit graph

1209 commits

Author SHA1 Message Date
Walter Rafelsberger 8201d4fd01
[ML] Transforms: Fixes chart histograms for runtime fields. (#93028)
Fixes chart histograms for runtime fields. The runtime field configurations were not passed on to the endpoint to fetch the charts data, so charts ended up being empty with a 0 documents legend.
2021-03-02 13:37:29 +01:00
Joe Portner 8710a81bea
Cleanup spaces plugin (#91976) 2021-03-01 07:56:44 -05:00
Pete Harverson 54b4d9a928
[ML] Fixes positions of calendar arrow buttons in start datafeed modal (#92625)
* [ML] Fixes positions of calendar arrow buttons in start datafeed modal

* [ML] Move height styling to parent container.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:23:10 +00:00
Walter Rafelsberger e19773b789
[ML] Data Frame Analytics: Adds missing info icon tooltips to scatterplot matrix option labels. (#92626)
Adds missing info icon tooltips to scatterplot matrix option labels.
2021-02-24 12:12:00 -05:00
Melissa Alvarez 4f8cd8399b
fix escapeDoubleQuotes regex to ensure quotes escaped correctly (#92471) 2021-02-23 14:48:49 -05:00
Quynh Nguyen 50b23e2176
[ML] Fix geo_shape not aggregetable and misaligned examples list in other_content (#92198) 2021-02-23 12:36:43 -06:00
Quynh Nguyen accf6b8c2e
[ML] Fix Total feature importance section not expandable when set to False (#92450) 2021-02-23 12:22:38 -06:00
Dima Arnautov 4891f7c09e
[ML] Fix Anomaly detection alert condition validation (#92377)
* [ML] config validation

* [ML] validation messages

* [ML] fix message

* [ML] refactor resolveBucketSpanInSeconds

* [ML] fix messages

* [ML] change validation messages

* [ML] change validation messages

* [ML] double bucket span outside of resolveBucketSpanInSeconds

* [ML] check only for started datafeed, update bucket span check
2021-02-23 12:43:47 -05:00
Walter Rafelsberger 45155f089d
[ML] Show mini histograms by default if row count below threshold. (#92021)
Show mini histograms by default if row count below threshold of 10000 docs.
2021-02-23 17:34:59 +01:00
Melissa Alvarez 70645b367e
show creation triggered indication. disable continue while included fields load (#92254) 2021-02-23 11:14:16 -05:00
Gidi Meir Morris ee81110516
renamed reloadAlerts to onSave wit hdeprecation (#91997)
The `reloadAlerts` properties in `AlertAdd` and `AlertEdit` are confusing property names.
In this PR we deprecate those and replace them with `onSave`.
2021-02-23 10:00:17 +00:00
Quynh Nguyen 0024f28d7b
[ML] Fix geo_shape content causing Data Visualizer to not load correctly (#92052)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 11:38:03 -06:00
Dima Arnautov a75abd7e41
[ML] Fixes handling of built-in models (#92154)
* [ML] add description column and details tab

* [ML] restrict build-in models actions

* [ML] add description to the details tab

* [ML] add flex with wrap to the type column

* [ML] remove unused code for filtering
2021-02-22 18:00:15 +01:00
Nathan Reese 6ef7d2cd55
[file_upload] move ml Importer classes to file_upload plugin (#91559)
* [ml] move importer to file_upload plugin

* move file_parse logic into GeoJsonImporter

* move file_parser tests to geojson_importer tests

* rename geo_json_clean_and_validate to geojson_clean_and_validate

* replace file_upload import with Importer.import

* simplify JsonIndexFilePicker props

* tslint

* i18n fixes and tslint fixes

* update functional test to account for change in layer name

* review feedback

* dependency_cache review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 08:47:39 -07:00
Melissa Alvarez b7f33b1748
[ML] Data Frame Analytics exploration page: filters improvements (#91748)
* exploration query bar filter reflects url query state on page load

* wrap filter handler in debounce

* add dep to memoized regex. update comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 10:41:58 -05:00
Walter Rafelsberger 1c3515f67b
[ML] Data Frame Analytics: Improved error handling for scatterplot matrix. (#91993)
Improves error handling for the scatterplot matrix. Documents with fields with arrays of values cannot be visualized in the scatterplot matrix. This adds a warning callout when the fetched data includes such documents.
2021-02-22 16:29:54 +01:00
Marco Vettorello 92301fe98d
[ML] Fix event rate chart annotation position (#91899) 2021-02-19 18:58:41 +01:00
James Gowdy 60e63aa53b
[ML] Switching to new find file structure endpoint (#91802)
* [ML] Switching to new find file structure endpoint

* js client change
2021-02-18 17:40:25 +00:00
Dima Arnautov c84047bd36
[ML] Prevent duplicate notifications about the same anomaly result (#91485)
* [ML] check kibana even logs for existing alert instance

* [ML] create alert instance key, add check for alert id

* [ML] use anomaly_utils, check interval gap

* [ML] add detector index

* [ML] fix unit test

* [ML] include detector_index into source
2021-02-17 13:26:23 -05:00
James Gowdy d890d22658
[ML] Filtering runtime mappings in anomaly detection wizards (#91534)
* [ML] Filtering runtime mappings in anomaly detection wizards

* updating tests

* adding check for null when parsing aggs

* removing async from tests
2021-02-17 17:25:15 +00:00
Quynh Nguyen 7a75e19c3e
[ML] Fix runtime mappings for runtimeField with optional script field (#91634) 2021-02-17 09:40:49 -06:00
Melissa Alvarez 9eb69cf71a
move randomize seed to advanced config (#91535) 2021-02-17 10:39:39 -05:00
Quynh Nguyen 63ac0f74be
[ML] Add better UI support for runtime fields Transforms (#90363)
* [ML] Add RT support for transforms from index pattern

* [ML] Add support for cloned transform from api

* [ML] Add support for runtime pivot

* [ML] Add support for api created runtime

* [ML] Add preview for expanded row

* [ML] Add runtime fields to dropdown options

* [ML] Add runtime fields to latest

* [ML] Fix duplicate columns

* [ML] Update types and test

* [ML] Add runtime mappings to index pattern on creation

* [ML] Add callout to show unsupported fields in dfa

* [ML] Update types to RuntimeField

* [ML] Fix runtime fields, remove runtime mappings, fix copy to console

* [ML] Fix incompatible kbn field type

* [ML] Add advanced mappings editor

* [ML] Add support for filter terms agg control

* [ML] Fix jest tests hanging

* [ML] Fix translations

* [ML] Fix over-sized buttons for filter range

* [ML] Update runtime mappings schema

* [ML] Update runtime mappings schema

* [ML] Use isRecord for object checks

* [ML] Fix and more message

* [ML] Update schema to correctly match types

* [ML] Update schema to correctly match types

* [ML] Fix pivot duplicates

* [ML] Rename isRecord to isPopulatedObject

* [ML] Remove fit-content

* [ML] Update runtime field type to prevent potential conflicts

* Revert "[ML] Remove fit-content"

This reverts commit 76c9c799

* [ML] Remove misc comment

* [ML] Fix missing typeof

* [ML] Add sorts and constants

* [ML] Add i18n to includedFields description

* [ML] fix imports

* [ML] Only pass runtime mappings if it's latest

* [ML] Fix functional tests
2021-02-16 20:00:02 -06:00
Quynh Nguyen 4a661cdc35
[ML] Fix DFA feature importance popover empty (#91061) 2021-02-16 16:14:27 -06:00
Melissa Alvarez d9df612495
ensure class_assignment_objective parameter is cloned correctly (#91507) 2021-02-16 15:12:56 -05:00
Greg Thompson 8126488021
Upgrade EUI to v31.7.0 (#91210)
* eui to 31.6.0

* flyout, collapsible snapshot updates

* initial overlaymask removal

* undo jest

* overlaymask src snapshot updates

* more overlaymask removals

* overlaymask removal xpack test updates

* saved objects modal form

* eui to 31.7.0

* code, codeblock types

* snapshot update

* tooltip

* remove ownFocus from ConfirmModal

* remove fragments
2021-02-16 14:06:25 -06:00
Melissa Alvarez 3a003d9b79
[ML] Anomaly Detection: when no anomalies present for time range show no results message (#91151)
* single metric viewer callout color to blue.show empty results in explorer.

* update snapshot for empty results view

* check if selected job still running

* update resultsWithAnomalies check

* update no overall data message. remove unnecessary component prop
2021-02-16 15:02:47 -05:00
Quynh Nguyen bb653a40ae
[ML] Fix import missing range for File Data Visualizer, Discover card visible when disabled, texts (#91352)
This PR fixes several issues related to the Data Visualizer
2021-02-16 16:05:01 +01:00
James Gowdy bfba5070a5
[ML] Adding index pattern runtime fields to anomaly detection wizards (#91168)
* [ML] Adding index pattern runtime fields to anomaly detection wizards

* hook refactor

* small refactor of search json

* fixing mml estimation error

* changes based on review

* sorting fields in metric selection

* using useMemo rather than useState

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 13:24:02 +00:00
Dima Arnautov a8e1e47de6
[ML] Anomaly Detection alert initialisation from the ML app (#91283) 2021-02-15 20:47:00 +01:00
Walter Rafelsberger 2f845dd9f9
[ML] Data Frame Analytics: ROC Curve Chart (#89991)
Adds the ROC curve chart to the results page for classification jobs in the evaluate section.
2021-02-15 14:49:20 +01:00
Joe Portner 5c3c3efdd8
Sharing saved objects, phase 2.5 (#89344) 2021-02-13 04:28:35 -05:00
Lisa Cawley c64cc352f9
[ML] Edit hyperparameter descriptions in job wizard (#91072)
Co-authored-by: Tom Veasey <tveasey@users.noreply.github.com>
2021-02-11 16:19:49 -08:00
Quynh Nguyen 13740f1cd3
[ML] Add Create Data Frame Analytics card to Data Visualizer (#91011) 2021-02-11 13:45:18 -06:00
Dima Arnautov 341e9cf2eb
[ML] Anomaly Detection alert type (#89286)
* [ML] init ML alerts

* [ML] job selector

* [ML] move schema server-side

* [ML] fix type 🤦‍

* [ML] severity selector

* [ML] add alerting capabilities

* [ML] add alerting capabilities

* [ML] result type selector

* [ML] time range selector

* [ML] init alert preview endpoint

* [ML] update SeveritySelector component

* [ML] adjust the form

* [ML] adjust the form

* [ML] server-side, preview component

* [ML] update defaultMessage

* [ML] Anomaly explorer URL

* [ML] validate preview interval

* [ML] rename alert type

* [ML] fix i18n

* [ML] fix TS and mocks

* [ML] update licence headers

* [ML] add ts config references

* [ML] init functional tests

* [ML] functional test for creating anomaly detection alert

* [ML] adjust bucket results query

* [ML] fix messages

* [ML] resolve functional tests related issues

* [ML] fix result check

* [ML] change preview layout

* [ML] extend ml client types

* [ML] add missing types, remove unused client variable

* [ML] change to import type

* [ML] handle preview error

* [ML] move error callout

* [ML] better error handling

* [ML] add client-side validation

* [ML] move fake request to the executor

* [ML] revert ml client type changes, set response type manually

* [ML] documentationUrl

* [ML] add extra sentence for interim results

* [ML] use publicBaseUrl

* [ML] adjust the query

* [ML] fix anomaly explorer url

* [ML] adjust the alert params schema

* [ML] remove default severity threshold for records and influencers

* [ML] fix query with filter block

* [ML] fix functional tests

* [ML] remove isInterim check

* [ML] remove redundant fragment

* [ML] fix selected cells hook

* [ML] set query string

* [ML] support sample size by the preview endpoint

* [ML] update counter

* [ML] add check for the bucket span

* [ML] fix effects

* [ML] disable mlExplorerSwimlane

* [ML] refactor functional tests to use setSliderValue

* [ML] add assertTestIntervalValue

* [ML] floor scores
2021-02-11 18:14:14 +01:00
renovate[bot] 57d9dd1419
Update dependency @elastic/charts to v24.5.1 (#89822)
Updates @elastic/charts to 24.5.1 with some Kibana related fixes:
- align tooltip z-index to EUI tooltip z-index
- external tooltip legend extra value sync
- legend: hierarchical legend order should follow the tree paths


fix #84307

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 09:18:48 +01:00
Pete Harverson 4881306419
[ML] Stops new line on enter key press for KQL query bars (#90960) 2021-02-10 17:22:37 +00:00
Melissa Alvarez 2a93ebe43b
[ML] Data Frame Analytics creation wizard: adds support for extended hyper-parameters (#90843)
* add support for new hyperparameters in the creation wizard

* fix translation error
2021-02-10 10:52:46 -05:00
Nathan Reese 1ba7d7af9a
[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292)
* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 17:31:57 -07:00
Nathan Reese 6c224e5a10
Switch import route tag from access:ml:canFindFileStructure to access:fileUpload:import (#90677) 2021-02-09 14:34:34 -07:00
Melissa Alvarez f6b6a8219b
[ML] Data Frame Analytics: Support early stopping data frame analytics job parameter (#90695)
* add support for early_stopping_enabled in cloning

* remove obsolete comment
2021-02-09 14:52:41 -05:00
Kerry Gallagher 32ddd5e795
[Logs UI] Show anomalies across both the log rate and categorization ML jobs in a swimlane visualization. (#89589)
* Allow anomalies visualisation to represent anomalies from all jobs

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-02-09 15:28:59 +00:00
James Gowdy 3d068c5db9
[ML] Lazy ml node UI improvements (#90455)
* [ML] Lazy ml node UI improvements

* fixing test

* adding awaitingMlNodeAllocation to default datafeed response

* changing datafeed icon when node is not assigned

* updating text

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 15:03:23 +00:00
Dima Arnautov ec672f5df2
[ML] Handle invalid job ids payload in the Anomaly swim lane (#90597)
* [ML] handle invalid job ids payload

* [ML] set type for error

* [ML] set entire error object
2021-02-08 17:48:14 +01:00
Quynh Nguyen eff9d4381f
[ML] Fix incorrect behaviors for Anomaly Detection jobs when resetting or converting to advanced job (#90078) 2021-02-05 13:48:14 -06:00
Quynh Nguyen 70d61436bc
[ML] Add Lens and Discover integration to index based Data Visualizer (#89471) 2021-02-05 11:58:57 -06:00
Pete Harverson d3fd7bb7ca
[ML] Allow filtering by mlcategory in Anomaly Explorer Influencers list (#90282)
* [ML] Allow filtering by mlcategory in Anomaly Explorer Influencers list

* [ML] Use getFormattedSeverityScore for formatting anomaly scores
2021-02-05 16:32:49 +00:00
István Zoltán Szabó a63dd15eac
Adjusts button labels to match titles in Data Visualizer. (#90289)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 09:37:22 +01:00
Brandon Kobel 4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
James Gowdy 501f763713
[ML] Fixing cloud behaviour when ML nodes are lazily assigned (#90051)
* [ML] Fixing cloud behaviour when ML nodes are lazily assigned

* fixing duplicate id

* updating snapshot

* removing comments

* fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 17:01:05 +00:00