-
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 c8e4f6a
Showing
4 changed files
with
133 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_warm category | ||
description: Schemas of tier_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,28 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
version: '>= 2.16' | ||
description: Test endpoints relevant to tiering of index to warm. | ||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: books,games | ||
epilogues: | ||
- path: /books,movies | ||
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: Tier the `books` and `games` indices from hot to warm. | ||
path: /{index}/_tier/warm | ||
method: POST | ||
parameters: | ||
index: books,games | ||
response: | ||
status: 200 | ||
|