2017-04-04 18:26:39 -04:00
|
|
|
[[ml-api-quickref]]
|
|
|
|
== API Quick Reference
|
|
|
|
|
|
|
|
All {ml} endpoints have the following base:
|
|
|
|
|
2017-04-21 11:23:27 -04:00
|
|
|
[source,js]
|
2017-04-04 18:26:39 -04:00
|
|
|
----
|
|
|
|
/_xpack/ml/
|
|
|
|
----
|
|
|
|
|
|
|
|
The main {ml} resources can be accessed with a variety of endpoints:
|
|
|
|
|
2017-04-27 13:51:48 -04:00
|
|
|
* <<ml-api-jobs,+/anomaly_detectors/+>>: Create and manage {ml} jobs
|
|
|
|
* <<ml-api-datafeeds,+/datafeeds/+>>: Select data from {es} to be analyzed
|
|
|
|
* <<ml-api-results,+/results/+>>: Access the results of a {ml} job
|
|
|
|
* <<ml-api-snapshots,+/model_snapshots/+>>: Manage model snapshots
|
|
|
|
* <<ml-api-validate,+/validate/+>>: Validate subsections of job configurations
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-jobs]]
|
|
|
|
=== /anomaly_detectors/
|
|
|
|
|
2017-06-19 22:31:39 -04:00
|
|
|
* {ref}/ml-put-job.html[PUT /anomaly_detectors/<job_id+++>+++]: Create a job
|
|
|
|
* {ref}/ml-open-job.html[POST /anomaly_detectors/<job_id>/_open]: Open a job
|
|
|
|
* {ref}/ml-post-data.html[POST /anomaly_detectors/<job_id>/_data]: Send data to a job
|
|
|
|
* {ref}/ml-get-job.html[GET /anomaly_detectors]: List jobs
|
|
|
|
* {ref}/ml-get-job.html[GET /anomaly_detectors/<job_id+++>+++]: Get job details
|
|
|
|
* {ref}/ml-get-job-stats.html[GET /anomaly_detectors/<job_id>/_stats]: Get job statistics
|
|
|
|
* {ref}/ml-update-job.html[POST /anomaly_detectors/<job_id>/_update]: Update certain properties of the job configuration
|
|
|
|
* {ref}/ml-flush-job.html[POST anomaly_detectors/<job_id>/_flush]: Force a job to analyze buffered data
|
|
|
|
* {ref}/ml-close-job.html[POST /anomaly_detectors/<job_id>/_close]: Close a job
|
|
|
|
* {ref}/ml-delete-job.html[DELETE /anomaly_detectors/<job_id+++>+++]: Delete a job
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-datafeeds]]
|
|
|
|
=== /datafeeds/
|
|
|
|
|
2017-06-19 22:31:39 -04:00
|
|
|
* {ref}/ml-put-datafeed.html[PUT /datafeeds/<datafeed_id+++>+++]: Create a {dfeed}
|
|
|
|
* {ref}/ml-start-datafeed.html[POST /datafeeds/<datafeed_id>/_start]: Start a {dfeed}
|
|
|
|
* {ref}/ml-get-datafeed.html[GET /datafeeds]: List {dfeeds}
|
|
|
|
* {ref}/ml-get-datafeed.html[GET /datafeeds/<datafeed_id+++>+++]: Get {dfeed} details
|
|
|
|
* {ref}/ml-get-datafeed-stats.html[GET /datafeeds/<datafeed_id>/_stats]: Get statistical information for {dfeeds}
|
|
|
|
* {ref}/ml-preview-datafeed.html[GET /datafeeds/<datafeed_id>/_preview]: Get a preview of a {dfeed}
|
|
|
|
* {ref}/ml-update-datafeed.html[POST /datafeeds/<datafeedid>/_update]: Update certain settings for a {dfeed}
|
|
|
|
* {ref}/ml-stop-datafeed.html[POST /datafeeds/<datafeed_id>/_stop]: Stop a {dfeed}
|
|
|
|
* {ref}/ml-delete-datafeed.html[DELETE /datafeeds/<datafeed_id+++>+++]: Delete {dfeed}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-results]]
|
|
|
|
=== /results/
|
|
|
|
|
2017-06-19 22:31:39 -04:00
|
|
|
* {ref}/ml-get-bucket.html[GET /results/buckets]: List the buckets in the results
|
|
|
|
* {ref}/ml-get-bucket.html[GET /results/buckets/<bucket_id+++>+++]: Get bucket details
|
|
|
|
* {ref}/ml-get-category.html[GET /results/categories]: List the categories in the results
|
|
|
|
* {ref}/ml-get-category.html[GET /results/categories/<category_id+++>+++]: Get category details
|
|
|
|
* {ref}/ml-get-influencer.html[GET /results/influencers]: Get influencer details
|
|
|
|
* {ref}/ml-get-record.html[GET /results/records]: Get records from the results
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-snapshots]]
|
|
|
|
=== /model_snapshots/
|
|
|
|
|
2017-06-19 22:31:39 -04:00
|
|
|
* {ref}/ml-get-snapshot.html[GET /model_snapshots]: List model snapshots
|
|
|
|
* {ref}/ml-get-snapshot.html[GET /model_snapshots/<snapshot_id+++>+++]: Get model snapshot details
|
|
|
|
* {ref}/ml-revert-snapshot.html[POST /model_snapshots/<snapshot_id>/_revert]: Revert a model snapshot
|
|
|
|
* {ref}/ml-update-snapshot.html[POST /model_snapshots/<snapshot_id>/_update]: Update certain settings for a model snapshot
|
|
|
|
* {ref}/ml-delete-snapshot.html[DELETE /model_snapshots/<snapshot_id+++>+++]: Delete a model snapshot
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-validate]]
|
|
|
|
=== /validate/
|
|
|
|
|
2017-06-19 22:31:39 -04:00
|
|
|
* {ref}/ml-valid-detector.html[POST /anomaly_detectors/_validate/detector]: Validate a detector
|
|
|
|
* {ref}/ml-valid-job.html[POST /anomaly_detectors/_validate]: Validate a job
|