-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add api spec for tiering of indices from hot to warm
Signed-off-by: Neetika Singhal <[email protected]>
- Loading branch information
1 parent
83343b2
commit 6df8134
Showing
4 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Schemas of tier_hot_to_warm category | ||
description: Schemas of tier_hot_to_warm category | ||
version: 1.0.0 | ||
paths: {} | ||
components: | ||
schemas: | ||
FailedIndex: | ||
type: object | ||
properties: | ||
index: | ||
description: Index name | ||
$ref: '_common.yaml#/components/schemas/IndexName' | ||
error: | ||
description: Error message | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test endpoints relevant to tiering of index to warm. | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
- path: /games | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create an indices named `books` and `games` with default settings. | ||
path: /{index} | ||
method: PUT | ||
parameters: | ||
index: books,games | ||
|
||
- synopsis: Check if the indices `games` and `books` exists. They should. | ||
path: /{index} | ||
method: HEAD | ||
parameters: | ||
index: books,games | ||
allow_no_indices: true | ||
expand_wildcards: none | ||
flat_settings: true | ||
include_defaults: true | ||
ignore_unavailable: true | ||
local: true | ||
|
||
- synopsis: Tier the `books` and `games` indices from hot to warm. | ||
version: '>= 2.16' | ||
path: /{index}/_tier/warm | ||
method: POST | ||
parameters: | ||
index: books,games | ||
response: | ||
status: 200 | ||
|