Skip to content

Commit 47143c9

Browse files
committed
Add overlays for anomaly detection datafeed config query
1 parent 85a1534 commit 47143c9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,43 @@ info:
55
version: 0.0.1
66
actions:
77
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
8+
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties.query"
9+
description: "Remove query object from create datafeeds operation"
10+
remove: true
11+
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties"
12+
description: "Re-add a simplified query object in create datafeeds operation"
13+
update:
14+
query:
15+
x-abbreviated: true
16+
type: object
17+
description: >
18+
The Elasticsearch query domain-specific language (DSL).
19+
This value corresponds to the query object in an Elasticsearch search POST body.
20+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
21+
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
22+
externalDocs:
23+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
24+
description: Query DSL
825
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
926
description: Remove query object from anomaly detection datafeed
1027
remove: true
28+
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties.query"
29+
description: Remove query object from anomaly detection datafeed configuration
30+
remove: true
31+
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties"
32+
description: Re-add a simplified query object in anomaly detection datafeed configuration
33+
update:
34+
query:
35+
x-abbreviated: true
36+
type: object
37+
description: >
38+
The Elasticsearch query domain-specific language (DSL).
39+
This value corresponds to the query object in an Elasticsearch search POST body.
40+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
41+
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
42+
externalDocs:
43+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
44+
description: Query DSL
1145
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
1246
description: Re-add a simplified query object in anomaly detection datafeed
1347
update:

0 commit comments

Comments
 (0)