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:
|
|
|
|
|
|
|
|
* <<ml-api-jobs,+/anomaly_detectors/+>>: Create and manage {ml} jobs.
|
|
|
|
* <<ml-api-datafeeds,+/datafeeds/+>>: Update data to be analyzed.
|
|
|
|
* <<ml-api-results,+/results/+>>: Access the results of a {ml} job.
|
2017-04-24 12:31:31 -04:00
|
|
|
* <<ml-api-snapshots,+/model_snapshots/+>>: Manage model snapshots.
|
2017-04-04 18:26:39 -04:00
|
|
|
* <<ml-api-validate,+/validate/+>>: Validate subsections of job configurations.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-jobs]]
|
|
|
|
=== /anomaly_detectors/
|
|
|
|
|
2017-04-06 10:56:46 -04:00
|
|
|
* <<ml-put-job,POST /anomaly_detectors>>: Create a job
|
2017-04-04 18:26:39 -04:00
|
|
|
* <<ml-open-job,POST /anomaly_detectors/<job_id>/_open>>: Open a job
|
2017-04-24 12:31:31 -04:00
|
|
|
* <<ml-post-data,POST /anomaly_detectors/<job_id>/_data>>: Send data to a job
|
2017-04-04 18:26:39 -04:00
|
|
|
* <<ml-get-job,GET /anomaly_detectors>>: List jobs
|
|
|
|
* <<ml-get-job,GET /anomaly_detectors/<job_id+++>+++>>: Get job details
|
|
|
|
* <<ml-get-job-stats,GET /anomaly_detectors/<job_id>/_stats>>: Get job statistics
|
|
|
|
* <<ml-update-job,POST /anomaly_detectors/<job_id>/_update>>: Update certain properties of the job configuration
|
|
|
|
* <<ml-flush-job,POST anomaly_detectors/<job_id>/_flush>>: Force a job to analyze buffered data
|
|
|
|
* <<ml-close-job,POST /anomaly_detectors/<job_id>/_close>>: Close a job
|
2017-04-06 10:56:46 -04:00
|
|
|
* <<ml-delete-job,DELETE /anomaly_detectors/<job_id+++>+++>>: Delete a job
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-datafeeds]]
|
|
|
|
=== /datafeeds/
|
|
|
|
|
2017-04-24 12:31:31 -04:00
|
|
|
* <<ml-put-datafeed,PUT /datafeeds/<datafeed_id+++>+++>>: Create a data feed
|
|
|
|
* <<ml-start-datafeed,POST /datafeeds/<datafeed_id>/_start>>: Start a data feed
|
2017-04-04 18:26:39 -04:00
|
|
|
* <<ml-get-datafeed,GET /datafeeds>>: List data feeds
|
2017-04-24 12:31:31 -04:00
|
|
|
* <<ml-get-datafeed,GET /datafeeds/<datafeed_id+++>+++>>: Get data feed details
|
|
|
|
* <<ml-get-datafeed-stats,GET /datafeeds/<datafeed_id>/_stats>>: Get statistical information for data feeds
|
|
|
|
* <<ml-preview-datafeed,GET /datafeeds/<datafeed_id>/_preview>>: Get a preview of a data feed
|
|
|
|
* <<ml-update-datafeed,POST /datafeeds/<datafeedid>/_update>>: Update certain settings for a data feed
|
|
|
|
* <<ml-stop-datafeed,POST /datafeeds/<datafeed_id>/_stop>>: Stop a data feed
|
|
|
|
* <<ml-delete-datafeed,DELETE /datafeeds/<datafeed_id+++>+++>>: Delete data feed
|
2017-04-04 18:26:39 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-results]]
|
|
|
|
=== /results/
|
|
|
|
|
|
|
|
* <<ml-get-bucket,GET /results/buckets>>: List the buckets in the results
|
|
|
|
* <<ml-get-bucket,GET /results/buckets/<bucket_id+++>+++>>: Get bucket details
|
2017-04-10 19:14:26 -04:00
|
|
|
* <<ml-get-category,GET /results/categories>>: List the categories in the results
|
|
|
|
* <<ml-get-category,GET /results/categories/<category_id+++>+++>>: Get category details
|
2017-04-04 18:26:39 -04:00
|
|
|
* <<ml-get-influencer,GET /results/influencers>>: Get influencer details
|
|
|
|
* <<ml-get-record,GET /results/records>>: Get records from the results
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-snapshots]]
|
|
|
|
=== /model_snapshots/
|
|
|
|
|
|
|
|
* <<ml-get-snapshot,GET /model_snapshots>>: List model snapshots
|
|
|
|
* <<ml-get-snapshot,GET /model_snapshots/<snapshot_id+++>+++>>: Get model snapshot details
|
|
|
|
* <<ml-revert-snapshot,POST /model_snapshots/<snapshot_id>/_revert>>: Revert a model snapshot
|
|
|
|
* <<ml-update-snapshot,POST /model_snapshots/<snapshot_id>/_update>>: Update certain settings for a model snapshot
|
|
|
|
* <<ml-delete-snapshot,DELETE /model_snapshots/<snapshot_id+++>+++>>: Delete a model snapshot
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-api-validate]]
|
|
|
|
=== /validate/
|
|
|
|
|
|
|
|
* <<ml-valid-detector,POST /anomaly_detectors/_validate/detector>>: Validate a detector
|
|
|
|
* <<ml-valid-job, POST /anomaly_detectors/_validate>>: Validate a job
|
|
|
|
//[float]
|
|
|
|
//== Where to Go Next
|
|
|
|
|
|
|
|
//<<ml-getting-started, Getting Started>> :: Enable machine learning and start
|
|
|
|
//discovering anomalies in your data.
|
|
|
|
|
|
|
|
//[float]
|
|
|
|
//== Have Comments, Questions, or Feedback?
|
|
|
|
|
|
|
|
//Head over to our {forum}[Graph Discussion Forum] to share your experience, questions, and
|
|
|
|
//suggestions.
|