Skip to content

Commit 8bc4a49

Browse files
committed
Add overlays for anomaly detection datafeed config query
1 parent a91c810 commit 8bc4a49

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
@@ -989,9 +989,43 @@ actions:
989989
description: Add x-model to LikeDocument schema
990990
update:
991991
x-model: true
992+
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties.query"
993+
description: "Remove query object from create datafeeds operation"
994+
remove: true
995+
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties"
996+
description: "Re-add a simplified query object in create datafeeds operation"
997+
update:
998+
query:
999+
x-abbreviated: true
1000+
type: object
1001+
description: >
1002+
The Elasticsearch query domain-specific language (DSL).
1003+
This value corresponds to the query object in an Elasticsearch search POST body.
1004+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
1005+
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
1006+
externalDocs:
1007+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
1008+
description: Query DSL
9921009
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
9931010
description: Remove query object from anomaly detection datafeed
9941011
remove: true
1012+
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties.query"
1013+
description: Remove query object from anomaly detection datafeed configuration
1014+
remove: true
1015+
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties"
1016+
description: Re-add a simplified query object in anomaly detection datafeed configuration
1017+
update:
1018+
query:
1019+
x-abbreviated: true
1020+
type: object
1021+
description: >
1022+
The Elasticsearch query domain-specific language (DSL).
1023+
This value corresponds to the query object in an Elasticsearch search POST body.
1024+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
1025+
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
1026+
externalDocs:
1027+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
1028+
description: Query DSL
9951029
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
9961030
description: Re-add a simplified query object in anomaly detection datafeed
9971031
update:

0 commit comments

Comments
 (0)