2019-07-05 07:34:05 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[get-dfanalytics]]
|
|
|
|
=== Get {dfanalytics-jobs} API
|
|
|
|
[subs="attributes"]
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get {dfanalytics-jobs}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Retrieves configuration information for {dfanalytics-jobs}.
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
experimental[]
|
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
[[ml-get-dfanalytics-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET _ml/data_frame/analytics/<data_frame_analytics_id>` +
|
|
|
|
|
|
|
|
`GET _ml/data_frame/analytics/<data_frame_analytics_id>,<data_frame_analytics_id>` +
|
|
|
|
|
|
|
|
`GET _ml/data_frame/analytics/` +
|
|
|
|
|
|
|
|
`GET _ml/data_frame/analytics/_all`
|
|
|
|
|
|
|
|
[[ml-get-dfanalytics-prereq]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
|
|
|
* You must have `monitor_ml` privilege to use this API. For more
|
|
|
|
information, see {stack-ov}/security-privileges.html[Security privileges] and
|
|
|
|
{stack-ov}/built-in-roles.html[Built-in roles].
|
|
|
|
|
|
|
|
[[ml-get-dfanalytics-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
|
|
|
You can get information for multiple {dfanalytics-jobs} in a single API request
|
|
|
|
by using a comma-separated list of {dfanalytics-jobs} or a wildcard expression.
|
|
|
|
You can get information for all {dfanalytics-jobs} by using _all, by specifying
|
|
|
|
`*` as the `<data_frame_analytics_id>`, or by omitting the
|
|
|
|
`<data_frame_analytics_id>`.
|
|
|
|
|
|
|
|
[[ml-get-dfanalytics-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`<data_frame_analytics_id>`::
|
|
|
|
(Optional, string) Identifier for the {dfanalytics-job}. If you do not specify
|
|
|
|
one of these options, the API returns information for the first hundred
|
2019-07-05 07:34:05 -04:00
|
|
|
{dfanalytics-jobs}.
|
2019-07-11 12:05:05 -04:00
|
|
|
|
|
|
|
`allow_no_match` (Optional)::
|
|
|
|
(boolean) If `false` and the `data_frame_analytics_id` does not match any
|
|
|
|
{dfanalytics-job} an error will be returned. The default value is `true`.
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
[[ml-get-dfanalytics-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`allow_no_match`::
|
|
|
|
(Optional, boolean) If `false` and the `data_frame_analytics_id` does not
|
|
|
|
match any {dfanalytics-job} an error will be returned. The default value is
|
|
|
|
`true`.
|
2019-07-10 20:58:17 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`from`::
|
|
|
|
(Optional, integer) Skips the specified number of {dfanalytics-jobs}. The
|
|
|
|
default value is `0`.
|
2019-07-05 07:34:05 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`size`::
|
|
|
|
(Optional, integer) Specifies the maximum number of {dfanalytics-jobs} to obtain. The
|
2019-07-05 07:34:05 -04:00
|
|
|
default value is `100`.
|
2019-07-11 12:05:05 -04:00
|
|
|
|
|
|
|
[[ml-get-dfanalytics-results]]
|
|
|
|
==== {api-response-body-title}
|
|
|
|
|
|
|
|
`data_frame_analytics`::
|
|
|
|
(array) An array of {dfanalytics-job} resources. For more information, see
|
|
|
|
<<ml-dfanalytics-resources>>.
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
[[ml-get-dfanalytics-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
The following example gets configuration information for the `loganalytics`
|
|
|
|
{dfanalytics-job}:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET _ml/data_frame/analytics/loganalytics
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
// TEST[skip:TBD]
|
|
|
|
|
|
|
|
The API returns the following results:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
----
|
|
|
|
{
|
|
|
|
"count": 1,
|
|
|
|
"data_frame_analytics": [
|
|
|
|
{
|
|
|
|
"id": "loganalytics",
|
|
|
|
"source": {
|
|
|
|
"index": "logdata",
|
|
|
|
"query": {
|
|
|
|
"match_all": {}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dest": {
|
|
|
|
"index": "logdata_out",
|
|
|
|
"results_field": "ml"
|
|
|
|
},
|
|
|
|
"analysis": {
|
|
|
|
"outlier_detection": {}
|
|
|
|
},
|
|
|
|
"model_memory_limit": "1gb",
|
|
|
|
"create_time": 1562265491319,
|
|
|
|
"version" : "8.0.0"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TESTRESPONSE
|