kibana/x-pack/plugins/ml/server/routes
Walter Rafelsberger 262e0754ff
[ML] Kibana API endpoint for histogram chart data (#70976)
- 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.
2020-07-14 13:37:36 +02:00
..
apidoc_scripts apply prettier styles 2020-05-22 09:08:58 +02:00
schemas [ML] Kibana API endpoint for histogram chart data (#70976) 2020-07-14 13:37:36 +02:00
annotations.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
anomaly_detectors.ts [ML] Add switch to enable model plot annotations independently (#70678) 2020-07-09 09:15:57 -05:00
apidoc.json [ML] Custom template for apiDoc markdown (#66567) 2020-05-15 11:41:29 +02:00
calendars.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
data_frame_analytics.ts [ML] DF Analytics: add ability to edit job for fields supported by API (#70489) 2020-07-06 15:10:01 -04:00
data_visualizer.ts [ML] Kibana API endpoint for histogram chart data (#70976) 2020-07-14 13:37:36 +02:00
datafeeds.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
fields_service.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
file_data_visualizer.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
filters.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
indices.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
job_audit_messages.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
job_service.ts [ML] Model snapshot management (#68182) 2020-06-16 14:03:17 +01:00
job_validation.ts [ML] Using mlClient callAsInternalUser in job validation (#67609) 2020-05-28 18:04:16 +01:00
modules.ts [ML] Changing shared module setup function parameters (#70589) 2020-07-03 08:30:17 +01:00
notification_settings.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
README.md [ML] Extract apiDoc params from the schema definitions (#62933) 2020-04-15 18:40:34 +02:00
results_service.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
system.ts [ML] Adding capabilities checks to shared functions (#70069) 2020-07-01 17:45:36 +01:00

ML Kibana API routes

This folder contains ML API routes in Kibana.

Each route handler requires apiDoc annotations in order to generate documentation. The apidoc-markdown package is also required in order to generate the markdown.

There are custom parser and worker (x-pack/plugins/ml/server/routes/apidoc_scripts) to process api schemas for each documentation entry. It's written with typescript so make sure all the scripts in the folder are compiled before executing apidoc command.

Make sure you have run yarn kbn bootstrap to get all requires dev dependencies. Then execute the following command from the ml plugin folder:

yarn run apiDocs

It compiles all the required scripts and generates the documentation both in HTML and Markdown formats.

It will create a new directory routes_doc (next to the routes folder) which contains the documentation in HTML format as well as ML_API.md file.