Skip to content

Commit e66848d

Browse files
committed
Support indices and shards on nodes stats cache
Signed-off-by: Thomas Farr <[email protected]>
1 parent 142e80d commit e66848d

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

spec/schemas/nodes.stats.yaml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ components:
145145
admission_control:
146146
$ref: '#/components/schemas/ShardAdmissionControlStats'
147147
caches:
148-
$ref: '#/components/schemas/ShardCachesStats'
148+
$ref: '#/components/schemas/CachesStats'
149149
Http:
150150
type: object
151151
properties:
@@ -470,11 +470,11 @@ components:
470470
additionalProperties:
471471
type: integer
472472
format: int64
473-
ShardCachesStats:
473+
CachesStats:
474474
type: object
475475
additionalProperties:
476-
$ref: '#/components/schemas/ShardCacheStats'
477-
ShardCacheStats:
476+
$ref: '#/components/schemas/CacheStats'
477+
CacheStatsBase:
478478
type: object
479479
properties:
480480
size:
@@ -493,8 +493,31 @@ components:
493493
item_count:
494494
type: integer
495495
format: int64
496-
store_name:
497-
type: string
496+
CacheStats:
497+
allOf:
498+
- $ref: '#/components/schemas/CacheStatsBase'
499+
- type: object
500+
properties:
501+
store_name:
502+
type: string
503+
indices:
504+
type: object
505+
additionalProperties:
506+
$ref: '#/components/schemas/CacheIndicesStats'
507+
shards:
508+
type: object
509+
additionalProperties:
510+
$ref: '#/components/schemas/CacheShardStats'
511+
CacheIndicesStats:
512+
allOf:
513+
- $ref: '#/components/schemas/CacheStatsBase'
514+
- type: object
515+
properties: {}
516+
CacheShardStats:
517+
allOf:
518+
- $ref: '#/components/schemas/CacheStatsBase'
519+
- type: object
520+
properties: {}
498521
AdaptiveSelection:
499522
type: object
500523
properties:

tests/default/_core/search/hybrid_query_pagination.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ $schema: ../../../../json_schemas/test_story.schema.yaml
22

33
description: Test hybrid query with pagination_depth property.
44
version: '>=2.19'
5+
warnings:
6+
invalid-path-detected: false
57
prologues:
68
- path: /books
79
method: PUT

0 commit comments

Comments
 (0)