Skip to content

Fix watcher.put_watcher API #3188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions output/openapi/elasticsearch-openapi.json

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

8 changes: 4 additions & 4 deletions output/schema/schema-serverless.json

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

71 changes: 55 additions & 16 deletions output/schema/schema.json

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

5 changes: 4 additions & 1 deletion output/typescript/types.ts

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

16 changes: 14 additions & 2 deletions specification/watcher/_types/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { Dictionary, SingleKeyDictionary } from '@spec_utils/Dictionary'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
import {
Id,
IndexName,
Expand All @@ -28,7 +29,7 @@ import {
Username
} from '@_types/common'
import { Host } from '@_types/Networking'
import { uint } from '@_types/Numeric'
import { integer, uint } from '@_types/Numeric'
import { QueryContainer } from '@_types/query_dsl/abstractions'
import { Duration } from '@_types/Time'

Expand Down Expand Up @@ -145,7 +146,18 @@ export class SearchTemplateRequestBody {
}

export class SearchInputRequestBody {
query: QueryContainer
query?: QueryContainer
/**
* Defines the aggregations that are run as part of the search request.
* @aliases aggs */ // ES uses "aggregations" in serialization
aggregations?: Dictionary<string, AggregationContainer>
/**
* The number of hits to return.
* By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
* To page through more hits, use the `search_after` parameter.
* @server_default 10
*/
size?: integer
}

export class SimpleInput {
Expand Down
Loading