dfanalyticsresources.asciidoc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ml-dfanalytics-resources]]
  4. === {dfanalytics-cap} job resources
  5. {dfanalytics-cap} resources relate to APIs such as <<put-dfanalytics>> and
  6. <<get-dfanalytics>>.
  7. [discrete]
  8. [[ml-dfanalytics-properties]]
  9. ==== {api-definitions-title}
  10. `analysis`::
  11. (object) The type of analysis that is performed on the `source`. For example:
  12. `outlier_detection`. For more information, see <<dfanalytics-types>>.
  13. `analyzed_fields`::
  14. (object) You can specify both `includes` and/or `excludes` patterns. If
  15. `analyzed_fields` is not set, only the relevant fields will be included. For
  16. example all the numeric fields for {oldetection}.
  17. `dest`::
  18. (object) The destination configuration of the analysis. For more information,
  19. see <<dfanalytics-dest-resources>>.
  20. `id`::
  21. (string) The unique identifier for the {dfanalytics-job}. This identifier can
  22. contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
  23. underscores. It must start and end with alphanumeric characters. This property
  24. is informational; you cannot change the identifier for existing jobs.
  25. `model_memory_limit`::
  26. (string) The approximate maximum amount of memory resources that are
  27. permitted for analytical processing. The default value for {dfanalytics-jobs}
  28. is `1gb`. If your `elasticsearch.yml` file contains an
  29. `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to
  30. create {dfanalytics-jobs} that have `model_memory_limit` values greater than
  31. that setting. For more information, see <<ml-settings>>.
  32. `source`::
  33. (object) The source configuration, consisting of `index` and optionally a
  34. `query`. For more information, see <<dfanalytics-source-resources>>.
  35. [[dfanalytics-types]]
  36. ==== Analysis objects
  37. {dfanalytics-cap} resources contain `analysis` objects. For example, when you
  38. create a {dfanalytics-job}, you must define the type of analysis it performs.
  39. [discrete]
  40. [[oldetection-resources]]
  41. ===== {oldetection-cap} configuration objects
  42. An {oldetection} configuration object has the following properties:
  43. [discrete]
  44. [[oldetection-properties]]
  45. ==== {api-definitions-title}
  46. `n_neighbors`::
  47. (integer) Defines the value for how many nearest neighbors each method of
  48. {oldetection} will use to calculate its {olscore}. When the value is
  49. not set, the system will dynamically detect an appropriate value.
  50. `method`::
  51. (string) Sets the method that {oldetection} uses. If the method is not set
  52. {oldetection} uses an ensemble of different methods and normalises and
  53. combines their individual {olscores} to obtain the overall {olscore}.
  54. Available methods are `lof`, `ldof`, `distance_kth_nn`, `distance_knn`.
  55. `feature_influence_threshold`::
  56. (double) The minimum {olscore} that a document needs to have in order to
  57. calculate its {fiscore}.
  58. Value range: 0-1 (`0.1` by default).
  59. [[dfanalytics-dest-resources]]
  60. ==== Dest configuration objects
  61. {dfanalytics-cap} resources contain `dest` objects. For example, when you
  62. create a {dfanalytics-job}, you must define its destination.
  63. [discrete]
  64. [[dfanalytics-dest-properties]]
  65. ==== {api-definitions-title}
  66. `index`::
  67. (string) The name of the index in which to store the results of the
  68. {dfanalytics-job}.
  69. `results_field`::
  70. (string) The name of the field in which to store the results of the analysis.
  71. The default value is `ml`.
  72. [[dfanalytics-source-resources]]
  73. ==== Source configuration objects
  74. The `source` configuration object has the following properties:
  75. `index`::
  76. (array) An array of index names on which to perform the analysis. It can be a
  77. single index or index pattern as well as an array of indices or patterns.
  78. `query`::
  79. (object) The {es} query domain-specific language (DSL). This value
  80. corresponds to the query object in an {es} search POST body. All the
  81. options that are supported by {es} can be used, as this object is
  82. passed verbatim to {es}. By default, this property has the following
  83. value: `{"match_all": {"boost": 1}}`.