Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit eaa74c7

Browse files
authored
feat(clusters): added versions API route endpoints (#107)
Note: this does not require a go-swagger client update (and hence this does not constitute a change to customer-shippable code).
1 parent 8911c3f commit eaa74c7

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

api/swagger-spec/swagger.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,52 @@ paths:
182182
description: unexpected error
183183
schema:
184184
$ref: "#/definitions/error"
185+
/v3/clusters/checkins:
186+
get:
187+
operationId: getClusterCheckins
188+
summary: "get cluster checkins"
189+
parameters:
190+
- name: created_after
191+
in: query
192+
type: string
193+
format: date-time
194+
- name: created_before
195+
in: query
196+
type: string
197+
format: date-time
198+
responses:
199+
200:
200+
description: clusters count response
201+
schema:
202+
type: object
203+
$ref: "#/definitions/clustersCount"
204+
default:
205+
description: unexpected error
206+
schema:
207+
$ref: "#/definitions/error"
208+
/v3/clusters/persistent:
209+
get:
210+
operationId: getPersistentClusters
211+
summary: "get persistent clusters"
212+
parameters:
213+
- name: epoch
214+
in: query
215+
type: string
216+
format: date-time
217+
- name: timestamp
218+
in: query
219+
type: string
220+
format: date-time
221+
responses:
222+
200:
223+
description: clusters details response
224+
schema:
225+
type: object
226+
$ref: "#/definitions/clustersCount"
227+
default:
228+
description: unexpected error
229+
schema:
230+
$ref: "#/definitions/error"
185231
/v3/clusters/{id}:
186232
get:
187233
operationId: getClusterById
@@ -316,6 +362,42 @@ definitions:
316362
type: array
317363
items:
318364
$ref: "#/definitions/componentVersion"
365+
clusterCheckin:
366+
type: object
367+
required:
368+
- clusterID
369+
- firstSeen
370+
- lastSeen
371+
- clusterAge
372+
- checkins
373+
properties:
374+
clusterID:
375+
type: string
376+
minLength: 1
377+
firstSeen:
378+
type: string
379+
minLength: 1
380+
lastSeen:
381+
type: string
382+
minLength: 1
383+
clusterAge:
384+
type: string
385+
minLength: 1
386+
lastCheckin:
387+
type: string
388+
minLength: 1
389+
checkins:
390+
type: integer
391+
clustersCount:
392+
type: object
393+
properties:
394+
count:
395+
type: integer
396+
format: int64
397+
data:
398+
type: array
399+
items:
400+
$ref: "#/definitions/clusterCheckin"
319401
k8sResource:
320402
type: object
321403
required:

0 commit comments

Comments
 (0)