-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollab-notification-schema.json
101 lines (101 loc) · 2.52 KB
/
collab-notification-schema.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{ "title": "configObj",
"description": "Handle Cancer Collaboratory infrastructure messages and statuses",
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"type": "array",
"items": {
"type": "object",
"required": ["component", "title", "health"],
"additionalProperties": false,
"properties": {
"component": {
"type": "string",
"description": "Short name of the infrastructure component",
"enum": [
"COMPUTE", "BLOC_STORAGE", "OBJECT_STORAGE", "NETWORKING", "IMAGES", "AUTHENTICATION", "DASHBOARD"
]
},
"title": {
"type": "string",
"description": "Name of the component in a human readable fashion"
},
"health": {
"type": "string",
"description": "Health of the component",
"enum": [
"INFO", "WARNING", "ERROR"
]
},
"message": {
"type": ["string", "null"],
"description": "Specify additional text or explanations to be attached to the status"
}
}
}
},
"notifications": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["level", "message"],
"properties": {
"level": {
"type": "string",
"description": "Banner importance level",
"enum": [
"DEBUG", "INFO", "WARNING", "ERROR"
]
},
"message": {
"type": "string",
"description": "Message content"
},
"link": {
"type": ["string", "null"],
"description": "Link to obtain further details about the message"
},
"dismissable": {
"type": "boolean",
"description": "Can the banner be dismissable by the user"
}
}
}
},
"resources": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["resource","title","used","available"],
"properties": {
"resource": {
"type": "string",
"description": "Short name of the resource",
"enum": [
"CEPH", "CORES", "RAM"
]
},
"title": {
"type": "string",
"description": "Name of the resource in a human readable fashion"
},
"used": {
"type": "number",
"description": "Resource consumption"
},
"available": {
"type": "number",
"description": "Total resources available"
},
"units": {
"type": ["string","null"],
"description": "The units (if any) in which the resource consumption is measured"
}
}
}
}
}
}