Skip to content

Instantly share code, notes, and snippets.

@TomonoriSoejima
Last active June 13, 2017 03:46
Show Gist options
  • Save TomonoriSoejima/37b5c0a2a71003966fa6b096ab52a8ab to your computer and use it in GitHub Desktop.
Save TomonoriSoejima/37b5c0a2a71003966fa6b096ab52a8ab to your computer and use it in GitHub Desktop.
ML apis for troubleshooting
# replace <alias_test> with your own <alias name>
GET _alias/alias_test
# replace <job1> with your own <job id>
# The get jobs API enables you to retrieve configuration information for jobs.
GET _xpack/ml/anomaly_detectors/job1
# The get jobs API enables you to retrieve usage information for jobs.
GET /_xpack/ml/anomaly_detectors/job1/_stats
# The get records API enables you to retrieve anomaly records for a job.
# https://www.elastic.co/guide/en/x-pack/current/ml-get-record.html
GET _xpack/ml/anomaly_detectors/job1/results/records
# The get datafeeds API enables you to retrieve configuration information for datafeeds
# https://www.elastic.co/guide/en/x-pack/current/ml-get-datafeed.html
GET _xpack/ml/datafeeds/
# replace <datafeed-test1> with your own <datafeed id>
GET _xpack/ml/datafeeds/datafeed-test1
GET _xpack/ml/datafeeds/datafeed-test1/_stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment