saba-webhook-gateway 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,279 @@
1
+ {
2
+ "$id": "https://mackerel.io/json/host-retire.json",
3
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
4
+ "additionalProperties": false,
5
+ "default": {},
6
+ "definitions": {
7
+ "imageUrl": {
8
+ "default": null,
9
+ "examples": [
10
+ null,
11
+ "https://mackerel.io/embed/public/alert/RANDOM_GRAPH_URL.png"
12
+ ],
13
+ "title": "グラフ画像URL",
14
+ "type": [
15
+ "null",
16
+ "string"
17
+ ]
18
+ },
19
+ "memo": {
20
+ "examples": [
21
+ "MY_MEMO",
22
+ "MY_MEMO\nMY_MEMO2\nMY_MEMO3"
23
+ ],
24
+ "title": "メモ",
25
+ "type": "string"
26
+ },
27
+ "roles": {
28
+ "default": [],
29
+ "examples": [
30
+ [
31
+ {
32
+ "fullname": "MY_SERVICE: MY_ROLE",
33
+ "roleName": "MY_ROLE",
34
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
35
+ "serviceName": "MY_SERVICE",
36
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
37
+ }
38
+ ]
39
+ ],
40
+ "items": {
41
+ "additionalProperties": false,
42
+ "examples": [
43
+ {
44
+ "fullname": "MY_SERVICE: MY_ROLE",
45
+ "roleName": "MY_ROLE",
46
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
47
+ "serviceName": "MY_SERVICE",
48
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
49
+ }
50
+ ],
51
+ "properties": {
52
+ "fullname": {
53
+ "examples": [
54
+ "MY_SERVICE: MY_ROLE"
55
+ ],
56
+ "title": "サービスとロールの結合名",
57
+ "type": "string"
58
+ },
59
+ "roleName": {
60
+ "examples": [
61
+ "MY_ROLE"
62
+ ],
63
+ "title": "ロール名",
64
+ "type": "string"
65
+ },
66
+ "roleUrl": {
67
+ "examples": [
68
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE"
69
+ ],
70
+ "format": "uri",
71
+ "title": "ロールURL",
72
+ "type": "string"
73
+ },
74
+ "serviceName": {
75
+ "examples": [
76
+ "MY_SERVICE"
77
+ ],
78
+ "title": "サービス名",
79
+ "type": "string"
80
+ },
81
+ "serviceUrl": {
82
+ "examples": [
83
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
84
+ ],
85
+ "format": "uri",
86
+ "title": "サービスURL",
87
+ "type": "string"
88
+ }
89
+ },
90
+ "required": [
91
+ "fullname",
92
+ "serviceName",
93
+ "roleName",
94
+ "serviceUrl",
95
+ "roleUrl"
96
+ ],
97
+ "title": "ロール詳細情報",
98
+ "type": "object"
99
+ },
100
+ "title": "ロール情報",
101
+ "type": "array"
102
+ },
103
+ "user": {
104
+ "additionalProperties": false,
105
+ "default": null,
106
+ "examples": [
107
+ null
108
+ ],
109
+ "properties": {
110
+ "id": {
111
+ "examples": [
112
+ "USER_ID"
113
+ ],
114
+ "title": "ユーザーID",
115
+ "type": "string"
116
+ },
117
+ "screenName": {
118
+ "examples": [
119
+ "MY_NAME",
120
+ "MY_EMAIL_ADDRESS"
121
+ ],
122
+ "title": "表示名",
123
+ "type": "string"
124
+ }
125
+ },
126
+ "title": "ユーザー情報",
127
+ "type": [
128
+ "null",
129
+ "object"
130
+ ]
131
+ }
132
+ },
133
+ "examples": [
134
+ {
135
+ "event": "hostRetire",
136
+ "host": {
137
+ "id": "HOST_ID",
138
+ "isRetired": false,
139
+ "memo": "",
140
+ "name": "MY_HOST",
141
+ "roles": [],
142
+ "status": "working",
143
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
144
+ },
145
+ "imageUrl": null,
146
+ "orgName": "MY_ORG",
147
+ "user": null
148
+ },
149
+ {
150
+ "event": "hostRetire",
151
+ "host": {
152
+ "id": "HOST_ID",
153
+ "isRetired": false,
154
+ "memo": "",
155
+ "name": "MY_HOST",
156
+ "roles": [
157
+ {
158
+ "fullname": "MY_SERVICE: MY_ROLE",
159
+ "roleName": "MY_ROLE",
160
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
161
+ "serviceName": "MY_SERVICE",
162
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
163
+ }
164
+ ],
165
+ "status": "standby",
166
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
167
+ },
168
+ "imageUrl": null,
169
+ "orgName": "MY_ORG",
170
+ "user": {
171
+ "id": "USER_ID",
172
+ "screenName": "MY_EMAIL_ADDRESS"
173
+ }
174
+ }
175
+ ],
176
+ "properties": {
177
+ "event": {
178
+ "enum": [
179
+ "hostRetire"
180
+ ],
181
+ "title": "イベントの種類",
182
+ "type": "string"
183
+ },
184
+ "host": {
185
+ "additionalProperties": false,
186
+ "default": {},
187
+ "examples": [
188
+ {
189
+ "id": "HOST_ID",
190
+ "isRetired": false,
191
+ "memo": "",
192
+ "name": "MY_HOST",
193
+ "roles": [],
194
+ "status": "working",
195
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
196
+ }
197
+ ],
198
+ "properties": {
199
+ "id": {
200
+ "examples": [
201
+ "HOST_ID"
202
+ ],
203
+ "title": "ホストID",
204
+ "type": "string"
205
+ },
206
+ "isRetired": {
207
+ "default": false,
208
+ "examples": [
209
+ false
210
+ ],
211
+ "title": "退役済みかどうか",
212
+ "type": "boolean"
213
+ },
214
+ "memo": {
215
+ "$ref": "#/definitions/memo"
216
+ },
217
+ "name": {
218
+ "examples": [
219
+ "MY_HOST"
220
+ ],
221
+ "title": "ホスト名",
222
+ "type": "string"
223
+ },
224
+ "roles": {
225
+ "$ref": "#/definitions/roles"
226
+ },
227
+ "status": {
228
+ "enum": [
229
+ "working",
230
+ "standby",
231
+ "maintenance",
232
+ "poweroff"
233
+ ],
234
+ "title": "ステータス",
235
+ "type": "string"
236
+ },
237
+ "url": {
238
+ "examples": [
239
+ "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
240
+ ],
241
+ "format": "uri",
242
+ "title": "ホストURL",
243
+ "type": "string"
244
+ }
245
+ },
246
+ "required": [
247
+ "name",
248
+ "isRetired",
249
+ "id",
250
+ "url",
251
+ "status",
252
+ "roles"
253
+ ],
254
+ "title": "ホスト情報",
255
+ "type": "object"
256
+ },
257
+ "imageUrl": {
258
+ "$ref": "#/definitions/imageUrl"
259
+ },
260
+ "orgName": {
261
+ "examples": [
262
+ "MY_ORG"
263
+ ],
264
+ "title": "オーガニゼーション名",
265
+ "type": "string"
266
+ },
267
+ "user": {
268
+ "$ref": "#/definitions/user"
269
+ }
270
+ },
271
+ "required": [
272
+ "orgName",
273
+ "event",
274
+ "host",
275
+ "user"
276
+ ],
277
+ "title": "ルート",
278
+ "type": "object"
279
+ }
@@ -0,0 +1,283 @@
1
+ {
2
+ "$id": "https://mackerel.io/json/host-status.json",
3
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
4
+ "additionalProperties": false,
5
+ "default": {},
6
+ "definitions": {
7
+ "imageUrl": {
8
+ "default": null,
9
+ "examples": [
10
+ null,
11
+ "https://mackerel.io/embed/public/alert/RANDOM_GRAPH_URL.png"
12
+ ],
13
+ "title": "グラフ画像URL",
14
+ "type": [
15
+ "null",
16
+ "string"
17
+ ]
18
+ },
19
+ "memo": {
20
+ "examples": [
21
+ "MY_MEMO",
22
+ "MY_MEMO\nMY_MEMO2\nMY_MEMO3"
23
+ ],
24
+ "title": "メモ",
25
+ "type": "string"
26
+ },
27
+ "roles": {
28
+ "default": [],
29
+ "examples": [
30
+ [
31
+ {
32
+ "fullname": "MY_SERVICE: MY_ROLE",
33
+ "roleName": "MY_ROLE",
34
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
35
+ "serviceName": "MY_SERVICE",
36
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
37
+ }
38
+ ]
39
+ ],
40
+ "items": {
41
+ "additionalProperties": false,
42
+ "examples": [
43
+ {
44
+ "fullname": "MY_SERVICE: MY_ROLE",
45
+ "roleName": "MY_ROLE",
46
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
47
+ "serviceName": "MY_SERVICE",
48
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
49
+ }
50
+ ],
51
+ "properties": {
52
+ "fullname": {
53
+ "examples": [
54
+ "MY_SERVICE: MY_ROLE"
55
+ ],
56
+ "title": "サービスとロールの結合名",
57
+ "type": "string"
58
+ },
59
+ "roleName": {
60
+ "examples": [
61
+ "MY_ROLE"
62
+ ],
63
+ "title": "ロール名",
64
+ "type": "string"
65
+ },
66
+ "roleUrl": {
67
+ "examples": [
68
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE"
69
+ ],
70
+ "format": "uri",
71
+ "title": "ロールURL",
72
+ "type": "string"
73
+ },
74
+ "serviceName": {
75
+ "examples": [
76
+ "MY_SERVICE"
77
+ ],
78
+ "title": "サービス名",
79
+ "type": "string"
80
+ },
81
+ "serviceUrl": {
82
+ "examples": [
83
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
84
+ ],
85
+ "format": "uri",
86
+ "title": "サービスURL",
87
+ "type": "string"
88
+ }
89
+ },
90
+ "required": [
91
+ "fullname",
92
+ "serviceName",
93
+ "roleName",
94
+ "serviceUrl",
95
+ "roleUrl"
96
+ ],
97
+ "title": "ロール詳細情報",
98
+ "type": "object"
99
+ },
100
+ "title": "ロール情報",
101
+ "type": "array"
102
+ },
103
+ "user": {
104
+ "additionalProperties": false,
105
+ "default": null,
106
+ "examples": [
107
+ null
108
+ ],
109
+ "properties": {
110
+ "id": {
111
+ "examples": [
112
+ "USER_ID"
113
+ ],
114
+ "title": "ユーザーID",
115
+ "type": "string"
116
+ },
117
+ "screenName": {
118
+ "examples": [
119
+ "MY_NAME",
120
+ "MY_EMAIL_ADDRESS"
121
+ ],
122
+ "title": "表示名",
123
+ "type": "string"
124
+ }
125
+ },
126
+ "title": "ユーザー情報",
127
+ "type": [
128
+ "null",
129
+ "object"
130
+ ]
131
+ }
132
+ },
133
+ "examples": [
134
+ {
135
+ "event": "hostStatus",
136
+ "fromStatus": "working",
137
+ "host": {
138
+ "id": "HOST_ID",
139
+ "isRetired": false,
140
+ "memo": "",
141
+ "name": "MY_HOST",
142
+ "roles": [
143
+ {
144
+ "fullname": "MY_SERVICE: MY_ROLE",
145
+ "roleName": "MY_ROLE",
146
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
147
+ "serviceName": "MY_SERVICE",
148
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
149
+ },
150
+ {
151
+ "fullname": "MY_SERVICE2: MY_ROLE2",
152
+ "roleName": "MY_ROLE2",
153
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE2#role=MY_ROLE2",
154
+ "serviceName": "MY_SERVICE2",
155
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE2"
156
+ }
157
+ ],
158
+ "status": "standby",
159
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
160
+ },
161
+ "imageUrl": null,
162
+ "orgName": "MY_ORG",
163
+ "user": {
164
+ "id": "USER_ID",
165
+ "screenName": "MY_EMAIL_ADDRESS"
166
+ }
167
+ }
168
+ ],
169
+ "properties": {
170
+ "event": {
171
+ "enum": [
172
+ "hostStatus"
173
+ ],
174
+ "title": "イベントの種類",
175
+ "type": "string"
176
+ },
177
+ "fromStatus": {
178
+ "enum": [
179
+ "standby",
180
+ "working",
181
+ "maintenance",
182
+ "poweroff"
183
+ ],
184
+ "title": "前のステータス",
185
+ "type": "string"
186
+ },
187
+ "host": {
188
+ "additionalProperties": false,
189
+ "default": {},
190
+ "examples": [
191
+ {
192
+ "id": "HOST_ID",
193
+ "isRetired": false,
194
+ "memo": "",
195
+ "name": "MY_HOST",
196
+ "roles": [],
197
+ "status": "working",
198
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
199
+ }
200
+ ],
201
+ "properties": {
202
+ "id": {
203
+ "examples": [
204
+ "HOST_ID"
205
+ ],
206
+ "title": "ホストID",
207
+ "type": "string"
208
+ },
209
+ "isRetired": {
210
+ "default": false,
211
+ "examples": [
212
+ false
213
+ ],
214
+ "title": "退役済みかどうか",
215
+ "type": "boolean"
216
+ },
217
+ "memo": {
218
+ "$ref": "#/definitions/memo"
219
+ },
220
+ "name": {
221
+ "examples": [
222
+ "MY_HOST"
223
+ ],
224
+ "title": "ホスト名",
225
+ "type": "string"
226
+ },
227
+ "roles": {
228
+ "$ref": "#/definitions/roles"
229
+ },
230
+ "status": {
231
+ "enum": [
232
+ "working",
233
+ "standby",
234
+ "maintenance",
235
+ "poweroff"
236
+ ],
237
+ "title": "ステータス",
238
+ "type": "string"
239
+ },
240
+ "url": {
241
+ "examples": [
242
+ "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
243
+ ],
244
+ "format": "uri",
245
+ "title": "ホストURL",
246
+ "type": "string"
247
+ }
248
+ },
249
+ "required": [
250
+ "name",
251
+ "isRetired",
252
+ "id",
253
+ "url",
254
+ "status",
255
+ "roles"
256
+ ],
257
+ "title": "ホスト情報",
258
+ "type": "object"
259
+ },
260
+ "imageUrl": {
261
+ "$ref": "#/definitions/imageUrl"
262
+ },
263
+ "orgName": {
264
+ "examples": [
265
+ "MY_ORG"
266
+ ],
267
+ "title": "オーガニゼーション名",
268
+ "type": "string"
269
+ },
270
+ "user": {
271
+ "$ref": "#/definitions/user"
272
+ }
273
+ },
274
+ "required": [
275
+ "orgName",
276
+ "event",
277
+ "host",
278
+ "user",
279
+ "fromStatus"
280
+ ],
281
+ "title": "ルート",
282
+ "type": "object"
283
+ }