- 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. |
||
---|---|---|
.. | ||
apidoc_scripts | ||
schemas | ||
annotations.ts | ||
anomaly_detectors.ts | ||
apidoc.json | ||
calendars.ts | ||
data_frame_analytics.ts | ||
data_visualizer.ts | ||
datafeeds.ts | ||
fields_service.ts | ||
file_data_visualizer.ts | ||
filters.ts | ||
indices.ts | ||
job_audit_messages.ts | ||
job_service.ts | ||
job_validation.ts | ||
modules.ts | ||
notification_settings.ts | ||
README.md | ||
results_service.ts | ||
system.ts |
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.