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,545 @@
1
+ {
2
+ "$id": "https://mackerel.io/json/monitor-update.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
+ "user": {
28
+ "additionalProperties": false,
29
+ "default": null,
30
+ "examples": [
31
+ null
32
+ ],
33
+ "properties": {
34
+ "id": {
35
+ "examples": [
36
+ "USER_ID"
37
+ ],
38
+ "title": "ユーザーID",
39
+ "type": "string"
40
+ },
41
+ "screenName": {
42
+ "examples": [
43
+ "MY_NAME",
44
+ "MY_EMAIL_ADDRESS"
45
+ ],
46
+ "title": "表示名",
47
+ "type": "string"
48
+ }
49
+ },
50
+ "title": "ユーザー情報",
51
+ "type": [
52
+ "null",
53
+ "object"
54
+ ]
55
+ }
56
+ },
57
+ "examples": [
58
+ {
59
+ "event": "monitorUpdate",
60
+ "imageUrl": null,
61
+ "monitor": {
62
+ "critical": 10,
63
+ "duration": 1,
64
+ "excludeScopes": [],
65
+ "id": "MONITOR_ID",
66
+ "isMute": false,
67
+ "maxCheckAttempts": 3,
68
+ "metric": "loadavg5",
69
+ "name": "MY_MONITOR",
70
+ "operator": ">",
71
+ "scopes": [],
72
+ "type": "host",
73
+ "warning": 5
74
+ },
75
+ "orgName": "MY_ORG",
76
+ "user": {
77
+ "id": "USER_ID",
78
+ "screenName": "MY_EMAIL_ADDRESS"
79
+ }
80
+ },
81
+ {
82
+ "event": "monitorUpdate",
83
+ "imageUrl": null,
84
+ "monitor": {
85
+ "critical": 2,
86
+ "duration": 3,
87
+ "id": "MONITOR_ID",
88
+ "isMute": false,
89
+ "maxCheckAttempts": 1,
90
+ "metric": "MY_METRIC",
91
+ "missingDurationCritical": 120,
92
+ "missingDurationWarning": 60,
93
+ "name": "MY_SERVICE - MY_METRIC",
94
+ "notificationInterval": 60,
95
+ "operator": ">",
96
+ "service": "MY_SERVICE",
97
+ "type": "service",
98
+ "warning": 1
99
+ },
100
+ "orgName": "MY_ORG",
101
+ "user": {
102
+ "id": "USER_ID",
103
+ "screenName": "MY_EMAIL_ADDRESS"
104
+ }
105
+ },
106
+ {
107
+ "event": "monitorUpdate",
108
+ "imageUrl": null,
109
+ "monitor": {
110
+ "critical": 1,
111
+ "expression": "scale(host(HOST_ID, loadavg1), 1)",
112
+ "id": "MONITOR_ID",
113
+ "isMute": true,
114
+ "memo": "MEMO1\nMEMO2",
115
+ "name": "MY_MONITOR_EXPRESSION",
116
+ "operator": ">",
117
+ "type": "expression",
118
+ "warning": 0
119
+ },
120
+ "orgName": "MY_ORG",
121
+ "user": {
122
+ "id": "USER_ID",
123
+ "screenName": "MY_EMAIL_ADDRESS"
124
+ }
125
+ },
126
+ {
127
+ "event": "monitorUpdate",
128
+ "imageUrl": null,
129
+ "monitor": {
130
+ "alertStatusOnGone": "CRITICAL",
131
+ "excludeScopes": [
132
+ "MY_SERVICE: MY_EXCLUDE_ROLE"
133
+ ],
134
+ "id": "MONITOR_ID",
135
+ "isMute": false,
136
+ "name": "MY_MONITOR_CONNECTIVITY",
137
+ "notificationInterval": 60,
138
+ "scopes": [
139
+ "MY_SERVICE"
140
+ ],
141
+ "type": "connectivity"
142
+ },
143
+ "orgName": "MY_ORG",
144
+ "user": {
145
+ "id": "USER_ID",
146
+ "screenName": "MY_EMAIL_ADDRESS"
147
+ }
148
+ },
149
+ {
150
+ "event": "monitorUpdate",
151
+ "imageUrl": null,
152
+ "monitor": {
153
+ "certificationExpirationCritical": 30,
154
+ "certificationExpirationWarning": 60,
155
+ "containsString": "HELLO",
156
+ "followRedirect": true,
157
+ "headers": [
158
+ {
159
+ "name": "Cache-Control",
160
+ "value": "no-cache"
161
+ }
162
+ ],
163
+ "id": "MONITOR_ID",
164
+ "isMute": false,
165
+ "maxCheckAttempts": 3,
166
+ "method": "GET",
167
+ "name": "MY_MONITOR",
168
+ "notificationInterval": 60,
169
+ "requestBody": "{\"message\": \"example\"}",
170
+ "responseTimeCritical": 1000,
171
+ "responseTimeDuration": 3,
172
+ "responseTimeWarning": 500,
173
+ "service": "testservice",
174
+ "skipCertificateVerification": true,
175
+ "type": "external",
176
+ "url": "MY_URL"
177
+ },
178
+ "orgName": "MY_ORG",
179
+ "user": {
180
+ "id": "USER_ID",
181
+ "screenName": "MY_EMAIL_ADDRESS"
182
+ }
183
+ }
184
+ ],
185
+ "properties": {
186
+ "event": {
187
+ "enum": [
188
+ "monitorUpdate"
189
+ ],
190
+ "title": "イベントの種類",
191
+ "type": "string"
192
+ },
193
+ "imageUrl": {
194
+ "$ref": "#/definitions/imageUrl"
195
+ },
196
+ "monitor": {
197
+ "additionalProperties": false,
198
+ "default": {},
199
+ "examples": [
200
+ {
201
+ "critical": 10,
202
+ "duration": 1,
203
+ "excludeScopes": [],
204
+ "id": "MONIOR_ID",
205
+ "isMute": false,
206
+ "maxCheckAttempts": 3,
207
+ "metric": "cpu%",
208
+ "name": "MY_MONITOR",
209
+ "operator": ">",
210
+ "scopes": [],
211
+ "type": "host",
212
+ "warning": 5
213
+ }
214
+ ],
215
+ "properties": {
216
+ "alertStatusOnGone": {
217
+ "enum": [
218
+ "CRITICAL",
219
+ "WARNING"
220
+ ],
221
+ "title": "アラート発生時のアラートステータス(connectivity)",
222
+ "type": "string"
223
+ },
224
+ "certificationExpirationCritical": {
225
+ "examples": [
226
+ 60
227
+ ],
228
+ "title": "証明書有効期限Critical条件(外形監視)",
229
+ "type": "integer"
230
+ },
231
+ "certificationExpirationWarning": {
232
+ "examples": [
233
+ 30
234
+ ],
235
+ "title": "証明書有効期限Warning条件(外形監視)",
236
+ "type": "integer"
237
+ },
238
+ "containsString": {
239
+ "examples": [
240
+ "RESPONSE_STRING"
241
+ ],
242
+ "title": "レスポンスボディに含まれているべき文字列(外形監視)",
243
+ "type": "string"
244
+ },
245
+ "critical": {
246
+ "examples": [
247
+ 10
248
+ ],
249
+ "title": "Critical条件閾値(ホスト・サービス・式)",
250
+ "type": "integer"
251
+ },
252
+ "criticalSensitivity": {
253
+ "enum": [
254
+ "sensitive",
255
+ "normal",
256
+ "insensitive"
257
+ ],
258
+ "title": "センシティビティCritical条件(異常検知)",
259
+ "type": "string"
260
+ },
261
+ "duration": {
262
+ "examples": [
263
+ 3
264
+ ],
265
+ "title": "平均値監視",
266
+ "type": "integer"
267
+ },
268
+ "excludeScopes": {
269
+ "default": [],
270
+ "examples": [
271
+ []
272
+ ],
273
+ "items": {
274
+ "examples": [
275
+ "MY_SERVICE",
276
+ "MY_SERVICE: MY_ROLE"
277
+ ],
278
+ "title": "絞り込み除外対象サービス",
279
+ "type": "string"
280
+ },
281
+ "title": "絞り込み除外条件(ホスト)",
282
+ "type": "array"
283
+ },
284
+ "expression": {
285
+ "examples": [
286
+ "host(HOST_ID, loadavg5)"
287
+ ],
288
+ "title": "式の文字列(式)",
289
+ "type": "string"
290
+ },
291
+ "followRedirect": {
292
+ "default": true,
293
+ "examples": [
294
+ false
295
+ ],
296
+ "title": "レスポンスヘッダに従ってリダイレクト(外形監視)",
297
+ "type": "boolean"
298
+ },
299
+ "headers": {
300
+ "example": [
301
+ [
302
+ {
303
+ "name": "Cache-Control",
304
+ "value": "no-cache"
305
+ }
306
+ ]
307
+ ],
308
+ "items": {
309
+ "additionalProperties": false,
310
+ "examples": [
311
+ {
312
+ "name": "Cache-Control",
313
+ "value": "no-cache"
314
+ }
315
+ ],
316
+ "properties": {
317
+ "name": {
318
+ "examples": [
319
+ "Cache-Control"
320
+ ],
321
+ "title": "ヘッダ名",
322
+ "type": "string"
323
+ },
324
+ "value": {
325
+ "examples": [
326
+ "no-cache"
327
+ ],
328
+ "title": "ヘッダ値",
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "name",
334
+ "value"
335
+ ],
336
+ "title": "ヘッダ情報",
337
+ "type": "object"
338
+ },
339
+ "title": "リクエストヘッダ(外形監視)",
340
+ "type": "array"
341
+ },
342
+ "id": {
343
+ "examples": [
344
+ "MONITOR_ID"
345
+ ],
346
+ "title": "監視ルールID",
347
+ "type": "string"
348
+ },
349
+ "isMute": {
350
+ "default": false,
351
+ "examples": [
352
+ false
353
+ ],
354
+ "title": "監視のミュート",
355
+ "type": "boolean"
356
+ },
357
+ "maxCheckAttempts": {
358
+ "examples": [
359
+ 3
360
+ ],
361
+ "title": "アラートまでの最大試行回数",
362
+ "type": "integer"
363
+ },
364
+ "memo": {
365
+ "$ref": "#/definitions/memo"
366
+ },
367
+ "method": {
368
+ "enum": [
369
+ "GET",
370
+ "POST",
371
+ "PUT",
372
+ "DELETE"
373
+ ],
374
+ "title": "HTTPメソッド(外形監視)",
375
+ "type": "string"
376
+ },
377
+ "metric": {
378
+ "examples": [
379
+ "cpu%",
380
+ "custom.linux.users.users"
381
+ ],
382
+ "title": "メトリック名(ホスト・サービス)",
383
+ "type": "string"
384
+ },
385
+ "missingDurationCritical": {
386
+ "examples": [
387
+ 60
388
+ ],
389
+ "title": "途切れ監視Critical条件(サービス)",
390
+ "type": "integer"
391
+ },
392
+ "missingDurationWarning": {
393
+ "examples": [
394
+ 60
395
+ ],
396
+ "title": "途切れ監視Warning条件(サービス)",
397
+ "type": "integer"
398
+ },
399
+ "name": {
400
+ "examples": [
401
+ "MY_MONITOR"
402
+ ],
403
+ "title": "監視ルール名",
404
+ "type": "string"
405
+ },
406
+ "notificationInterval": {
407
+ "examples": [
408
+ 60
409
+ ],
410
+ "title": "通知の再送間隔",
411
+ "type": "integer"
412
+ },
413
+ "operator": {
414
+ "enum": [
415
+ ">",
416
+ "<"
417
+ ],
418
+ "title": "演算子(ホスト・サービス・式)",
419
+ "type": "string"
420
+ },
421
+ "requestBody": {
422
+ "examples": [
423
+ "{\"message\": \"Example\"}"
424
+ ],
425
+ "title": "リクエストメッセージボディ(外形監視)",
426
+ "type": "string"
427
+ },
428
+ "responseTimeCritical": {
429
+ "examples": [
430
+ 5000
431
+ ],
432
+ "title": "レスポンスタイム閾値Critical条件(外形監視)",
433
+ "type": "integer"
434
+ },
435
+ "responseTimeDuration": {
436
+ "examples": [
437
+ 3
438
+ ],
439
+ "title": "レスポンスタイム平均値監視数(外形監視)",
440
+ "type": "integer"
441
+ },
442
+ "responseTimeWarning": {
443
+ "examples": [
444
+ 1000
445
+ ],
446
+ "title": "レスポンスタイム閾値Warning条件(外形監視)",
447
+ "type": "integer"
448
+ },
449
+ "scopes": {
450
+ "default": [],
451
+ "examples": [
452
+ []
453
+ ],
454
+ "items": {
455
+ "examples": [
456
+ "MY_SERVICE",
457
+ "MY_SERVICE: MY_ROLE"
458
+ ],
459
+ "title": "絞り込み対象サービス",
460
+ "type": "string"
461
+ },
462
+ "title": "絞り込み条件(ホスト)",
463
+ "type": "array"
464
+ },
465
+ "service": {
466
+ "examples": [
467
+ "MY_SERVICE"
468
+ ],
469
+ "title": "対象サービス名(サービス)、サービスメトリック書き出しサービス名(外形監視)",
470
+ "type": "string"
471
+ },
472
+ "skipCertificateVerification": {
473
+ "default": false,
474
+ "examples": [
475
+ false
476
+ ],
477
+ "title": "証明書の確認を行わない(外形監視)",
478
+ "type": "boolean"
479
+ },
480
+ "type": {
481
+ "enum": [
482
+ "host",
483
+ "external",
484
+ "expression",
485
+ "anomalyDetection",
486
+ "service",
487
+ "connectivity"
488
+ ],
489
+ "title": "監視ルールの対象形式",
490
+ "type": "string"
491
+ },
492
+ "url": {
493
+ "examples": [
494
+ "https://example.jp"
495
+ ],
496
+ "format": "uri",
497
+ "title": "監視対象URL(外形監視)",
498
+ "type": "string"
499
+ },
500
+ "warning": {
501
+ "examples": [
502
+ 5
503
+ ],
504
+ "title": "Warning条件閾値(ホスト・サービス・式)",
505
+ "type": "integer"
506
+ },
507
+ "warningSensitivity": {
508
+ "enum": [
509
+ "sensitive",
510
+ "normal",
511
+ "insensitive"
512
+ ],
513
+ "title": "センシティビティWarning条件(異常検知)",
514
+ "type": "string"
515
+ }
516
+ },
517
+ "required": [
518
+ "id",
519
+ "type",
520
+ "isMute",
521
+ "name"
522
+ ],
523
+ "title": "監視ルール",
524
+ "type": "object"
525
+ },
526
+ "orgName": {
527
+ "examples": [
528
+ "MY_ORG"
529
+ ],
530
+ "title": "オーガニゼーション名",
531
+ "type": "string"
532
+ },
533
+ "user": {
534
+ "$ref": "#/definitions/user"
535
+ }
536
+ },
537
+ "required": [
538
+ "orgName",
539
+ "event",
540
+ "monitor",
541
+ "user"
542
+ ],
543
+ "title": "ルート",
544
+ "type": "object"
545
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$id": "https://mackerel.io/json/sample.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
+ },
20
+ "examples": [
21
+ {
22
+ "event": "sample",
23
+ "imageUrl": null,
24
+ "message": "Sample Notification from Mackerel"
25
+ }
26
+ ],
27
+ "properties": {
28
+ "event": {
29
+ "enum": [
30
+ "sample"
31
+ ],
32
+ "title": "イベントの種類",
33
+ "type": "string"
34
+ },
35
+ "imageUrl": {
36
+ "$ref": "#/definitions/imageUrl"
37
+ },
38
+ "message": {
39
+ "enum": [
40
+ "Sample Notification from Mackerel"
41
+ ],
42
+ "title": "メッセージ文字列",
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": [
47
+ "event",
48
+ "message"
49
+ ],
50
+ "title": "ルート",
51
+ "type": "object"
52
+ }