Skip to content

Commit

Permalink
feat(clusters): added versions API route endpoints (#107)
Browse files Browse the repository at this point in the history
Note: this does not require a go-swagger client update (and hence this does not constitute a change to customer-shippable code).
  • Loading branch information
jackfrancis committed Mar 14, 2017
1 parent 8911c3f commit eaa74c7
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions api/swagger-spec/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,52 @@ paths:
description: unexpected error
schema:
$ref: "#/definitions/error"
/v3/clusters/checkins:
get:
operationId: getClusterCheckins
summary: "get cluster checkins"
parameters:
- name: created_after
in: query
type: string
format: date-time
- name: created_before
in: query
type: string
format: date-time
responses:
200:
description: clusters count response
schema:
type: object
$ref: "#/definitions/clustersCount"
default:
description: unexpected error
schema:
$ref: "#/definitions/error"
/v3/clusters/persistent:
get:
operationId: getPersistentClusters
summary: "get persistent clusters"
parameters:
- name: epoch
in: query
type: string
format: date-time
- name: timestamp
in: query
type: string
format: date-time
responses:
200:
description: clusters details response
schema:
type: object
$ref: "#/definitions/clustersCount"
default:
description: unexpected error
schema:
$ref: "#/definitions/error"
/v3/clusters/{id}:
get:
operationId: getClusterById
Expand Down Expand Up @@ -316,6 +362,42 @@ definitions:
type: array
items:
$ref: "#/definitions/componentVersion"
clusterCheckin:
type: object
required:
- clusterID
- firstSeen
- lastSeen
- clusterAge
- checkins
properties:
clusterID:
type: string
minLength: 1
firstSeen:
type: string
minLength: 1
lastSeen:
type: string
minLength: 1
clusterAge:
type: string
minLength: 1
lastCheckin:
type: string
minLength: 1
checkins:
type: integer
clustersCount:
type: object
properties:
count:
type: integer
format: int64
data:
type: array
items:
$ref: "#/definitions/clusterCheckin"
k8sResource:
type: object
required:
Expand Down

0 comments on commit eaa74c7

Please sign in to comment.