forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.yaml
66 lines (65 loc) · 1.39 KB
/
stats.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$schema: ../../../json_schemas/test_story.schema.yaml
description: Test stats for an index.
prologues:
- path: /movies
method: PUT
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
chapters:
- synopsis: Get global stats.
path: /_stats
method: GET
response:
status: 200
- synopsis: Get global stats with human fields.
path: /_stats
method: GET
parameters:
human: true
response:
status: 200
- synopsis: Get stats for an index.
path: /{index}/_stats
method: GET
parameters:
index: movies
expand_wildcards: all
fields: '*'
completion_fields: '*'
fielddata_fields: '*'
include_segment_file_sizes: true
include_unloaded_segments: true
response:
status: 200
payload:
_shards: {}
_all: {}
indices:
movies: {}
- synopsis: Get a metric stat for an index.
path: /{index}/_stats/{metric}
method: GET
parameters:
index: movies
metric: docs
expand_wildcards: all
forbid_closed_indices: false
groups: '*'
level: indices
response:
status: 200
payload:
_shards:
failed: 0
_all:
primaries:
docs:
count: 0
deleted: 0
indices:
movies:
total:
docs:
count: 0