Skip to content

Commit 252bab6

Browse files
committed
API generation
1 parent 88b787b commit 252bab6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

api/api/searchable_snapshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/* eslint no-unused-vars: 0 */
2424

2525
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26-
const acceptedQuerystring = ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'master_timeout', 'wait_for_completion', 'storage']
26+
const acceptedQuerystring = ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'index', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'master_timeout', 'wait_for_completion', 'storage', 'level']
2727
const snakeCase = { ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', waitForCompletion: 'wait_for_completion' }
2828

2929
function SearchableSnapshotsApi (transport, ConfigurationError) {

api/requestParams.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,7 @@ export interface SearchableSnapshotsRepositoryStats extends Generic {
21672167

21682168
export interface SearchableSnapshotsStats extends Generic {
21692169
index?: string | string[];
2170+
level?: 'cluster' | 'indices' | 'shards';
21702171
}
21712172

21722173
export interface SecurityAuthenticate extends Generic {

docs/reference.asciidoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9042,7 +9042,8 @@ link:{ref}/searchable-snapshots-apis.html[Documentation] +
90429042
[source,ts]
90439043
----
90449044
client.searchableSnapshots.stats({
9045-
index: string | string[]
9045+
index: string | string[],
9046+
level: 'cluster' | 'indices' | 'shards'
90469047
})
90479048
----
90489049
link:{ref}/searchable-snapshots-apis.html[Documentation] +
@@ -9051,6 +9052,10 @@ link:{ref}/searchable-snapshots-apis.html[Documentation] +
90519052
|`index`
90529053
|`string \| string[]` - A comma-separated list of index names
90539054

9055+
|`level`
9056+
|`'cluster' \| 'indices' \| 'shards'` - Return stats aggregated at cluster, index or shard level +
9057+
_Default:_ `indices`
9058+
90549059
|===
90559060

90569061
[discrete]

0 commit comments

Comments
 (0)