Skip to content

Commit 0f40a0e

Browse files
Update Query Group API descriptions (#674)
* Update Query Group API descriptions Will have @natebower review before merging. Signed-off-by: Naarcha-AWS <[email protected]> * Add parameter descriptions Signed-off-by: Naarcha-AWS <[email protected]> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> --------- Signed-off-by: Naarcha-AWS <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent 1c46b69 commit 0f40a0e

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

spec/namespaces/wlm.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
openapi: 3.1.0
22
info:
3-
title: OpenSearch Workload Management Query Group API
4-
description: Query group lifecycle APIs for the workload management plugin.
3+
title: Workload Management Query Group API
4+
description: The Query Group Lifecycle APIs create, update, and delete workload management query groups.
55
version: 1.0.0
66
paths:
77
/_wlm/query_group:
88
get:
99
operationId: wlm.get_query_group.0
1010
x-operation-group: wlm.get_query_group
1111
x-version-added: '2.17'
12-
description: Gets the specified QueryGroup or get all if no name is provided.
12+
description: Retrieves the specified query group. If no query group is specified, all query groups in the cluster are retrieved.
1313
responses:
1414
'200':
1515
$ref: '#/components/responses/wlm.get_query_group@200'
1616
put:
1717
operationId: wlm.create_query_group.0
1818
x-operation-group: wlm.create_query_group
1919
x-version-added: '2.17'
20-
description: Creates the specified query group.
20+
description: Creates a new query group and sets the resource limits for the new query group.
2121
requestBody:
2222
$ref: '#/components/requestBodies/wlm.create_query_group'
2323
responses:
@@ -28,7 +28,7 @@ paths:
2828
operationId: wlm.get_query_group.1
2929
x-operation-group: wlm.get_query_group
3030
x-version-added: '2.17'
31-
description: Gets the specified QueryGroup or get all if no name is provided.
31+
description: Retrieves the specified query group. If no query group is specified, all query groups in the cluster are retrieved.
3232
parameters:
3333
- $ref: '#/components/parameters/wlm.get_query_group::path.name'
3434
responses:
@@ -50,7 +50,7 @@ paths:
5050
operationId: wlm.delete_query_group.0
5151
x-operation-group: wlm.delete_query_group
5252
x-version-added: '2.17'
53-
description: Deletes the specified QueryGroup.
53+
description: Deletes the specified query group.
5454
parameters:
5555
- $ref: '#/components/parameters/wlm.delete_query_group::path.name'
5656
responses:
@@ -107,21 +107,21 @@ components:
107107
wlm.update_query_group::path.name:
108108
name: name
109109
in: path
110-
description: QueryGroup name.
110+
description: The name of the query group.
111111
schema:
112112
type: string
113113
required: true
114114
wlm.delete_query_group::path.name:
115115
name: name
116116
in: path
117-
description: QueryGroup name.
117+
description: The name of the query group.
118118
schema:
119119
type: string
120120
required: true
121121
wlm.get_query_group::path.name:
122122
name: name
123123
in: path
124-
description: QueryGroup name.
124+
description: The name of the query group.
125125
schema:
126126
type: string
127127
required: true

spec/schemas/wlm._common.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ components:
1010
type: object
1111
properties:
1212
_id:
13+
description: The ID of the query group, which can be used to associate query requests with the group and enforce the group's resource limits.
1314
type: string
1415
name:
16+
description: The name of the query group.
1517
type: string
1618
resiliency_mode:
19+
description: The resiliency mode of the query group.
1720
type: string
1821
enum: [enforced, monitor,soft]
1922
updated_at:
23+
description: The time at which the query group was last updated.
2024
type: integer
2125
format: int64
2226
resource_limits:
27+
description: The resource limits for query requests in the query group.
2328
anyOf:
2429
- type: object
2530
properties:

0 commit comments

Comments
 (0)