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-delete.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": "monitorDelete",
60
+ "imageUrl": null,
61
+ "monitor": {
62
+ "critical": 50,
63
+ "duration": 3,
64
+ "excludeScopes": [],
65
+ "id": "MONITOR_ID",
66
+ "isMute": false,
67
+ "maxCheckAttempts": 1,
68
+ "memo": "MEMO1",
69
+ "metric": "cpu%",
70
+ "name": "CPU %",
71
+ "notificationInterval": 60,
72
+ "operator": ">",
73
+ "scopes": [
74
+ "MY_SERVICE"
75
+ ],
76
+ "type": "host",
77
+ "warning": 10
78
+ },
79
+ "orgName": "MY_ORG",
80
+ "user": {
81
+ "id": "USER_ID",
82
+ "screenName": "MY_EMAIL_ADDRESS"
83
+ }
84
+ },
85
+ {
86
+ "event": "monitorDelete",
87
+ "imageUrl": null,
88
+ "monitor": {
89
+ "critical": 20,
90
+ "duration": 3,
91
+ "id": "MONITOR_ID",
92
+ "isMute": false,
93
+ "maxCheckAttempts": 1,
94
+ "metric": "MY_METRIC",
95
+ "missingDurationCritical": 60,
96
+ "missingDurationWarning": 60,
97
+ "name": "MY_SERVICE - MY_METRIC",
98
+ "notificationInterval": 60,
99
+ "operator": ">",
100
+ "service": "MY_SERVICE",
101
+ "type": "service",
102
+ "warning": 5
103
+ },
104
+ "orgName": "MY_ORG",
105
+ "user": {
106
+ "id": "USER_ID",
107
+ "screenName": "MY_EMAIL_ADDRESS"
108
+ }
109
+ },
110
+ {
111
+ "event": "monitorDelete",
112
+ "imageUrl": null,
113
+ "monitor": {
114
+ "critical": 1,
115
+ "expression": "scale(host(HOST_ID, loadavg1), 1)",
116
+ "id": "MONITOR_ID",
117
+ "isMute": true,
118
+ "memo": "MEMO1\nMEMO2",
119
+ "name": "MY_MONITOR_EXPRESSION",
120
+ "operator": ">",
121
+ "type": "expression",
122
+ "warning": 0
123
+ },
124
+ "orgName": "MY_ORG",
125
+ "user": {
126
+ "id": "USER_ID",
127
+ "screenName": "MY_EMAIL_ADDRESS"
128
+ }
129
+ },
130
+ {
131
+ "event": "monitorDelete",
132
+ "imageUrl": null,
133
+ "monitor": {
134
+ "alertStatusOnGone": "CRITICAL",
135
+ "excludeScopes": [
136
+ "MY_SERVICE: MY_EXCLUDE_ROLE"
137
+ ],
138
+ "id": "MONITOR_ID",
139
+ "isMute": false,
140
+ "name": "MY_MONITOR_CONNECTIVITY",
141
+ "notificationInterval": 60,
142
+ "scopes": [
143
+ "MY_SERVICE"
144
+ ],
145
+ "type": "connectivity"
146
+ },
147
+ "orgName": "MY_ORG",
148
+ "user": {
149
+ "id": "USER_ID",
150
+ "screenName": "MY_EMAIL_ADDRESS"
151
+ }
152
+ },
153
+ {
154
+ "event": "monitorDelete",
155
+ "imageUrl": null,
156
+ "monitor": {
157
+ "certificationExpirationCritical": 30,
158
+ "certificationExpirationWarning": 60,
159
+ "containsString": "HELLO",
160
+ "followRedirect": true,
161
+ "headers": [
162
+ {
163
+ "name": "Cache-Control",
164
+ "value": "no-cache"
165
+ }
166
+ ],
167
+ "id": "MONITOR_ID",
168
+ "isMute": false,
169
+ "maxCheckAttempts": 3,
170
+ "method": "GET",
171
+ "name": "MY_MONITOR",
172
+ "notificationInterval": 60,
173
+ "requestBody": "{\"message\": \"example\"}",
174
+ "responseTimeCritical": 1000,
175
+ "responseTimeDuration": 3,
176
+ "responseTimeWarning": 500,
177
+ "service": "testservice",
178
+ "skipCertificateVerification": true,
179
+ "type": "external",
180
+ "url": "MY_URL"
181
+ },
182
+ "orgName": "MY_ORG",
183
+ "user": {
184
+ "id": "USER_ID",
185
+ "screenName": "MY_EMAIL_ADDRESS"
186
+ }
187
+ }
188
+ ],
189
+ "properties": {
190
+ "event": {
191
+ "examples": [
192
+ "monitorDelete"
193
+ ],
194
+ "title": "イベントの種類",
195
+ "type": "string"
196
+ },
197
+ "imageUrl": {
198
+ "$ref": "#/definitions/imageUrl"
199
+ },
200
+ "monitor": {
201
+ "additionalProperties": false,
202
+ "default": {},
203
+ "examples": [
204
+ {
205
+ "critical": 50,
206
+ "duration": 3,
207
+ "excludeScopes": [],
208
+ "id": "MONITOR_ID",
209
+ "isMute": false,
210
+ "maxCheckAttempts": 1,
211
+ "memo": "MY_MEMO",
212
+ "metric": "cpu%",
213
+ "name": "CPU %",
214
+ "notificationInterval": 60,
215
+ "operator": ">",
216
+ "scopes": [
217
+ "MY_SERVICE"
218
+ ],
219
+ "type": "host",
220
+ "warning": 10
221
+ }
222
+ ],
223
+ "properties": {
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
+ }