Get machine learning info API

Returns defaults and limits used by machine learning.

Request

GET _ml/info

Prerequisites

Description

This endpoint is designed to be used by a user interface that needs to fully understand machine learning configurations where some options are not specified, meaning that the defaults should be used. This endpoint may be used to find out what those defaults are.

Examples

The endpoint takes no arguments:

  1. GET _ml/info

This is a possible response:

  1. {
  2. "defaults" : {
  3. "anomaly_detectors" : {
  4. "categorization_analyzer" : {
  5. "tokenizer" : "ml_classic",
  6. "filter" : [
  7. {
  8. "type" : "stop",
  9. "stopwords" : [
  10. "Monday",
  11. "Tuesday",
  12. "Wednesday",
  13. "Thursday",
  14. "Friday",
  15. "Saturday",
  16. "Sunday",
  17. "Mon",
  18. "Tue",
  19. "Wed",
  20. "Thu",
  21. "Fri",
  22. "Sat",
  23. "Sun",
  24. "January",
  25. "February",
  26. "March",
  27. "April",
  28. "May",
  29. "June",
  30. "July",
  31. "August",
  32. "September",
  33. "October",
  34. "November",
  35. "December",
  36. "Jan",
  37. "Feb",
  38. "Mar",
  39. "Apr",
  40. "May",
  41. "Jun",
  42. "Jul",
  43. "Aug",
  44. "Sep",
  45. "Oct",
  46. "Nov",
  47. "Dec",
  48. "GMT",
  49. "UTC"
  50. ]
  51. }
  52. ]
  53. },
  54. "model_memory_limit" : "1gb",
  55. "categorization_examples_limit" : 4,
  56. "model_snapshot_retention_days" : 10,
  57. "daily_model_snapshot_retention_after_days" : 1
  58. },
  59. "datafeeds" : {
  60. "scroll_size" : 1000
  61. }
  62. },
  63. "upgrade_mode": false,
  64. "native_code" : {
  65. "version": "7.0.0",
  66. "build_hash": "99a07c016d5a73"
  67. },
  68. "limits" : {
  69. "effective_max_model_memory_limit": "28961mb"
  70. }
  71. }