2018-11-22 11:23:31 -05:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[get-ml-info]]
|
2018-12-20 13:23:28 -05:00
|
|
|
=== Get machine learning info API
|
2019-04-30 13:46:13 -04:00
|
|
|
|
|
|
|
[subs="attributes"]
|
2018-11-22 11:23:31 -05:00
|
|
|
++++
|
2018-12-20 13:23:28 -05:00
|
|
|
<titleabbrev>Get {ml} info</titleabbrev>
|
2018-11-22 11:23:31 -05:00
|
|
|
++++
|
|
|
|
|
|
|
|
Returns defaults and limits used by machine learning.
|
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[get-ml-info-request]]
|
|
|
|
==== {api-request-title}
|
2018-11-22 11:23:31 -05:00
|
|
|
|
2018-12-07 15:34:11 -05:00
|
|
|
`GET _ml/info`
|
2018-11-22 11:23:31 -05:00
|
|
|
|
2019-06-27 16:58:42 -04:00
|
|
|
[[get-ml-info-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have `monitor_ml`,
|
|
|
|
`monitor`, `manage_ml`, or `manage` cluster privileges to use this API. The
|
|
|
|
`machine_learning_admin` and `machine_learning_user` roles provide these
|
2019-10-07 18:23:19 -04:00
|
|
|
privileges. See <<security-privileges>> and
|
|
|
|
<<built-in-roles>>.
|
2019-06-27 16:58:42 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[get-ml-info-desc]]
|
|
|
|
==== {api-description-title}
|
2018-11-22 11:23:31 -05:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[get-ml-info-example]]
|
|
|
|
==== {api-examples-title}
|
2018-11-22 11:23:31 -05:00
|
|
|
|
|
|
|
The endpoint takes no arguments:
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-11-22 11:23:31 -05:00
|
|
|
--------------------------------------------------
|
2018-12-07 15:34:11 -05:00
|
|
|
GET _ml/info
|
2018-11-22 11:23:31 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
// TEST
|
|
|
|
|
|
|
|
This is a possible response:
|
2019-09-06 16:09:09 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2018-11-22 11:23:31 -05:00
|
|
|
----
|
|
|
|
{
|
|
|
|
"defaults" : {
|
|
|
|
"anomaly_detectors" : {
|
2019-11-25 08:20:12 -05:00
|
|
|
"categorization_analyzer" : {
|
|
|
|
"tokenizer" : "ml_classic",
|
|
|
|
"filter" : [
|
|
|
|
{
|
|
|
|
"type" : "stop",
|
|
|
|
"stopwords" : [
|
|
|
|
"Monday",
|
|
|
|
"Tuesday",
|
|
|
|
"Wednesday",
|
|
|
|
"Thursday",
|
|
|
|
"Friday",
|
|
|
|
"Saturday",
|
|
|
|
"Sunday",
|
|
|
|
"Mon",
|
|
|
|
"Tue",
|
|
|
|
"Wed",
|
|
|
|
"Thu",
|
|
|
|
"Fri",
|
|
|
|
"Sat",
|
|
|
|
"Sun",
|
|
|
|
"January",
|
|
|
|
"February",
|
|
|
|
"March",
|
|
|
|
"April",
|
|
|
|
"May",
|
|
|
|
"June",
|
|
|
|
"July",
|
|
|
|
"August",
|
|
|
|
"September",
|
|
|
|
"October",
|
|
|
|
"November",
|
|
|
|
"December",
|
|
|
|
"Jan",
|
|
|
|
"Feb",
|
|
|
|
"Mar",
|
|
|
|
"Apr",
|
|
|
|
"May",
|
|
|
|
"Jun",
|
|
|
|
"Jul",
|
|
|
|
"Aug",
|
|
|
|
"Sep",
|
|
|
|
"Oct",
|
|
|
|
"Nov",
|
|
|
|
"Dec",
|
|
|
|
"GMT",
|
|
|
|
"UTC"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-11-22 11:23:31 -05:00
|
|
|
"model_memory_limit" : "1gb",
|
|
|
|
"categorization_examples_limit" : 4,
|
|
|
|
"model_snapshot_retention_days" : 1
|
|
|
|
},
|
|
|
|
"datafeeds" : {
|
|
|
|
"scroll_size" : 1000
|
|
|
|
}
|
|
|
|
},
|
2019-01-28 10:07:30 -05:00
|
|
|
"upgrade_mode": false,
|
2019-06-13 14:38:29 -04:00
|
|
|
"native_code" : {
|
|
|
|
"version": "7.0.0",
|
|
|
|
"build_hash": "99a07c016d5a73"
|
|
|
|
},
|
2018-11-22 11:23:31 -05:00
|
|
|
"limits" : { }
|
|
|
|
}
|
|
|
|
----
|
2019-02-15 19:26:41 -05:00
|
|
|
// TESTRESPONSE[s/"upgrade_mode": false/"upgrade_mode": $body.upgrade_mode/]
|
2019-06-13 14:38:29 -04:00
|
|
|
// TESTRESPONSE[s/"version": "7.0.0",/"version": "$body.native_code.version",/]
|
|
|
|
// TESTRESPONSE[s/"build_hash": "99a07c016d5a73"/"build_hash": "$body.native_code.build_hash"/]
|