Skip to content

Commit 5e7e1e0

Browse files
authored
[Docs] Add and edit observability descriptions (#864)
Signed-off-by: Archer <[email protected]>
1 parent ed1f601 commit 5e7e1e0

File tree

2 files changed

+78
-19
lines changed

2 files changed

+78
-19
lines changed

spec/namespaces/observability.yaml

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
3-
title: OpenSearch Observability Object API
4-
description: API for retrieving and managing Observability Objects.
3+
title: OpenSearch Observability API
4+
description: The Observability API manages observability objects that monitor and analyze OpenSearch clusters.
55
version: 1.0.0
66
paths:
77
/_plugins/_observability/_local/stats:
@@ -98,13 +98,13 @@ components:
9898
$ref: '../schemas/observability._common.yaml#/components/schemas/ObservabilityObject'
9999
responses:
100100
observability.list_objects@200:
101-
description: Successful response of retrieving all Observability Objects.
101+
description: The API successfully retrieved all observability objects.
102102
content:
103103
application/json:
104104
schema:
105105
$ref: '../schemas/observability._common.yaml#/components/schemas/ObservabilityObjectList'
106106
observability.create_object@200:
107-
description: Created
107+
description: The API successfully created the observability object.
108108
content:
109109
application/json:
110110
schema:
@@ -113,69 +113,72 @@ components:
113113
objectId:
114114
type: string
115115
observability.get_object@200:
116-
description: Successful response of retrieving specific Observability Object.
116+
description: The API successfully retrieved the specified observability object.
117117
content:
118118
application/json:
119119
schema:
120120
$ref: '../schemas/observability._common.yaml#/components/schemas/ObservabilityObjectList'
121121
observability.get_object@404:
122-
description: Not Found
122+
description: The API could not find the specified observability object.
123123
content:
124124
application/json:
125125
schema:
126126
$ref: '../schemas/observability._common.yaml#/components/schemas/NotFoundResponse'
127127
observability.update_object@200:
128-
description: Updated
128+
description: The API successfully updated the observability object.
129129
content:
130130
application/json:
131131
schema:
132132
type: object
133133
properties:
134134
objectId:
135135
type: string
136+
description: The unique identifier of the updated observability object.
136137
observability.update_object@404:
137-
description: Not Found
138+
description: The API could not find the observability object to update.
138139
content:
139140
application/json:
140141
schema:
141142
$ref: '../schemas/observability._common.yaml#/components/schemas/NotFoundResponse'
142143
observability.delete_object@200:
143-
description: Deleted
144+
description: The API successfully deleted the observability object.
144145
content:
145146
application/json:
146147
schema:
147148
type: object
148149
properties:
149150
deleteResponseList:
151+
description: The list of deletion response for each object.
150152
type: object
151153
additionalProperties:
152154
type: string
153155
observability.delete_object@404:
154-
description: Not Found
156+
description: The API could not find the observability object to delete.
155157
content:
156158
application/json:
157159
schema:
158160
$ref: '../schemas/observability._common.yaml#/components/schemas/NotFoundResponse'
159161
observability.delete_objects@200:
160-
description: Deleted
162+
description: The API successfully deleted the specified observability objects.
161163
content:
162164
application/json:
163165
schema:
164166
type: object
165167
properties:
166168
deleteResponseList:
169+
description: The list of deletion responses for each object.
167170
type: object
168171
additionalProperties:
169172
type: string
170173
# example: OK
171174
observability.delete_objects@404:
172-
description: Not Found
175+
description: The API could not find one or more observability objects to delete.
173176
content:
174177
application/json:
175178
schema:
176179
$ref: '../schemas/observability._common.yaml#/components/schemas/NotFoundResponse'
177180
observability.get_localstats@200:
178-
description: Retrieves
181+
description: The API successfully retrieved local statistics.
179182
content:
180183
text/plain:
181184
schema:
@@ -184,39 +187,39 @@ components:
184187
observability.get_object::path.object_id:
185188
in: path
186189
name: object_id
187-
description: The ID of the Observability Object.
190+
description: The ID of the observability object to retrieve.
188191
required: true
189192
schema:
190193
type: string
191194
style: simple
192195
observability.update_object::path.object_id:
193196
in: path
194197
name: object_id
195-
description: The ID of the Observability Object.
198+
description: The ID of the observability object to update.
196199
required: true
197200
schema:
198201
type: string
199202
style: simple
200203
observability.delete_object::path.object_id:
201204
in: path
202205
name: object_id
203-
description: The ID of the Observability Object.
206+
description: The ID of the observability object to delete.
204207
required: true
205208
schema:
206209
type: string
207210
style: simple
208211
observability.delete_objects::query.objectId:
209212
in: query
210213
name: objectId
211-
description: The ID of a single Observability Object to delete.
214+
description: The ID of a single observability object to delete.
212215
required: false
213216
schema:
214217
type: string
215218
style: form
216219
observability.delete_objects::query.objectIdList:
217220
in: query
218221
name: objectIdList
219-
description: A comma-separated list of Observability Object IDs to delete.
222+
description: A comma-separated list of observability object IDs to delete.
220223
required: false
221224
schema:
222225
type: string

0 commit comments

Comments
 (0)