Skip to content

Commit

Permalink
Add shard_failures to EQL response spec
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidellaquila committed Dec 19, 2024
1 parent 5987f79 commit 287dcb3
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
7 changes: 7 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions specification/eql/_types/EqlSearchResponseBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

import { Id } from '@_types/common'
import { ShardFailure } from '@_types/Errors'
import { DurationValue, UnitMillis } from '@_types/Time'
import { EqlHits } from './EqlHits'

Expand Down Expand Up @@ -46,4 +47,8 @@ export class EqlSearchResponseBase<TEvent> {
* Contains matching events and sequences. Also contains related metadata.
*/
hits: EqlHits<TEvent>
/**
* Contains information about shard failures (if any), in case allow_partial_search_results=true
*/
shard_failures?: ShardFailure[]
}

0 comments on commit 287dcb3

Please sign in to comment.