debian-mirror-gitlab/spec/fixtures/api/schemas/cluster_status.json
2018-03-27 19:54:05 +05:30

39 lines
911 B
JSON

{
"type": "object",
"required" : [
"status",
"applications"
],
"properties" : {
"status": { "type": "string" },
"status_reason": { "type": ["string", "null"] },
"applications": {
"type": "array",
"items": { "$ref": "#/definitions/application_status" }
}
},
"additionalProperties": false,
"definitions": {
"application_status": {
"type": "object",
"additionalProperties": false,
"properties" : {
"name": { "type": "string" },
"status": {
"type": {
"enum": [
"installable",
"scheduled",
"installing",
"installed",
"errored"
]
}
},
"status_reason": { "type": ["string", "null"] },
"external_ip": { "type": ["string", "null"] }
},
"required" : [ "name", "status" ]
}
}
}