Commit graph

244 commits

Author SHA1 Message Date
James Gowdy f18c571ed6
[ML] Listing all categorization wizard checks (#60502)
* [ML] Listing all categorization wizard checks

* fixing translation

* changes based on review

* moving check

* adding real values to messages

* reordering checks enum

* fixing types

* updating tests

* updating id
2020-03-20 12:07:54 +00:00
Dima Arnautov 7aa4651292
[ML] Use a new ML endpoint to estimate a model memory (#60376)
* [ML] refactor calculate_model_memory_limit route, use estimateModelMemory endpoint

* [ML] refactor validate_model_memory_limit, migrate tests to jest

* [ML] fix typing issue

* [ML] start estimateModelMemory url with /

* [ML] fix typo, filter mlcategory

* [ML] extract getCardinalities function

* [ML] fields_service.ts

* [ML] wip getMaxBucketCardinality

* [ML] refactor and comments

* [ML] fix aggs keys with special characters, fix integration tests

* [ML] use pre-defined job types

* [ML] fallback to 0 in case max bucket cardinality receives null

* [ML] calculateModelMemoryLimit on influencers change

* [ML] fix maxModelMemoryLimit

* [ML] cap aggregation to max 1000 buckets

* [ML] rename intervalDuration
2020-03-19 16:45:40 +01:00
James Gowdy fd16c46128
[ML] Re-enabling file upload telemetry (#60418)
* [ML] Re-enabling file upload telemetry

* small refactor

* removing exported function

* removing commented out code

* removing commented out include

* cleaning up types
2020-03-18 08:33:53 +00: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
spalger 410019ab5a skip flaky suite (#59541) 2020-03-12 13:17:23 -07:00
James Gowdy d5c092811b
[ML] Adding shared services to ml setup contract (#59730)
* [ML] Adding shared services to ml setup contract

* adding data recognizer

* typescripting js client

* adding results service

* code clean up

* adding generic ml index search

* making cloud optional
2020-03-12 10:04:40 +00:00
James Gowdy 8a4bb61f05
[ML] Fixes bucket span estimators loading of max_buckets setting (#59639)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-09 14:43:23 +00:00
James Gowdy 92cc04c7df
[ML] Refactoring anomaly detector job types (#59556)
* [ML] Refactoring anomaly detector job types

* removing calendar type

* update validateCardinality

* fixing test

* updating  types in functional tests

* using state constants
2020-03-09 13:51:07 +00:00
Melissa Alvarez d55524c338
[ML] NP Server: make security and spaces plugins optional (#59156)
* make security and spaces plugins optional

* update spacesPlugin name. update current user check
2020-03-05 10:06:36 -05:00
Pete Harverson b104980b88
[ML] Add support for date_nanos time field in anomaly job wizard (#59017)
* [ML] Add support for date_nanos time field in anomaly job wizard

* [ML] Edits following review

* [ML] Add functional test for creating job off date_nanos data
2020-03-05 09:28:31 +00:00
James Gowdy a6d2b57777
[ML] Fixing records and buckets results endpoints (#59313) 2020-03-04 17:04:47 +00:00
James Gowdy eb40046b93
[ML] Fixing licensing after server NP cutover (#59275) 2020-03-04 10:14:11 +00:00
Jonathan Budzenski ff23fa3849
Revert "[ML] Fixing licensing after server NP cutover (#58853)" (#59244)
This reverts commit fd5c6c16cd.
2020-03-03 17:09:29 -06:00
James Gowdy fd5c6c16cd
[ML] Fixing licensing after server NP cutover (#58853)
* [ML] Fixing licensing after server NP cutover

* client side refactor

* management refactor

* moving management license check

* adding server side license class

* added common license class

* client sides using license class

* updating server api guards

* fix privileges tests

* updating translations

* fixing disabled tabs on basic license

* refactoring client side license checks

* setting license initialized flag

* fixing license check on index data viz

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-03 18:57:40 +00:00
James Gowdy 4ef594c208
[ML] Adding indices_options to datafeed (#59119)
* [ML] Adding indices_options to datafeed

* adding extra checks to the schema

* updating expand_wildcards
2020-03-03 11:59:35 +00:00
James Gowdy 38067da7ac
[ML] Fixing annotations alias checks (#58722) 2020-02-28 14:30:04 +00:00
Melissa Alvarez 8c3d71b370
[ML] NP: migrate server (#58680)
* remove obsolete legacy server deps

* licensePreRoutingFactory uses licensing plugin rather than legacy xpack

* move schemas to dir in routes

* use NP license check method for license check

* store license data in plugin for passing to check

* create server plugin files in NP plugin dir

* remove dependency on legacy xpack plugin

* add sample data links first step

* move all server dirs from legacy to np dir

* fix requiredPlugin spaces name and update import routes

* delete unnecessary files and add sample data links

* update license and privilege check tests

* add routeInit types
2020-02-27 21:15:08 -05:00
Court Ewing 7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
James Gowdy 89892ba097
[ML] Fixing server side logger after new platform change (#39154) 2019-06-18 15:18:44 +01:00
Melissa Alvarez c47a0d5cdf
[ML] New Platform Migration - server (#38360)
* wip: pull out all server dependencies

* create new platform plugin

* shim newPlatform plugin into legacy init

* update server tests for migration refactor

* cleanup interfaces

* Only add ML links for sample data sets if full license from - 38120

* update test and fix typescript errors

* Remove unused types
2019-06-17 16:08:13 -04:00
Pete Harverson 1a03c5135b
[ML] Increase max data frames in list from 100 to 1000 (#38973) 2019-06-14 14:32:55 +01:00
Pete Harverson 41d74498e8
[ML] Edit job_service jobsExist call to query ML Get Jobs endpoint (#38649) 2019-06-11 15:02:35 +01:00
Pete Harverson 4a3034de49
[ML] Fixes loading of Single Metric Viewer if partition field is text (#37975)
* [ML] Fixes loading of Single Metric Viewer if partition field is text

* [ML] Fix failing test and edit translations for cardinality check

* [ML] Edits to fields_service.js following review
2019-06-05 12:02:03 +01:00
Matthew Kime 964f9e2d41
remove unneeded eslint-disable directives (#37922)
* remove unneeded eslint-disable directives
2019-06-04 07:53:22 -05:00
Melissa Alvarez ca2a66dd26
return false for each jobId if it does not exist (#37116) 2019-05-28 11:58:43 -04:00
Matthew Kime e390be2f11
No unused vars cleanup set two (#37051)
* no unused vars cleanup
2019-05-24 14:35:21 -05:00
stevedodson 9463fd8778
[ML] Improve anomalies in Kibana sample data (#36982)
* [ML] Sample ML jobs: Updates to make anomalies clearer

Minor updates to web logs data and ML job
definitions to make anomalous activity more
distinct.

* [ML] Sample ML jobs: Further updates to jobs and data

Adding missing files from previous commit and
changing job naming (removing weblog_* prefix etc.)

* [ML] Resolving PR review comments.

* [ML] Improve anomalies in Kibana sample data

Minor fixes:
- Rename job group to `kibana_sample_data` throughout
- Fix index pattern link in `sample_data_sets.ts`
- Fix log.json.gz count test
2019-05-24 15:32:06 +02:00
James Gowdy 0babbf150d
[ML] Changes interval to fixed_interval in aggregations in created jobs (#36759)
* [ML] Changes interval to fixed_interval in aggregations in created jobs

* updates following review
2019-05-22 09:57:41 +01:00
Walter Rafelsberger 1e25d1d5e5
[ML] Data Frames: Improve start/stop behavior (#36757)
- Adds a confirm modal to the Start button of the data frame jobs list. image
- Adds a snippet with a warning about possibly cluster load to wizard. image
- Uses _stop?force=true to stop jobs.
- Adds a check to disable the start button in the jobs list if the job is a completed batch job.
2019-05-21 20:55:36 +02:00
Pete Harverson cc7a6ec2c1
[ML] Add links to ML jobs to the Kibana sample dataset view data menu (#36702)
* [ML] Add links to ML jobs to the Kibana sample dataset view data menu

* [ML] Remove redundant TODO comment from check_module.js

* [ML] Edits to sample data ML links following review

* [ML] Edits to comments about use of reject in check_module.js
2019-05-21 15:34:41 +01:00
Camilla e997ffe0e9
[ML] Kibana Sample Dataset data recognizer modules (#35138)
* Initial job configuration files for Kibana Sample Ecommerce data recognizer

* Initial configuration files for Kibana Sample Data for web logs

* Initial configuration for Kibana Sample Data recognizer for Flights data

* Correcting ID, title and description of Flights sample data recognizer

* Adding Custom URLs to link to Discover from Kibana Sample Dataset ML jobs

* Adding custom URLs to Ecommerce Data Recognizer results

* Adding new custom URL to Kibana Sample Ecommerce data recognizer

* Adding custom URL for Sample Flights dataset dashboard

* Adding custom URLs to sample Web Logs data recogniser config

* Fixing single quotes and url names in custom URLs for flights and ecommerce datasets

* Adding Kibana Sample Data modules to list of modules that need testing

* Renaming Kibana Sample Data recognizer modules, fixing IDs and adding modules to test framework

* Fixing data recognizer titles to sentence case

* Fixing sentence case issues in Kibana eCommerce sample data

* Fixing sentence case in Kibana sample flights data

* Fixing sentence case in Kibana sample weblogs data

* Changing job configuration for Kibana sample flights data

* Making changes to job descriptions

* Changing job configurations and renaming files for Kibana eCommerce sample data recognizer

* Removing mean bytes by file extension from Web Logs sample jobs and adding three new configurations

* Fixing minor issues with Kibana Sample Data recognizer configurations

* Adding jobs to job groups

* Changing job group names to use underscores instead of hyphens

* Adding filtering to Kibana Sample Data dashboards

* Fixing linting issues in JSON configs

* Finetuning data recognizer module descriptions

* Renaming Kibana Sample Data flights jobs

* Removing plural from Kibana Sample Flights dataset description

* Modifying custom URLs for Kibana Flights jobs

* Fixing custom URLs for Kibana Sample eCommerce dataset jobs

* Adding new influencers and fixing Discover custom URLs for Kibana Weblogs sample dataset job

* Fixing space before colon issue in job configurations

* Converting tabs to spaces

* Fixing description of detector in sample dataset eCommerce job
2019-05-21 16:32:57 +02:00
Chris Roberson c87e8811cb
[Monitoring/Telemetry] Force collectors to indicate when they are ready (#36153)
* Initial code to force collectors to indicate when they are ready

* Add and fix tests

* Remove debug

* Add ready check in api call

* Fix prettier complaints

* Return 503 if not all collectors are ready

* PR feedback

* Add retry logic for  usage collection in the reporting tests

* Fix incorrect boomify usage

* Fix more issues with the tests

* Just add debug I guess

* More debug

* Try and handle this exception

* Try and make the tests more defensive and remove console logs

* Retry logic here too

* Debug for the reporting tests failure

* I don't like this, but lets see if it works

* Move the retry logic into the collector set directly

* Add support for this new collector

* Localize this

* This shouldn't be static on the class, but rather static for the entire runtime
2019-05-20 13:03:24 -04:00
Walter Rafelsberger e06569c437
[ML] Data Frame: Wizard Create Step Improvements (#36483)
Revamps the job creation step of the data frame wizard.

- Create & start buttons now have additional descriptions
- Adds a "copy to clipboard" button to copy a Kibana Dev Console statement of the job creation command to the clipboard
- Adds a progress bar once the job is started
- Adds a card which links to Kibana Discover if an index pattern was created for the job
- Hides the wizard's Previous button once the job is successfully created.
2019-05-20 17:30:25 +02: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
Peter bc90140f8e
enable security plugin in basic (#35891)
enable security on file dataviz and import (ML plugin)

update unit tests

add api test coverage for security in basic

move audit logging to standard+ license level
2019-05-03 11:21:32 -07:00
Pete Harverson 3577c43d90
[ML] Edit queries in Metricbeat module to use event.dataset field (#35653) 2019-04-29 11:09:16 +01:00
Pete Harverson 43b9c7ad89
[ML] Adds Metricbeat System data recognizer module (#35580)
* [ML] Adds Metricbeat System data recognizer module

* [ML] Edit description of Metricbeat System module
2019-04-25 16:24:39 +01:00
Walter Rafelsberger d316dca98a
[ML] Data Frame UI (#33427) 2019-04-23 16:46:52 +02:00
James Gowdy c0edcbe9ab
[ML] Round value when using max model memory limit (#35223)
* [ML] Round value when using max model memory limit

* changing ceil to floor to avoid accidentally exceeding max mml
2019-04-17 16:00:35 +01:00
James Gowdy 3930c36898
ML] Fixes bug in module setup endpoint caused by PR 30935 (#34414)
* [ML] Fixes module setup endpoint

* tweaks endpoint to allow trailing slash
2019-04-03 12:42:59 +01:00
James Gowdy 2315ac1173
[ML] List data recognizer modules (#30935)
* [ML] [WIP] List data recognizer modules

* making module id optional

* sort modules

* removing list_module endpoint

* removing list_modules call

* listed modules include saveObjects

* adding tests
2019-04-02 17:23:56 +01:00
Walter Rafelsberger 2882d2853f
[ML] Fixes check to determine whether telemetry is enabled. (#33975) 2019-03-27 19:43:01 +01:00
Pete Harverson 0603f7a8db
[ML] Adds created_by field to auditbeat and APM data recognizer jobs (#33863) 2019-03-27 11:05:12 +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
Pete Harverson 5ff422d353
[ML] Skip invalid modules when data recognizer lists matches (#33703)
* [ML] Skip invalid modules when data recognizer lists matches

* [ML] Append error to data recognizer module load console logs
2019-03-22 16:45:01 +00:00
Pete Harverson 3581f1d54b
[ML] Fixes URL to get job stats when getting stats for all jobs (#33237) 2019-03-14 14:25:39 +00:00
Pete Harverson a1a9511446
[ML] Edits data recognizer modules to use KQL in saved objects (#32766) 2019-03-08 16:35:20 +00:00
Melissa Alvarez 576c90ae8d
[ML] Add query bar to Anomaly Explorer for filtering of anomaly results for one or more influencers (#31763)
* wip: add autocomplete kueryFilterBar.update endpoints with query.

* Create indexPattern on job change. Value is autocompleted

* Mask unrelated swimlanes on filter apply

* Only show relevant viewBy swimlane

* reload viewBy swimlane when view By change is relevant to filter

* handle various query types when building filteredFields list

* remove deprecated code from old filter bar

* Show error callout when invalid filter syntax

* remove dependency on deprecated import var

* remove all left over apm dependencies

* persist filter on refresh

* Create initial filter bar placeholder dynamically

* add description text when filter active

* switch to relevant viewBy fieldname on filter

* recalculate placeholder on job change

* Create tests for all components

* View by dropdown only contains relevant fields for filter

* fix localization message noInfluencers component

* Move indexPattern to state and viewBy option filtering to utils

* remove unnecessary setState when setting viewBy for filter

* Use preloaded jobs from mlJobService to get influencers

* Only filter viewByOptions if valid field

* use kql and move to components dir

* move filter bar to public/components/
2019-03-05 15:07:30 -06:00
Walter Rafelsberger 46f7a350fe
[ML] Adds missing error handling to annotations request. (#32384)
- This adds more thorough error handling to retrieving annotations from the server to avoid breaking Anomaly Explorer when there's a problem retrieving annotations. The UI will silently fail and hide the annotations table if for whatever reasons annotations cannot be retrieved for the selected jobs (this could be permissions or setup related if e.g. the annotations feature index/aliases are not present). This is now the same behavior like in Single Metric Viewer. The browser console will still output an error message. This fixes an error scenario where Anomaly Explorer would fail to load if a user upgraded to 6.6 because the backend task wasn't run yet to create the annotation index/aliases.
- Disables annotations feature in Single Metric Viewer if annotations fail to load.
- Use componentDidUpdate and an update check instead of deprecated componentWillUpdate for updating the annotations table in jobs management.
2019-03-05 17:04:47 +01:00
Aleh Zasypkin 0835cd30ca
Introduce Elasticsearch service. (#28344) 2019-02-28 17:22:07 +02:00
James Gowdy f89faec278
[ML] Changing job wizard query to use match_all (#32008)
* [ML] Using job wizard query to use match_all

* adding query back in for data visualizer

* fixing typo
2019-02-26 16:51:17 +00:00
James Gowdy a28855a183
[ML] Fixing error when checking privileges for user with no ml_user role (#31429) 2019-02-18 18:37:14 +00:00
Pete Harverson 03b496e8cf
[ML] Fixes filter and icon for APM Data Recognizer module (#30820) 2019-02-13 17:24:43 +00:00
James Gowdy 2f4de7121c
[ML] Using eui icons in data recognizer modules (#30821) 2019-02-12 18:24:07 +00:00
Pete Harverson 0e5730c991
[ML] Removes non ECS apache, nginx and auditbeat data recognizer modules (#30537) 2019-02-11 12:21:21 +00:00
Walter Rafelsberger e312daecfc
[ML] Fix Job Audit Messages filter. (#30490)
The way job audit messages were fetched didn't retrieve the expected results if there were deleted jobs with messages still present for these jobs.
This fix allows to specify a list of job IDs to filter the audit messages on. For the jobs list UI, the currently existing job IDs will be passed on to ignore messages from deleted jobs.
2019-02-08 15:13:17 +01:00
Pete Harverson aed16cf27b
[ML] Fixes bucket spans and detector descriptions in ECS auditbeat modules (#30362) 2019-02-07 12:50:24 +00:00
Walter Rafelsberger 3d4dc093f3
[ML] Adds jest tests for annotation_service. (#30193)
This adds tests to `server/models/annotation_service`. The tests include a check if the `.key` attribute of an annotation is properly removed from an annotation before indexing it.
2019-02-06 14:43:04 +01:00
Walter Rafelsberger 0942332b0a
[ML] Remove key attribute from annotation before indexing. (#30183)
The UI adds a `key` attribute to annotation objects to store the letter used for labels in the chart and tables. When editing and saving an annotation that `key` could end up being saved to the annotations index. This isn't necesseary since the `key` attribute is just a dynamic label used within the UI. This fixes it by deleting an eventual `key` attribute from the annotations object before saving it to the index.
2019-02-06 11:23:29 +01:00
Sophie Chang 9ebddcc8a4 [ML] Update auditbeat modules for ECS (#29934)
* [ML] Initial commit for auditbeat hosts ECS

Rename fields for ECS
Rework dashboards due to bwc

* [ML] Further auditbeat tidy up and consistency changes

Custom urls should link to saved search, not discover
Ensure savedSearchId is used for visualizations
Ensure filter terms are consistent

TODO Decide if we should rename to auditd module
TODO Fix for new saved object format

* [ML] Refinements for auditbeat host module

Remove duplicated title from visState
Shrink panel heights in row 1

* [ML] Refinements to auditbeat module

Update module name from auditd to auditbeat
Add useMargins true for dashboards
Add filter to custom url for
   exists auditd.data.syscall
   not exists container.runtime
   event.module: auditd

* [ML] Initial commit for auditbeat_process_docker_ecs

Update for ECS using
  container.name (instead of container.id)
  container.runtime: docker
  process.executable
  event.module: auditd
  auditd.data.syscall exists

TODOs
Use auditd.message_type: syscall (instead of auditd.data.syscall)
Possibly combine with auditbeat hosts saved objects (depending on host.name being shared)
Possibly combine to single dashboard
Test against live auditbeat data collection
2019-02-05 19:06:25 +00:00
Walter Rafelsberger fd8434a823
[ML] Fixes annotations integrity check. (#30102)
With security enabled, the internal user wouldn't have enough permissions to run the integrity check. This changes the check to use the currently logged in user. Also fixes some typos in messages.
2019-02-05 19:45:14 +01:00
Pete Harverson d0f3b2a068
[ML] Fix filter params in HTTP Access job custom URLs (#30066) 2019-02-05 15:41:55 +00: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
James Gowdy fda6efed1a
[ML] Adding index migration warnings (#28938)
* [ML] Adding index migration warnings

* small refactor

* correctlng comment

* adding upgrade service to manage upgradeInProgress state

* removing missing function
2019-02-05 12:27:32 +00:00
Walter Rafelsberger f2e3aff333
[ML] Adds an integrity check to creating, updating and deleting annotations. (#29969)
Adds an integrity check to make sure the required index and aliases are present before creating, updating or deleting annotations.
2019-02-05 10:14:45 +01:00
Pete Harverson 6afcc28c3b
[ML] Edits to labels in the Apache and Nginx ECS data recognizer modules (#29935) 2019-02-04 17:19:25 +00:00
Walter Rafelsberger 7966b2ff78
[ML] adds telemetry to ML (#29121)
Adds telemetry to collect the amount of indices created using File Data Visualizer.
2019-02-04 13:14:25 +01:00
Pete Harverson 0c86822e40
[ML] Automatically migrate saved objects created by data recognizer (#29736)
* [ML] Automatically migrate saved objects created by data recognizer

* [ML] Remove TODO from saved object import step
2019-01-31 19:54:22 +00:00
Sophie Chang 413d37d5ed [ML] Update http access modules for ECS (#29383)
* [ML] Initial commit for apache ecs module

* [ML] Update apache2 module for ECS

Rename following fields
event.module:apache
event.dataset:access
source.address
url.original
http.response.status_code
source.geo.location

Rationalise to only use one set of kibana saved objects for all http web access logs
Rename files from apache
Combined URL explorer into Count explorer dashboard as there was a lot of duplication
Add filter to custom url
Rename custom urls to Investigate Source IP and Status Code
Add chart to show overall event rate split by event.module - can tell if multiple datasets are included
Increase limit for top source ips from 5 to 50
Add created_by to custom setting for telemetry
Rename jobs and saved objects to include ecs tag

Tested side by side against v6 jobs

* [ML] Rename apache files from hyphen to underscores

* [ML] Further apache renames

Also change custom URLs to lower case to match "View series"
Change created_by to ml-module-apache-access

* [ML] Initial commit of nginx ml module

* [ML] Rename dashboard to generic explorer

* [ML] Further refinement for apache

Rename http_status_code to status_code_rate
Update custom url to use filters instead of lucene query bar

* [ML] Convert apache module to nginx

Copy files, keeping nginx logo
Multiple renames to nginx

* [ML] Make chart legend visible by default
2019-01-31 11:39:18 +00:00
Mike Côté 1b0f595f01
Add new "references" attribute to saved objects for relationships (#28199)
* Add new references attribute to saved objects

* Add dual support for dashboard export API

* Use new relationships API supporting legacy relationships extraction

* Code cleanup

* Fix style and CI error

* Add missing spaces test for findRelationships

* Convert collect_references_deep to typescript

* Add missing trailing commas

* Fix broken test by making saved object API consistently return references

* Fix broken api integration tests

* Add comment about the two TS types for saved object

* Only return title from the attributes returned in findRelationships

* Fix broken test

* Add missing security tests

* Drop filterTypes support

* Implement references to search, dashboard, visualization, graph

* Add index pattern migration to dashboards

* Add references mapping to dashboard mppings.json

* Remove findRelationships from repository and into it's own function / file

* Apply PR feedback pt1

* Fix some failing tests

* Remove error throwing in migrations

* Add references to edit saved object screen

* Pass types to findRelationships

* [ftr] restore snapshots from master, rely on migrations to add references

* [security] remove `find_relationships` action

* remove data set modifications

* [security/savedObjectsClient] remove _getAuthorizedTypes method

* fix security & spaces tests to consider references and migrationVersion

* Add space id prefixes to es_archiver/saved_objects/spaces/data.json

* Rename referenced attributes to have a suffix of RefName

* Fix length check in scenario references doesn't exist

* Add test for inject references to not be called when references array is empty or missing

* some code cleanup

* Make migrations run on machine learning data files, fix rollup filterPath for savedSearchRefName

* fix broken test

* Fix collector.js to include references in elasticsearch response

* code cleanup pt2

* add some more tests

* fix broken tests

* updated documentation on referencedBy option for saved object client find function

* Move visualization migrations into kibana plugin

* Update docs with better description on references

* Apply PR feedback

* Fix merge

* fix tests I broke adressing PR feedback

* PR feedback pt2
2019-01-30 15:53:03 -05:00
James Gowdy ec607e26b9
[ML] Better handling of recognizer module manifest parsing errors (#29322) 2019-01-28 10:32:15 +00:00
James Gowdy 45b8ff99f0
[ML] Adding ability to override number of sample lines in File Data Visualizer (#29214)
* [ML] Adding ability to override number of sample lines in file data viz

* tiny tweak

* updating tests
2019-01-24 10:03:09 +00:00
Spencer c052613962
[dashboard+gis] remove dark mode options (#29017)
* [dashboard+gis] remove dark mode options

* [reporting/extract] restore fixtures

* remove mentions of old `.theme-dark` class

* import panel styles from panel/_index.scss
2019-01-23 14:29:35 -08:00
James Gowdy c91ec0d1ef
[ML] Adding privilege checks to File Data Visualizer (#29109)
* [ML] Adding privilege checks to File Data Visualizer

* fixing typo in comment
2019-01-22 17:07:53 +00:00
Pete Harverson ed9a599b0d
[ML] Removes use of types from ES index and search calls (#28987) 2019-01-18 12:32:31 +00:00
Melissa Alvarez 7f8203715d
[ML] Add support to Data Visualizer for index patterns without a time field (#28511)
* Prevent docCount fetch and remove sidebar if no timeField set.

* Don't show metrics section if no metrics cards

* Add parens to conditional statement as per styleguide

* Don't create docCount card if not timeseries based
2019-01-14 12:31:46 -05:00
pavel06081991 19b84f0bc2
[ML] translate job validation messages (#28235)
[ML] translate job validation messages
2019-01-14 14:04:39 +03:00
pavel06081991 09ea8e35a3
[ML] translate models (#27888)
[ML] translate models
2019-01-14 12:24:30 +03:00
Nox911 2dfe4136b9 Translate ml -> server -> lib (#27974) 2019-01-08 11:13:17 +03:00
Pete Harverson ef5e7a596e
[ML] Update REST endpoint calls to remove _xpack (#28069) 2019-01-04 16:48:05 +00:00
James Gowdy 0232b9b69e
[ML] Fix for audit message search size being 0 when jobs size is 0 (#27955) 2019-01-03 11:06:50 +00:00
Dimitris Athanasiou b2f44622fe
[ML] Remove use of types in datafeeds (#27572)
This commit removes the use of types in datafeeds
and a few more places where it was possible.

Relates #26968
2019-01-02 09:34:38 +02:00
Walter Rafelsberger 7971b15cec
[ML] Fix audit messages. (#27575) 2018-12-21 10:59:52 +01:00
Pete Harverson 9b4a5a07d8
[ML] Handle removal of backend ml.enabled node attribute (#27604) 2018-12-21 09:13:30 +00:00
Walter Rafelsberger 5a7ab185f9
[ML] Adds a check if the current user can access the indexpattern required to clone a job. (#27496)
Adds a check if all index patterns necessary to clone a job are available for the current user. The check will only allow cloning of a job if the user has the right permissions and can still access the indexPattern the job was created for. An indexPattern could either have been deleted since the the job was created or the current user doesn't have the required permissions to access the indexPattern. The "Clone Job" action in the jobs list action menu will be greyed out and unavailable for that job.
2018-12-20 10:34:27 +01:00
Pete Harverson bfa80411bb
[ML] Fix data visualizer to obtain total hit count as int (#27490) 2018-12-19 13:42:04 +00:00
Walter Rafelsberger 59d078e31c
[ML] Fix annotations feature startup behavior. (#27424)
* [ML] Fix annotations feature startup behavior.
* [ML] Move strings to constants.
2018-12-18 21:46:16 +01:00
Walter Rafelsberger c6dc1a1fec
[ML] List all annotations in jobs list annotations table. (#27300)
* [ML] List all annotations in jobs list annotations table even outside analysis time range.
* [ML] Adjust the links time range if annotation is outside analysis time range.
2018-12-18 09:24:24 +01:00
Pete Harverson 6cc9bc2fc6
[ML] Adds created_by meta data for file data viz import indexes (#27303) 2018-12-17 15:28:04 +00:00
Pete Harverson c334c40453
[ML] Updates to jobs and dashboards in auditbeat process modules (#27233) 2018-12-17 11:35:16 +00:00
Walter Rafelsberger 26c77eb25e
[ML] User Annotations (#26034)
Allows users to add/edit/delete annotations in the Single Series Viewer.
2018-12-14 14:09:52 +01:00
Pete Harverson ae27e83712
[ML] Add rest_total_hit_as_int where total hits is required (#26421) 2018-12-04 09:25:24 +00:00
Pete Harverson d97609eaeb
[ML] Aggregate anomalies table data using configured Kibana timezone (#26192)
* [ML] Aggregate anomalies table data using configured Kibana timezone

* [ML] Move dataFormatTz prop out of controller scope
2018-11-27 11:49:47 +00:00
Pete Harverson cc07aa29d5
[ML] Edits to fields used in auditbeat module configurations (#25866) 2018-11-19 16:22:42 +00:00
Melissa Alvarez 354d7cc431
[ML] Add checkbox to enable model plot in Advanced job wizard (#25468)
* Move cardinality success check to utils

* enableModelPlot checkbox base added

* Run cardinality check on add/update fields

* Handle changes made via json

* only run cardinality check if model plot enabled

* Handle model plot enabled via EditJSON tab

* show message on cardinality check error

* multi-metric + pop: show message on cardinality check error

* add test for callout component

* Fix flexitem overflow in IE11
2018-11-16 13:41:08 -08:00
Pete Harverson b52ddd206a
[ML] Adds auditbeat process data recognizer modules (#25716)
* [ML] Adds auditbeat process data recognizer modules

* [ML] Sorts Kibana objects by title in recognizer job wizard

* [ML] Rename auditbeat modules Kibana objects to snake_case

* [ML] Remove auditbeat docker module kibana files

* [ML] Add auditbeat docker kibana objects with lowercase names

* [ML] Remove auditbeat host module kibana files

* [ML] Add auditbeat host module files with lowercase filenames
2018-11-16 15:33:42 +00:00
Pete Harverson 1a3f0cac4b
[ML] Fixes recognizer job wizard to use dedicated index setting (#25706) 2018-11-15 14:40:41 +00:00
Pete Harverson df0d62f6ed
[ML] Updates job type and APM module icon to new designs (#25380)
* [ML] Updates job type and APM module icon to new designs

* [ML] Use self closing tags for icons

* [ML] Removes unnecessary icon from jobs list
2018-11-08 21:13:59 +00:00
Walter Rafelsberger 3b94e3cece
[ML] Removes deprecated angularjs based jobs list and related code. (#25216) 2018-11-06 20:05:45 +01:00
Melissa Alvarez 830e149787
[ML] MultiMetric/Population Job creation: Allow model plot enablement via checkbox (#24914)
* Add route/api-mapping for validateCardinality

* Create directive for enableModelPlot checkbox

* Ensure model plot enabled prior to cardinality check

* Add callout when cardinality high

* ensure correct cardinality success check

* Population wizard: add enableModelPlot checkbox

* Update with suggested changes from review

* Remove warning when invalid. Add tests.

* Ensure checkbox updated on uncheck
2018-11-06 11:52:26 +00:00
Walter Rafelsberger e5ebc62b16
[ML] Fixes typo. (#25130)
Fixes "Dectector" Typo.
2018-11-05 18:13:56 +01:00
James Gowdy 62f82c96f6
[ML] Fixing issues when trying to import non-timestamp data (#24894)
* [ML] Fixing issues when trying to import non-timestamp data

* making results link time range optional

* small cleanup after fixing merge conflict
2018-10-31 18:06:49 +00:00
Josh Dover 27e5406d7a
Upgrade Hapi in legacy platform to v17 (#21707)
* Disable even-better monitoring

* Upgrade to Hapi v15

* Upgrade to Hapi v16

* Handle optional req params correctly

* Update http and kbnServer

* Get mocha tests passing

* Convert `reply` usages [wip]

* Fix Joi and Plugin incompatibilities

* Get server up and running

* Get basic logging working

* Fix optimizer

* Fix recent route handlers

* Various fixes

* Fix recent routes

* Upgrade wreck for async/await

* Fix mocha tests

* Fix joi issues

* Fix xpack jest tests

* Fix recent routes

* Fix tests

* Fix index setup

* Decouple monitoring stats collection from good plugin

* Update reload logging test to work

* Reimplement logging with updated good plugin

* Fix unit tests

* Fix getConnections back

* Make LegacyLoggingServer compatible with Hapi v17

* Update joi types

* Fix x-pack unit tests

* Remove stray debugger

* Remove hapi-compat

* Fix API integrations

* Upgrade boom

* Fix security plugin

* Misc fixes

* bump

* Fix licensePreRoutingFactory

* Fix failing integration tests

* Remove unnecessary test change

* Remove hapi-latest package

* fx

* Various cleanup

* Fix race condition in oppsy events

* Use elastic/good fork

* Fix boom.wrap and hapi-latest changes

* Simplify LegacyLoggingServer updates

* package.json cleanup + test fix

* yarn.lock cleanup

* Change good tag

* Fixes

* Change return err -> throw err in routes

* Fix await returns

* Fix new load_data test

* Make cookie security flags consistent

* tmp doc

* Fix types

* Fix tests

* Upgrade canvas plugin

* Move good package to published @elastic/good one

* Fix SO test

* Fix logging reloading

* Update APM apis

* Fix error logging

* Fix logging test

* Convert spaces plugin

* Add validation error shim

* Remove 7.0 release notes

* Await renderApp

* Fix ccr routes

* Prevent header popovers from scrolling with page content (#23850)

* Fix spaces test

* new yarn.lock-s

* Fix spaces tests

* Remove h2o2-latest

* Fix @types/hapi

* Upgrade InfraOps plugin

* Fix package.json

* Add back isSameSite: false

* Upgrade beats_management plugin

* Update snapshot

* Fix InfraOps

* Upgrade kql_telemetry

* Merge upstream/master

* Upgrade apm and ml

* Put snapshot test back

* Fx beats

* Upgrade rollups

* Update boom usages in new plugins
2018-10-25 16:01:12 -05:00
Pete Harverson e900879cc3
[ML] Fixes labels in datafeed time range selector modal (#24489) 2018-10-24 15:50:56 +01:00
James Gowdy 25d35fac27
[ML] Adds File Data Visualizer feature (#24423)
* [ML] File datavisualizer initial commit (#22828)

* [ML] File datavisualizer initial commit

* removing mocked data and adding initial stats

* adding card styling to fields

* Revert "". accidentally added with no commit message

This reverts commit d762d20b706e6a770e631f863b9e7d8879bb7ee6.

* adding date type to timestamp field

* renaming FileStats to FieldsStats

* code clean up

* changes based on review

* changes to error handling

* [ML] Adding file datavisualizer overrides (#23194)

* [ML] Adding file datavisualizer overrides

* improvements to overrides

* removing comment

* small refactor

* removing accidentally added file

* updates based on review

* fixing broken test

* adding missing grok pattern override

* fixing test

* [ML] Refactoring override option lists (#23424)

* [ML] Refactoring override option lists

* moving lists out of class

* updating test snapshot

* [ML] Fixing field editing (#23500)

* [ML] Changes to timestamp formats (#23498)

* [ML] Changes to timestamp formats

* updating test snapshot

* [ML] Allow Datavisualizer use on basic license (#23748)

* [ML] Allow ML use on basic license

* removing timeout change

* adding permission checks

* updating tests

* removing unnecessary checks

* [ML] Adds new page for choosing file or index based data visualizer (#23763)

* [ML] Adding license check to datavisualizer landing page (#23809)

* [ML] Adding license check to datavisualizer landing page

* removing comments

* updating redirect to landing page

* [ML] Adding ability to upload data to elasticsearch from datavisualizer  (#24042)

* [ML] Initial work for delimited file upload

* adding results links cards

* adding nav menu

* removing accidental debugger

* initial work for importing semi structured text

* using ingest pipeline for import

* adding json importer and better error reporting

* better progress steps

* time range added to results links

* first import only creates index and pipeline

* adding status constants

* using status constants

* adding explanation comment

* updating yarn.lock

* changes based on review

* fixing space

* fixing space again, stort it out git

* removing oversized background container causing constant scrollbar

* [ML] Adding basic license check when loading privileges (#24173)

* [ML] Adding basic license check

* missing import

* [ML] Adds an About panel to the file data visualizer landing page (#24260)

* [ML] Adds an About panel to the file data visualizer landing page

* [ML] Remove unnecessary style from file data visualizer scss

* [ML] Adding better error reporting for reading and importing data (#24269)

* [ML] Adding better error reporting for reading and importing data

* changes to endpoint errors

* displaying errors

* step logic refactor

* removing log statements

* [ML] Switch file data visualizer to use Papa Parse for CSV parsing (#24329)

* [ML] Fixes layout of Data Visualizer selector page for IE (#24387)

* [ML] Adding ability to override various settings when importing data (#24346)

* [ML] Adding ability to override various settings when importing data

* second commit with most of the outstanding code

* improving index pattern name validation

* better index pattern matching

* adding comments

* adding empty index pattern check

* changes based on review

* fixing test
2018-10-23 20:58:05 +01:00
Walter Rafelsberger 836b1a16d2
[ML] Fixes check for lower memory limit. (#24323)
- Fixes the job validation for the lower bound of the model memory limit. Previously the check was against zero, now it's again less than 1MB, which is the same as the backend expects.
- If the user entered model memory limit is less than half the value of the estimated model memory limit, a warning type message gets triggered. If the user entered model memory limit is more than half the value but less then the actual value of the estimated model memory limit, then the already existing info type message is shown. The unit tests have been updated to reflect that behavior.
2018-10-23 19:03:04 +02:00
Walter Rafelsberger e59c1a11d6
[ML] Fixes job validation for nested time fields. (#24137)
This fixes an issue where job validation would return that a date field was invalid for nested date fields.
2018-10-17 17:33:29 +02:00
Pete Harverson c272a1b7dd
[ML] Add links to rule editor for quick edit of value or filter (#22990)
* [ML] Add links to rule editor for quick edit of value or filter

* [ML] Updates to rule editor quick links following review
2018-09-13 15:54:11 +01:00
James Gowdy 12d15f6a47
[ML] Disabling single metric viewer links for non-applicable jobs (#22809)
* [ML] Disabling single metric viewer links for non-applicable jobs

* renaming variable

* renaming variable again
2018-09-07 16:35:51 +01:00
James Gowdy 23ed2135bf
[ML] Fixing issue with incorrect timezones in jobs list (#22714)
* [ML] Fixing issue with incorrect timezones in jobs list

* refactoring min and max calculation

* changes based on review

* changing TimeStamp to Timestamp
2018-09-05 17:16:13 +01:00
Walter Rafelsberger 3717654d6e
[ML] Fix bucket span estimation for machine learning admin user. (#21866)
This fixes bucket span estimation for the machine learning admin user when security is enabled. The original issue was that the machine learning admin by default doesn't have the necessary permissions to call cluster.getSettings to get the settings search.max_buckets. This is now fixed by using callWithInternalUser() and additional permissions checks.
2018-08-13 09:43:13 +02:00
James Gowdy 1de4523878
[ML] Adding group selector to jobs management (#21780)
* [ML] [WIP] Adding group selector to jobs management

* adding group name validation

* removing comment

* adding keyboard events

* moving new group input to its own component

* changes based on review

* adding tooltip

* adding better error reporting
2018-08-08 22:27:58 +01:00
James Gowdy ae0f49658a
[ML] Fixing issue with historical job audit messages (#21718) 2018-08-07 14:11:08 +01:00
James Gowdy 149ff8ed17
[ML] Fixing crash in fields service when user has no index permission (#21469) 2018-07-31 14:08:43 +01:00
Lisa Cawley 2e54dacfa8
[ML] Updates URLs in job validation messages (#21361) 2018-07-30 08:04:09 -07:00
Walter Rafelsberger 3b6c9e3195
[ML] Improves bucket span estimator stability. (#21282)
- Fixes the bucket span estimator when median is selected as a detector function. agg.type.name is median and therefor not usable for an Elasticsearch aggregation. agg.type.dslName is percentile and is the correct mapping. .dslName is also used for the aggregations used for the preview charts.
- 7.0 will introduce a search.max_buckets setting which defaults to 10000. This could lead to failing bucket estimations because the values used for creating the required aggregations could result in more buckets. This PR fixes it by taking search.max_buckets into account when calculating the time range used for the bucket estimation. (Since 6.2 that setting is available so backporting this to current unreleased minor releases 6.4 and 6.5)
2018-07-27 10:43:59 +02:00
James Gowdy 60706bf77a
[ML] Better model memory limit validation (#21270) 2018-07-27 07:49:17 +01:00
Walter Rafelsberger a121550791
[ML] Improved job validation messages. (#21191)
Improvements to job validation messages:
- Changed cardinality_over_field_low "might be less suitable" to "might not be suitable".
- Fixed documentation URLs.
- Extended categorization_filters_invalid message + documentation URL.
2018-07-26 16:32:44 +02:00
Walter Rafelsberger d4efed5842
[ML] Make script_fields available on dropdowns of the advanced wirzard's detectors modal. (#21205)
- If a job configuration's datafeed contains script_fields, they are now available in the field dropdowns of the advanced wizard's detector modal.
- Additionally, job validation now considers script_fields and doesn't report them as non aggregatable anymore.
2018-07-25 18:46:10 +02:00
Walter Rafelsberger 86a9e46b4a [ML] Fixes an issue with failing job validation when fieldCaps object is malformed. (#21116) 2018-07-23 19:46:19 -07: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
Walter Rafelsberger 3dc5b30f7e
[ML] Job validation uses fieldCaps to check aggregatable fields to avoid triggering Elasticsearch errors. (#21087)
While the output in the UI was fine, certain job configurations containing non-aggregatable fields could trigger errors on the Elasticsearch side.
This PR fixes it by adding an additional query for fieldCaps to check first which fields are actually aggregatable.
2018-07-23 20:35:10 +02:00
Walter Rafelsberger e503b87eb2
[ML] Job validation no longer reports an error when categorization job is properly setup. (#21075)
For categorization jobs, job validation would report that mlcategory isn't an aggregatable field. This fix checks the job configuration and only reports the error if the job config isn't using categorization_field_name and the detector field isn't set to mlcategory.
2018-07-23 14:37:16 +02:00
James Gowdy d1b667512c
[ML] Better handling of job request timeouts (#20985) 2018-07-19 16:39:54 +01:00
James Gowdy 3c74d30bee
[ML] Adding close jobs menu item (#20927)
* [ML] Adding close jobs menu item

* changing icon

* updates based on review

* adding extra check for close failure

* adding extra guard against missing response
2018-07-18 17:47:44 +01:00
Pete Harverson 6939f5073c
[ML] Adds page to ML Settings for viewing and editing filter lists (#20769)
* [ML] Add page to ML Settings for viewing and editing filter lists

* [ML] Edits to Filter Lists Settings page following review
2018-07-17 09:47:26 +01:00
James Gowdy 6ddc9db376
[ML] Removing hardcoded datafeed ID in jobs list (#20815) 2018-07-16 12:44:59 +01:00
Nathan Reese 2084842e36
Add _bulk_create endpoint to /api/saved_objects (#20498)
* add _bulk_create rest endpoint

* document bulk_create api

* provide 409 status code when conflicts exist

* add overwrite and version to documenation

* clean up assert statements and 2 places where bulkCreate is getting used with new output

* properly stub bulkCreate return

* remove version of documenation example
2018-07-10 07:38:39 -06:00
James Gowdy d44840cd19
[ML] Adding jobs stats bar to top of jobs list (#20527)
* [ML] Adding jobs stats bar to top of jobs list

* unsetting update function

* changing node variable name

* small refactor

* using props copy of `updateJobStats`

* adding proptypes

* adding fixed height
2018-07-09 14:59:10 +01:00
James Gowdy c4756b183f
[ML] Adding filter bar to jobs list (#20415)
* [ML] Adding filter bar to jobs list

* fixing page index when filtering

* refreshing job selection after actions have happened

* adding job counts to groups

* catching multi-select start datafeed errors

* style tweaks

* more style tweaks

* changes based on review

* refactoring search logic
2018-07-04 13:57:25 +01:00
Pete Harverson ea0395fd1e
[ML] Add endpoints and service for ML filters (#20406)
* [ML] Add endpoints and service for ML filters

* [ML] Replace getFilter(s) with single filters function
2018-07-04 13:00:16 +01:00
James Gowdy 93d9baafff
[ML] Rewrite of jobs list using react and eui (#19758)
* [ML] [WIP] New jobs list

* adding JSON tab

* adding datafeed and forecast tabs

* adding action menu functionality

* removing comments

* forcing change in file that is missing

* removing unnecessary change

* rolling back accidental change

* adding job group badges to main list

* adding multi-job action buttons

* adding start/stop actions

* showing start/end modal for multi-jobs

* adding multi-job delete

* changing delete warning

* initial edit job functionality

* adding space for custom url editing

* adding jobs summary endpoints

* fixing job loading for edit flyout

* adding calendars to jobs

* adding group loading endpoint for edit flyout

* adding audit message icons

* icon style change

* adding job messages in expanded job row

* removing log statements

* adding proptypes

* fixing expanded row table cell color

* removing log message

* renaming jobs endpoint provider

* changing case of button label

* renaming closeModal function

* adding missing proptypes

* changes based on review

* adding basic table sorting

* refactoring modal and flyout show/hide functions

* fixing sorting issues

* fixing overflow in groups
2018-07-03 10:36:45 +01:00
Josh Soref 2b27fb1c5f Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
James Gowdy 5d7afd996c
[ML] Removing rules from APM module (#19932) 2018-06-15 11:50:08 +01:00
Pete Harverson 1365799a06
[ML] Convert anomalies table to EUI / React (#19352)
* [ML] Convert anomalies table to EUI / React

* [ML] Edits to EUI / React anomalies table after review
2018-05-24 15:49:00 +01:00
James Gowdy 0263d886e4
[ML] Start datafeed from the module setup endpoint (#19254)
* [ML] Start datafeeds from the module setup endpoint

* changes based on review

* correcting use of filter
2018-05-22 10:37:21 +01:00
James Gowdy 329894ff4c
[ML] Initial creation of APM module (#18805)
* [ML] Initial creation of APM module

* updating query

* adding processor.name check to query

* removing processor.name exists check

* updating manifest with suggested changes

* renaming-job-id

* updating job description
2018-05-16 16:41:51 +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
James Gowdy ed7f6983f9
[ML] Data recognizer UI improvements (#18804)
* [ML] Data recognizer UI improvements

* rolling back accidental change
2018-05-04 14:02:43 +01:00
James Gowdy d52729b862
[ML] Converting services to be non-angular imports (#18687)
* [ML] Removing angular from services

* removing commented out code

* fix include path for tests

* adding flag to initPromise

* moving job service for jest tests to pass

* moving initPromise to its own file
2018-05-03 13:11:19 +01:00
James Gowdy dc21cf29b9
[ML] Increasing calculated model memory limit (#18723)
* [ML] Increasing calculated model memory limit

* updating comment

* updating tests
2018-05-02 18:12:45 +01:00
Walter Rafelsberger 7f48d6e5b6
[ML] Adds an mml check to trigger an error when mml value is invalid. (#18678)
This adds an additional check and corresponding error message to the validation of the model memory limit. If the parsing of the memory model limit results in 0 bytes the message will be triggered. This behaviour catches both correctly formatted but invalid strings (like 0mb) and invalid strings (like asdf).
2018-05-02 12:42:13 +02:00
Walter Rafelsberger 92f05ee9b3
[ML] Omit mml success message when mml checks are not run. (#18659)
Updates the behaviour of the job validation's model memory limit checks: The success messages success_mml gets only returned if the checks were actually run. This omits the success message for example in the single metric and population wizard.
2018-05-02 10:35:12 +02:00
Jenkins CI fe4609647d Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00