Skip to content

Commit cfcfc32

Browse files
OAS Update
1 parent db2ffac commit cfcfc32

File tree

1 file changed

+75
-75
lines changed

1 file changed

+75
-75
lines changed

services/observability/v1/observability.json

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -130,71 +130,14 @@
130130
],
131131
"type": "object"
132132
},
133-
"AlertRecordResponse": {
134-
"properties": {
135-
"data": {
136-
"$ref": "#/components/schemas/AlertrecordResponse"
137-
},
138-
"message": {
139-
"minLength": 1,
140-
"title": "Message",
141-
"type": "string"
142-
}
143-
},
144-
"required": [
145-
"data",
146-
"message"
147-
],
148-
"type": "object"
149-
},
150-
"AlertRecordsResponse": {
133+
"AlertRecord": {
151134
"properties": {
152-
"data": {
153-
"items": {
154-
"$ref": "#/components/schemas/AlertrecordResponse"
155-
},
156-
"type": "array"
157-
},
158-
"message": {
159-
"minLength": 1,
160-
"title": "Message",
161-
"type": "string"
162-
}
163-
},
164-
"required": [
165-
"data",
166-
"message"
167-
],
168-
"type": "object"
169-
},
170-
"AlertRuleRecord": {
171-
"properties": {
172-
"alert": {
173-
"maxLength": 200,
174-
"minLength": 1,
175-
"title": "Alert",
176-
"type": "string"
177-
},
178-
"annotations": {
179-
"additionalProperties": {
180-
"minLength": 1,
181-
"type": "string"
182-
},
183-
"title": "Annotations",
184-
"type": "object"
185-
},
186135
"expr": {
187136
"maxLength": 2000,
188137
"minLength": 1,
189138
"title": "Expr",
190139
"type": "string"
191140
},
192-
"for": {
193-
"maxLength": 8,
194-
"minLength": 2,
195-
"title": "For",
196-
"type": "string"
197-
},
198141
"labels": {
199142
"additionalProperties": {
200143
"minLength": 1,
@@ -211,14 +154,15 @@
211154
}
212155
},
213156
"required": [
214-
"expr"
157+
"expr",
158+
"record"
215159
],
216160
"type": "object"
217161
},
218-
"AlertRuleResponse": {
162+
"AlertRecordResponse": {
219163
"properties": {
220164
"data": {
221-
"$ref": "#/components/schemas/AlertruleResponse"
165+
"$ref": "#/components/schemas/AlertRecord"
222166
},
223167
"message": {
224168
"minLength": 1,
@@ -232,11 +176,11 @@
232176
],
233177
"type": "object"
234178
},
235-
"AlertRulesResponse": {
179+
"AlertRecordsResponse": {
236180
"properties": {
237181
"data": {
238182
"items": {
239-
"$ref": "#/components/schemas/AlertruleResponse"
183+
"$ref": "#/components/schemas/AlertRecord"
240184
},
241185
"type": "array"
242186
},
@@ -252,36 +196,51 @@
252196
],
253197
"type": "object"
254198
},
255-
"AlertrecordResponse": {
199+
"AlertRule": {
256200
"properties": {
201+
"alert": {
202+
"maxLength": 200,
203+
"minLength": 1,
204+
"title": "Alert",
205+
"type": "string"
206+
},
207+
"annotations": {
208+
"additionalProperties": {
209+
"minLength": 1,
210+
"type": "string"
211+
},
212+
"title": "Annotations",
213+
"type": "object"
214+
},
257215
"expr": {
258216
"maxLength": 2000,
259217
"minLength": 1,
260218
"title": "Expr",
261219
"type": "string"
262220
},
221+
"for": {
222+
"default": "0s",
223+
"maxLength": 8,
224+
"minLength": 2,
225+
"title": "For",
226+
"type": "string"
227+
},
263228
"labels": {
264229
"additionalProperties": {
265230
"minLength": 1,
266231
"type": "string"
267232
},
268233
"title": "Labels",
269234
"type": "object"
270-
},
271-
"record": {
272-
"maxLength": 300,
273-
"minLength": 1,
274-
"title": "Record",
275-
"type": "string"
276235
}
277236
},
278237
"required": [
279-
"expr",
280-
"record"
238+
"alert",
239+
"expr"
281240
],
282241
"type": "object"
283242
},
284-
"AlertruleResponse": {
243+
"AlertRuleRecord": {
285244
"properties": {
286245
"alert": {
287246
"maxLength": 200,
@@ -304,7 +263,6 @@
304263
"type": "string"
305264
},
306265
"for": {
307-
"default": "0s",
308266
"maxLength": 8,
309267
"minLength": 2,
310268
"title": "For",
@@ -317,14 +275,56 @@
317275
},
318276
"title": "Labels",
319277
"type": "object"
278+
},
279+
"record": {
280+
"maxLength": 300,
281+
"minLength": 1,
282+
"title": "Record",
283+
"type": "string"
320284
}
321285
},
322286
"required": [
323-
"alert",
324287
"expr"
325288
],
326289
"type": "object"
327290
},
291+
"AlertRuleResponse": {
292+
"properties": {
293+
"data": {
294+
"$ref": "#/components/schemas/AlertRule"
295+
},
296+
"message": {
297+
"minLength": 1,
298+
"title": "Message",
299+
"type": "string"
300+
}
301+
},
302+
"required": [
303+
"data",
304+
"message"
305+
],
306+
"type": "object"
307+
},
308+
"AlertRulesResponse": {
309+
"properties": {
310+
"data": {
311+
"items": {
312+
"$ref": "#/components/schemas/AlertRule"
313+
},
314+
"type": "array"
315+
},
316+
"message": {
317+
"minLength": 1,
318+
"title": "Message",
319+
"type": "string"
320+
}
321+
},
322+
"required": [
323+
"data",
324+
"message"
325+
],
326+
"type": "object"
327+
},
328328
"BackupResponse": {
329329
"properties": {
330330
"alertConfigBackups": {

0 commit comments

Comments
 (0)