summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/cluster_status.json
blob: 5ebc09a96dc8d8418e5e36537fe59c3eea8aae9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "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"
            ]
          }
        },
        "version": { "type": "string" },
        "status_reason": { "type": ["string", "null"] },
        "external_ip": { "type": ["string", "null"] },
        "hostname": { "type": ["string", "null"] },
        "email": { "type": ["string", "null"] },
        "update_available": { "type": ["boolean", "null"] }
      },
      "required" : [ "name", "status" ]
    }
  }
}