-
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.
Signed-off-by: saimedhi <[email protected]>
- Loading branch information
Showing
4 changed files
with
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// The OpenSearch Contributors require contributions made to | ||
// this file be licensed under the Apache-2.0 license or a | ||
// compatible open source license. | ||
|
||
$version: "2" | ||
namespace OpenSearch | ||
|
||
@externalDocumentation( | ||
"API Reference": "https://opensearch.org/docs/latest/search-plugins/knn/api/#stats" | ||
) | ||
|
||
@xOperationGroup("knn.stats") | ||
@xVersionAdded("1.0") | ||
@readonly | ||
@suppress(["HttpUriConflict"]) | ||
@http(method: "GET", uri: "/_plugins/_knn/stats") | ||
@documentation("Provides information about the current status of the k-NN plugin.") | ||
operation KNNStats { | ||
input: KNNStats_Input, | ||
output: KNNStats_Output | ||
} | ||
|
||
@xOperationGroup("knn.stats") | ||
@xVersionAdded("1.0") | ||
@readonly | ||
@suppress(["HttpUriConflict"]) | ||
@http(method: "GET", uri: "/_plugins/_knn/{nodeId}/stats") | ||
@documentation("Provides information about the current status of the k-NN plugin.") | ||
operation KNNStats_WithNodeId { | ||
input: KNNStats_WithNodeId_Input, | ||
output: KNNStats_Output | ||
} | ||
|
||
@xOperationGroup("knn.stats") | ||
@xVersionAdded("1.0") | ||
@readonly | ||
@suppress(["HttpUriConflict"]) | ||
@http(method: "GET", uri: "/_plugins/_knn/stats/{stat}") | ||
@documentation("Provides information about the current status of the k-NN plugin.") | ||
operation KNNStats_WithStat { | ||
input: KNNStats_WithStat_Input, | ||
output: KNNStats_Output | ||
} | ||
|
||
@xOperationGroup("knn.stats") | ||
@xVersionAdded("1.0") | ||
@readonly | ||
@suppress(["HttpUriConflict"]) | ||
@http(method: "GET", uri: "/_plugins/_knn/{nodeId}/stats/{stat}") | ||
@documentation("Provides information about the current status of the k-NN plugin.") | ||
operation KNNStats_WithStatNodeId { | ||
input: KNNStats_WithStatNodeId_Input, | ||
output: KNNStats_Output | ||
} |
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,46 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// The OpenSearch Contributors require contributions made to | ||
// this file be licensed under the Apache-2.0 license or a | ||
// compatible open source license. | ||
|
||
$version: "2" | ||
namespace OpenSearch | ||
|
||
@mixin | ||
structure KNNStats_QueryParams { | ||
@httpQuery("timeout") | ||
timeout: Timeout, | ||
} | ||
|
||
@input | ||
structure KNNStats_Input with [KNNStats_QueryParams] { | ||
} | ||
|
||
@input | ||
structure KNNStats_WithNodeId_Input with [KNNStats_QueryParams] { | ||
@required | ||
@httpLabel | ||
nodeId: PathGetNodeId, | ||
} | ||
|
||
@input | ||
structure KNNStats_WithStat_Input with [KNNStats_QueryParams] { | ||
@required | ||
@httpLabel | ||
stat: PathStat, | ||
} | ||
|
||
@input | ||
structure KNNStats_WithStatNodeId_Input with [KNNStats_QueryParams] { | ||
@required | ||
@httpLabel | ||
nodeId: PathGetNodeId, | ||
|
||
@required | ||
@httpLabel | ||
stat: PathStat, | ||
} | ||
|
||
// TODO: Fill in Output Structure | ||
structure KNNStats_Output{} |
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