mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
[DOCS] Update types in datafeed resource (elastic/x-pack-elasticsearch#4011)
Original commit: elastic/x-pack-elasticsearch@6692b97c5e
This commit is contained in:
parent
2ecce78b13
commit
095d6d466c
@ -362,8 +362,7 @@ setups['server_metrics_datafeed'] = setups['server_metrics_job'] + '''
|
||||
body: >
|
||||
{
|
||||
"job_id":"total-requests",
|
||||
"indexes":"server-metrics",
|
||||
"types":"metric"
|
||||
"indexes":"server-metrics"
|
||||
}
|
||||
'''
|
||||
setups['server_metrics_openjob'] = setups['server_metrics_datafeed'] + '''
|
||||
|
@ -59,8 +59,9 @@ A {dfeed} resource has the following properties:
|
||||
The default value is `1000`.
|
||||
|
||||
`types`::
|
||||
(array) A list of types to search for within the specified indices.
|
||||
For example: `["network","sql","kpi"]`.
|
||||
(array) A list of types to search for within the specified indices. For
|
||||
example: `[]`. This property is provided for backwards compatibility with
|
||||
releases earlier than 6.0.0. For more information, see <<removal-of-types>>.
|
||||
|
||||
[[ml-datafeed-chunking-config]]
|
||||
==== Chunking Configuration Objects
|
||||
|
@ -75,9 +75,7 @@ The API returns the following results:
|
||||
"indices": [
|
||||
"server-metrics"
|
||||
],
|
||||
"types": [
|
||||
"metric"
|
||||
],
|
||||
"types": [],
|
||||
"query": {
|
||||
"match_all": {
|
||||
"boost": 1.0
|
||||
|
@ -72,9 +72,10 @@ You must create a job before you create a {dfeed}. You can associate only one
|
||||
(unsigned integer) The `size` parameter that is used in {es} searches.
|
||||
The default value is `1000`.
|
||||
|
||||
`types` (required)::
|
||||
`types`::
|
||||
(array) A list of types to search for within the specified indices.
|
||||
For example: `["network","sql","kpi"]`.
|
||||
For example: `[]`. This property is provided for backwards compatibility with
|
||||
releases earlier than 6.0.0. For more information, see <<removal-of-types>>.
|
||||
|
||||
For more information about these properties,
|
||||
see <<ml-datafeed-resource>>.
|
||||
@ -85,7 +86,6 @@ see <<ml-datafeed-resource>>.
|
||||
You must have `manage_ml`, or `manage` cluster privileges to use this API.
|
||||
For more information, see
|
||||
{xpack-ref}/security-privileges.html[Security Privileges].
|
||||
//<<privileges-list-cluster>>.
|
||||
|
||||
|
||||
==== Security Integration
|
||||
@ -103,8 +103,7 @@ The following example creates the `datafeed-total-requests` {dfeed}:
|
||||
PUT _xpack/ml/datafeeds/datafeed-total-requests
|
||||
{
|
||||
"job_id": "total-requests",
|
||||
"indices": ["server-metrics"],
|
||||
"types": ["metric"]
|
||||
"indices": ["server-metrics"]
|
||||
}
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
@ -120,9 +119,7 @@ When the {dfeed} is created, you receive the following results:
|
||||
"indices": [
|
||||
"server-metrics"
|
||||
],
|
||||
"types": [
|
||||
"metric"
|
||||
],
|
||||
"types": [],
|
||||
"query": {
|
||||
"match_all": {
|
||||
"boost": 1.0
|
||||
|
@ -69,7 +69,8 @@ The following properties can be updated after the {dfeed} is created:
|
||||
|
||||
`types`::
|
||||
(array) A list of types to search for within the specified indices.
|
||||
For example: `["network","sql","kpi"]`.
|
||||
For example: `[]`. This property is provided for backwards compatibility with
|
||||
releases earlier than 6.0.0. For more information, see <<removal-of-types>>.
|
||||
|
||||
For more information about these properties,
|
||||
see <<ml-datafeed-resource>>.
|
||||
@ -117,7 +118,7 @@ with the updated values:
|
||||
"job_id": "total-requests",
|
||||
"query_delay": "83474ms",
|
||||
"indices": ["server-metrics"],
|
||||
"types": ["metric"],
|
||||
"types": [],
|
||||
"query": {
|
||||
"term": {
|
||||
"level": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user