Skip to content

Commit 10ce7ad

Browse files
authored
Fix eql.search response types (#2663)
1 parent 5b0f7b3 commit 10ce7ad

File tree

7 files changed

+59
-12
lines changed

7 files changed

+59
-12
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78919,6 +78919,13 @@
7891978919
"description": "Original JSON body passed for the event at index time.",
7892078920
"type": "object"
7892178921
},
78922+
"missing": {
78923+
"externalDocs": {
78924+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-syntax.html#eql-missing-events"
78925+
},
78926+
"description": "Set to `true` for events in a timespan-constrained sequence that do not meet a given condition.",
78927+
"type": "boolean"
78928+
},
7892278929
"fields": {
7892378930
"type": "object",
7892478931
"additionalProperties": {
@@ -78957,8 +78964,7 @@
7895778964
}
7895878965
},
7895978966
"required": [
78960-
"events",
78961-
"join_keys"
78967+
"events"
7896278968
]
7896378969
},
7896478970
"eql.search:ResultPosition": {

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113905,6 +113905,20 @@
113905113905
}
113906113906
}
113907113907
},
113908+
{
113909+
"description": "Set to `true` for events in a timespan-constrained sequence that do not meet a given condition.",
113910+
"docId": "eql-missing-events",
113911+
"docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-missing-events",
113912+
"name": "missing",
113913+
"required": false,
113914+
"type": {
113915+
"kind": "instance_of",
113916+
"type": {
113917+
"name": "boolean",
113918+
"namespace": "_builtins"
113919+
}
113920+
}
113921+
},
113908113922
{
113909113923
"name": "fields",
113910113924
"required": false,
@@ -113927,7 +113941,7 @@
113927113941
}
113928113942
}
113929113943
],
113930-
"specLocation": "eql/_types/EqlHits.ts#L41-L49"
113944+
"specLocation": "eql/_types/EqlHits.ts#L41-L54"
113931113945
},
113932113946
{
113933113947
"generics": [
@@ -113971,7 +113985,7 @@
113971113985
"docId": "eql-sequences",
113972113986
"docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-sequences",
113973113987
"name": "join_keys",
113974-
"required": true,
113988+
"required": false,
113975113989
"type": {
113976113990
"kind": "array_of",
113977113991
"value": {
@@ -113980,7 +113994,7 @@
113980113994
}
113981113995
}
113982113996
],
113983-
"specLocation": "eql/_types/EqlHits.ts#L51-L59"
113997+
"specLocation": "eql/_types/EqlHits.ts#L56-L64"
113984113998
},
113985113999
{
113986114000
"kind": "interface",

output/schema/schema.json

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ eql-async-search-status-api,https://www.elastic.co/guide/en/elasticsearch/refere
143143
eql-basic-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-basic-syntax
144144
eql-search-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-search-api.html
145145
eql-sequences,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-sequences
146+
eql-missing-events,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-missing-events
146147
eql-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html
147148
eql,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql.html
148149
esql-query,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql-rest.html

specification/eql/_types/EqlHits.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export class HitsEvent<TEvent> {
4545
_id: Id
4646
/** Original JSON body passed for the event at index time. */
4747
_source: TEvent
48+
/**
49+
* Set to `true` for events in a timespan-constrained sequence that do not meet a given condition.
50+
* @doc_id eql-missing-events
51+
*/
52+
missing?: boolean
4853
fields?: Dictionary<Field, UserDefinedValue[]>
4954
}
5055

@@ -55,5 +60,5 @@ export class HitsSequence<TEvent> {
5560
* Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.
5661
* @doc_id eql-sequences
5762
*/
58-
join_keys: UserDefinedValue[]
63+
join_keys?: UserDefinedValue[]
5964
}

0 commit comments

Comments
 (0)