kibana/x-pack/plugins/ml
Oliver Gupte 7d44d022c9
[APM] Adds 'Anomaly detection' settings page to create ML jobs per environment (#70560)
* Adds 'Anomaly detection' settings page along with require API endpoints
to list and create the apm anomaly detection jobs per environment.
Some test data is hardcoded while the the required changes in the ML
plugin are in flight.

* Converts the environment name to a compatible ML id string and persist
in groups array. Also adds random token to the job ID to prevent
collisions for job ids where diffferent environment names convert to the
same string

* - Improve job creation with latest updates for the `apm_transaction` ML module
- Implements job list in settings by reading from `custom_settings.job_tags['service.environment']`
- Add ML module method `createModuleItem` for job configuration
- Don't allow user to type in duplicate environments

* Update x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/add_environments.tsx

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* Update x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/index.tsx

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* UX feedback, adds i18n, and handles failed state for ML jobs fetch.

* - Moves get_all_environments from agent_configuration dir to common dir
- makes the 'all' environment name ALL_OPTION_VALUE agent configuration-specific
- replace field literals with constants

* PR feedback

* Adds support to create jobs for environment which are not defined.

* Fixes description copy, rearranges settings links, and makes sure the 'Not defined' option is disabled if it already exists.

* Only show "Not defined" in environment selector if there are actually
documents without service.environment set

* get the indexPatternName for the ML job from the set of user-definned indices

* updated job_tags type definition

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-07 13:30:14 +02:00
..
__mocks__ [ML] Clone analytics job (#59791) 2020-03-15 22:41:27 +01:00
common [APM] Adds 'Anomaly detection' settings page to create ML jobs per environment (#70560) 2020-07-07 13:30:14 +02:00
public [ML] Adding peak_model_bytes to model size stats type (#70825) 2020-07-07 09:24:40 +01:00
server [ML] DF Analytics: add ability to edit job for fields supported by API (#70489) 2020-07-06 15:10:01 -04:00
.gitignore [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00
jsconfig.json [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00
kibana.json Properly redirect legacy URLs (#68284) 2020-06-24 11:26:19 +02:00
package.json [ML] Custom template for apiDoc markdown (#66567) 2020-05-15 11:41:29 +02:00
shared_imports.ts [ESUI] Move XJson Mode to src/plugins/es_ui_shared (#62758) 2020-04-10 12:58:18 +02:00
tsconfig.json [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00