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,887 @@
1
+ {
2
+ "$id": "https://mackerel.io/json/alert.json",
3
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
4
+ "additionalProperties": false,
5
+ "default": {},
6
+ "definitions": {
7
+ "host": {
8
+ "additionalProperties": false,
9
+ "examples": [
10
+ {
11
+ "id": "HOST_ID",
12
+ "isRetired": false,
13
+ "memo": "MY_MEMO",
14
+ "name": "MY_HOST",
15
+ "roles": [
16
+ {
17
+ "fullname": "MY_SERVICE: MY_ROLE",
18
+ "roleName": "MY_ROLE",
19
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
20
+ "serviceName": "MY_SERVICE",
21
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
22
+ }
23
+ ],
24
+ "status": "working",
25
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
26
+ }
27
+ ],
28
+ "properties": {
29
+ "id": {
30
+ "examples": [
31
+ "HOST_ID"
32
+ ],
33
+ "title": "ホストID",
34
+ "type": "string"
35
+ },
36
+ "isRetired": {
37
+ "default": false,
38
+ "examples": [
39
+ false
40
+ ],
41
+ "title": "退役済みか",
42
+ "type": "boolean"
43
+ },
44
+ "memo": {
45
+ "$ref": "#/definitions/memo"
46
+ },
47
+ "name": {
48
+ "examples": [
49
+ "MY_HOST"
50
+ ],
51
+ "title": "ホスト名",
52
+ "type": "string"
53
+ },
54
+ "roles": {
55
+ "$ref": "#/definitions/roles"
56
+ },
57
+ "status": {
58
+ "enum": [
59
+ "working",
60
+ "standby",
61
+ "maintenance",
62
+ "poweroff"
63
+ ],
64
+ "title": "ステータス",
65
+ "type": "string"
66
+ },
67
+ "url": {
68
+ "examples": [
69
+ "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
70
+ ],
71
+ "format": "uri",
72
+ "title": "ホストURL",
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": [
77
+ "name",
78
+ "isRetired",
79
+ "id",
80
+ "url",
81
+ "status",
82
+ "roles"
83
+ ],
84
+ "title": "ホスト情報",
85
+ "type": "object"
86
+ },
87
+ "imageUrl": {
88
+ "default": null,
89
+ "examples": [
90
+ null,
91
+ "https://mackerel.io/embed/public/alert/RANDOM_GRAPH_URL.png"
92
+ ],
93
+ "title": "グラフ画像URL",
94
+ "type": [
95
+ "null",
96
+ "string"
97
+ ]
98
+ },
99
+ "memo": {
100
+ "examples": [
101
+ "MY_MEMO",
102
+ "MY_MEMO\nMY_MEMO2\nMY_MEMO3"
103
+ ],
104
+ "title": "メモ",
105
+ "type": "string"
106
+ },
107
+ "roles": {
108
+ "default": [],
109
+ "examples": [
110
+ [
111
+ {
112
+ "fullname": "MY_SERVICE: MY_ROLE",
113
+ "roleName": "MY_ROLE",
114
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
115
+ "serviceName": "MY_SERVICE",
116
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
117
+ }
118
+ ]
119
+ ],
120
+ "items": {
121
+ "additionalProperties": false,
122
+ "examples": [
123
+ {
124
+ "fullname": "MY_SERVICE: MY_ROLE",
125
+ "roleName": "MY_ROLE",
126
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
127
+ "serviceName": "MY_SERVICE",
128
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
129
+ }
130
+ ],
131
+ "properties": {
132
+ "fullname": {
133
+ "examples": [
134
+ "MY_SERVICE: MY_ROLE"
135
+ ],
136
+ "title": "サービスとロールの結合名",
137
+ "type": "string"
138
+ },
139
+ "roleName": {
140
+ "examples": [
141
+ "MY_ROLE"
142
+ ],
143
+ "title": "ロール名",
144
+ "type": "string"
145
+ },
146
+ "roleUrl": {
147
+ "examples": [
148
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE"
149
+ ],
150
+ "format": "uri",
151
+ "title": "ロールURL",
152
+ "type": "string"
153
+ },
154
+ "serviceName": {
155
+ "examples": [
156
+ "MY_SERVICE"
157
+ ],
158
+ "title": "サービス名",
159
+ "type": "string"
160
+ },
161
+ "serviceUrl": {
162
+ "examples": [
163
+ "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
164
+ ],
165
+ "format": "uri",
166
+ "title": "サービスURL",
167
+ "type": "string"
168
+ }
169
+ },
170
+ "required": [
171
+ "fullname",
172
+ "serviceName",
173
+ "roleName",
174
+ "serviceUrl",
175
+ "roleUrl"
176
+ ],
177
+ "title": "ロール詳細情報",
178
+ "type": "object"
179
+ },
180
+ "title": "ロール情報",
181
+ "type": "array"
182
+ },
183
+ "service": {
184
+ "additionalProperties": false,
185
+ "default": {},
186
+ "examples": [
187
+ {
188
+ "id": "SERVICE_ID",
189
+ "memo": "",
190
+ "name": "MY_SERVICE",
191
+ "orgId": "ORG_ID",
192
+ "roles": [
193
+ {
194
+ "fullname": "MY_SERVICE: MY_ROLE",
195
+ "roleName": "MY_ROLE",
196
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
197
+ "serviceName": "MY_SERVICE",
198
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
199
+ }
200
+ ]
201
+ }
202
+ ],
203
+ "properties": {
204
+ "id": {
205
+ "examples": [
206
+ "SERVICE_ID"
207
+ ],
208
+ "title": "サービスID",
209
+ "type": "string"
210
+ },
211
+ "memo": {
212
+ "examples": [
213
+ ""
214
+ ],
215
+ "title": "メモ",
216
+ "type": "string"
217
+ },
218
+ "name": {
219
+ "examples": [
220
+ "MY_SERVICE"
221
+ ],
222
+ "title": "サービス名",
223
+ "type": "string"
224
+ },
225
+ "orgId": {
226
+ "examples": [
227
+ "ORG_ID"
228
+ ],
229
+ "title": "オーガニゼーションID",
230
+ "type": "string"
231
+ },
232
+ "roles": {
233
+ "$ref": "#/definitions/roles"
234
+ }
235
+ },
236
+ "required": [
237
+ "name",
238
+ "id",
239
+ "orgId",
240
+ "roles"
241
+ ],
242
+ "title": "サービス情報",
243
+ "type": "object"
244
+ },
245
+ "user": {
246
+ "additionalProperties": false,
247
+ "default": null,
248
+ "examples": [
249
+ null
250
+ ],
251
+ "properties": {
252
+ "id": {
253
+ "examples": [
254
+ "USER_ID"
255
+ ],
256
+ "title": "ユーザーID",
257
+ "type": "string"
258
+ },
259
+ "screenName": {
260
+ "examples": [
261
+ "MY_NAME",
262
+ "MY_EMAIL_ADDRESS"
263
+ ],
264
+ "title": "表示名",
265
+ "type": "string"
266
+ }
267
+ },
268
+ "title": "ユーザー情報",
269
+ "type": [
270
+ "null",
271
+ "object"
272
+ ]
273
+ }
274
+ },
275
+ "examples": [
276
+ {
277
+ "alert": {
278
+ "closedAt": null,
279
+ "createdAt": 1692628521296,
280
+ "criticalThreshold": 10,
281
+ "duration": 3,
282
+ "id": "ALERT_ID",
283
+ "isOpen": true,
284
+ "metricLabel": "cpu%",
285
+ "metricValue": 6,
286
+ "monitorName": "CPU %",
287
+ "monitorOperator": ">",
288
+ "openedAt": 1692628521,
289
+ "status": "warning",
290
+ "trigger": "monitor",
291
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
292
+ "warningThreshold": 5
293
+ },
294
+ "event": "alert",
295
+ "host": {
296
+ "id": "HOST_ID",
297
+ "isRetired": false,
298
+ "memo": "MY_MEMO",
299
+ "name": "MY_HOST",
300
+ "roles": [
301
+ {
302
+ "fullname": "MY_SERVICE: MY_ROLE",
303
+ "roleName": "MY_ROLE",
304
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
305
+ "serviceName": "MY_SERVICE",
306
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
307
+ }
308
+ ],
309
+ "status": "working",
310
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
311
+ },
312
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH_URL.png",
313
+ "memo": "MY_MEMO\nMY_MEMO2",
314
+ "orgName": "MY_ORG",
315
+ "user": null
316
+ },
317
+ {
318
+ "alert": {
319
+ "closedAt": null,
320
+ "createdAt": 1693746245295,
321
+ "criticalThreshold": 1,
322
+ "duration": 1,
323
+ "id": "ALERT_ID",
324
+ "isOpen": true,
325
+ "metricLabel": "scale(host(HOST_ID, loadavg1), 1)",
326
+ "metricValue": 0.02,
327
+ "monitorName": "MY_MONITOR-EXPRESSION",
328
+ "monitorOperator": ">",
329
+ "openedAt": 1693746245,
330
+ "status": "warning",
331
+ "trigger": "monitor",
332
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
333
+ "warningThreshold": 0
334
+ },
335
+ "event": "alert",
336
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
337
+ "memo": "MEMO1\nMEMO2",
338
+ "orgName": "MY_ORG",
339
+ "user": null
340
+ },
341
+ {
342
+ "alert": {
343
+ "closedAt": 1693746690,
344
+ "createdAt": 1693746245295,
345
+ "criticalThreshold": 1,
346
+ "duration": 1,
347
+ "id": "ALERT_ID",
348
+ "isOpen": false,
349
+ "metricLabel": "scale(host(HOST_ID, loadavg1), 1)",
350
+ "monitorName": "MY_MONITOR-EXPRESSION",
351
+ "monitorOperator": ">",
352
+ "openedAt": 1693746245,
353
+ "status": "ok",
354
+ "trigger": "manual close",
355
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
356
+ "warningThreshold": 0
357
+ },
358
+ "event": "alert",
359
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
360
+ "memo": "MEMO1\nMEMO2",
361
+ "orgName": "MY_ORG",
362
+ "user": {
363
+ "id": "USER_ID",
364
+ "screenName": "MY_EMAIL_ADDRESS"
365
+ }
366
+ },
367
+ {
368
+ "alert": {
369
+ "closedAt": null,
370
+ "createdAt": 1693212768244,
371
+ "criticalThreshold": 2,
372
+ "duration": 1,
373
+ "id": "ALERT_ID",
374
+ "isOpen": true,
375
+ "metricLabel": "MY_METRIC",
376
+ "metricValue": 1693212649,
377
+ "monitorName": "MY_SERVICE - MY_METRIC",
378
+ "monitorOperator": ">",
379
+ "openedAt": 1693212768,
380
+ "status": "critical",
381
+ "trigger": "monitor",
382
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
383
+ "warningThreshold": 1
384
+ },
385
+ "event": "alert",
386
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
387
+ "memo": "MEMO1\nMEMO2",
388
+ "orgName": "MY_ORG",
389
+ "service": {
390
+ "id": "SERVICE_ID",
391
+ "memo": "",
392
+ "name": "MY_SERVICE",
393
+ "orgId": "ORG_ID",
394
+ "roles": [
395
+ {
396
+ "fullname": "MY_SERVICE: MY_ROLE",
397
+ "roleName": "MY_ROLE",
398
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
399
+ "serviceName": "MY_SERVICE",
400
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
401
+ },
402
+ {
403
+ "fullname": "MY_SERVICE: MY_ROLE2",
404
+ "roleName": "MY_ROLE2",
405
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE2",
406
+ "serviceName": "MY_SERVICE",
407
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
408
+ }
409
+ ]
410
+ },
411
+ "user": null
412
+ },
413
+ {
414
+ "alert": {
415
+ "closedAt": 1693212848,
416
+ "createdAt": 1693212768244,
417
+ "criticalThreshold": 2,
418
+ "duration": 1,
419
+ "id": "ALERT_ID",
420
+ "isOpen": false,
421
+ "metricLabel": "MY_METRIC",
422
+ "metricValue": 1,
423
+ "monitorName": "MY_SERVICE - MY_METRIC",
424
+ "monitorOperator": ">",
425
+ "openedAt": 1693212768,
426
+ "status": "ok",
427
+ "trigger": "monitor",
428
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
429
+ "warningThreshold": 1
430
+ },
431
+ "event": "alert",
432
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
433
+ "memo": "MEMO1\nMEMO2",
434
+ "orgName": "MY_ORG",
435
+ "service": {
436
+ "id": "SERVICE_ID",
437
+ "memo": "",
438
+ "name": "MY_SERVICE",
439
+ "orgId": "ORG_ID",
440
+ "roles": [
441
+ {
442
+ "fullname": "MY_SERVICE: MY_ROLE",
443
+ "roleName": "MY_ROLE",
444
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
445
+ "serviceName": "MY_SERVICE",
446
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
447
+ }
448
+ ]
449
+ },
450
+ "user": null
451
+ },
452
+ {
453
+ "alert": {
454
+ "closedAt": null,
455
+ "createdAt": 1693025262359,
456
+ "id": "ALERT_ID",
457
+ "isOpen": true,
458
+ "monitorName": "MY_MONITOR_CONNECTIVITY",
459
+ "openedAt": 1693025262,
460
+ "status": "warning",
461
+ "trigger": "monitor",
462
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
463
+ },
464
+ "event": "alert",
465
+ "host": {
466
+ "id": "HOST_ID",
467
+ "isRetired": false,
468
+ "memo": "",
469
+ "name": "MY_HOST",
470
+ "roles": [
471
+ {
472
+ "fullname": "MY_SERVICE: MY_ROLE",
473
+ "roleName": "MY_ROLE",
474
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
475
+ "serviceName": "MY_SERVICE",
476
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
477
+ }
478
+ ],
479
+ "status": "working",
480
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
481
+ },
482
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
483
+ "memo": "",
484
+ "orgName": "MY_ORG",
485
+ "user": null
486
+ },
487
+ {
488
+ "alert": {
489
+ "closedAt": null,
490
+ "createdAt": 1693211911720,
491
+ "id": "ALERT_ID",
492
+ "isOpen": true,
493
+ "monitorName": "MY_MONITOR_CHECK",
494
+ "openedAt": 1693211911,
495
+ "status": "warning",
496
+ "trigger": "monitor",
497
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
498
+ },
499
+ "event": "alert",
500
+ "host": {
501
+ "id": "HOST_ID",
502
+ "isRetired": false,
503
+ "memo": "",
504
+ "name": "MY_HOST",
505
+ "roles": [
506
+ {
507
+ "fullname": "MY_SERVICE: MY_ROLE",
508
+ "roleName": "MY_ROLE",
509
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
510
+ "serviceName": "MY_SERVICE",
511
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
512
+ }
513
+ ],
514
+ "status": "working",
515
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
516
+ },
517
+ "imageUrl": null,
518
+ "memo": "",
519
+ "orgName": "MY_ORG",
520
+ "user": null
521
+ },
522
+ {
523
+ "alert": {
524
+ "closedAt": 1693212151,
525
+ "createdAt": 1693211911720,
526
+ "id": "ALERT_ID",
527
+ "isOpen": false,
528
+ "monitorName": "MY_MONITOR_CHECK",
529
+ "openedAt": 1693211911,
530
+ "status": "ok",
531
+ "trigger": "monitor",
532
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
533
+ },
534
+ "event": "alert",
535
+ "host": {
536
+ "id": "HOST_ID",
537
+ "isRetired": false,
538
+ "memo": "",
539
+ "name": "MY_HOST",
540
+ "roles": [
541
+ {
542
+ "fullname": "MY_SERVICE: MY_ROLE",
543
+ "roleName": "MY_ROLE",
544
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
545
+ "serviceName": "MY_SERVICE",
546
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
547
+ }
548
+ ],
549
+ "status": "working",
550
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
551
+ },
552
+ "imageUrl": null,
553
+ "memo": "",
554
+ "orgName": "MY_ORG",
555
+ "user": null
556
+ },
557
+ {
558
+ "alert": {
559
+ "closedAt": null,
560
+ "createdAt": 1692581954360,
561
+ "id": "ALERT_ID",
562
+ "isOpen": true,
563
+ "monitorName": "MY_MONITOR_EXTERNAL",
564
+ "openedAt": 1692581954,
565
+ "status": "critical",
566
+ "trigger": "monitor",
567
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
568
+ },
569
+ "event": "alert",
570
+ "imageUrl": null,
571
+ "memo": "",
572
+ "orgName": "MY_ORG",
573
+ "user": null
574
+ },
575
+ {
576
+ "alert": {
577
+ "closedAt": null,
578
+ "createdAt": 1693026196886,
579
+ "id": "ALERT_ID",
580
+ "isOpen": true,
581
+ "monitorName": "MY_MONITOR_EXTERNAL",
582
+ "openedAt": 1693026196,
583
+ "status": "critical",
584
+ "trigger": "monitor",
585
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
586
+ },
587
+ "event": "alert",
588
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
589
+ "memo": "",
590
+ "orgName": "MY_ORG",
591
+ "service": {
592
+ "id": "SERVICE_ID",
593
+ "memo": "",
594
+ "name": "MY_SERVICE",
595
+ "orgId": "ORG_ID",
596
+ "roles": [
597
+ {
598
+ "fullname": "MY_SERVICE: MY_ROLE",
599
+ "roleName": "MY_ROLE",
600
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
601
+ "serviceName": "MY_SERVICE",
602
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
603
+ }
604
+ ]
605
+ },
606
+ "user": null
607
+ },
608
+ {
609
+ "alert": {
610
+ "closedAt": null,
611
+ "createdAt": 1693918067845,
612
+ "id": "ALERT_ID",
613
+ "isOpen": true,
614
+ "monitorName": "MY_MONITOR_ANORMALY",
615
+ "openedAt": 1693918067,
616
+ "status": "critical",
617
+ "trigger": "monitor",
618
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
619
+ },
620
+ "event": "alert",
621
+ "host": {
622
+ "id": "HOST_ID",
623
+ "isRetired": false,
624
+ "memo": "",
625
+ "name": "MY_HOST",
626
+ "roles": [
627
+ {
628
+ "fullname": "MY_SERVICE: MY_HOST",
629
+ "roleName": "MY_HOST",
630
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_HOST",
631
+ "serviceName": "MY_SERVICE",
632
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
633
+ },
634
+ {
635
+ "fullname": "MY_SERVICE: MY_ROLE",
636
+ "roleName": "MY_ROLE",
637
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
638
+ "serviceName": "MY_SERVICE",
639
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
640
+ }
641
+ ],
642
+ "status": "working",
643
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
644
+ },
645
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
646
+ "memo": "",
647
+ "orgName": "MY_ORG",
648
+ "user": null
649
+ },
650
+ {
651
+ "alert": {
652
+ "closedAt": 1693918187,
653
+ "createdAt": 1693918067845,
654
+ "id": "ALERT_ID",
655
+ "isOpen": false,
656
+ "monitorName": "MY_MONITOR_ANORMALY",
657
+ "openedAt": 1693918067,
658
+ "status": "ok",
659
+ "trigger": "monitor",
660
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
661
+ },
662
+ "event": "alert",
663
+ "host": {
664
+ "id": "HOST_ID",
665
+ "isRetired": false,
666
+ "memo": "",
667
+ "name": "MY_HOST",
668
+ "roles": [
669
+ {
670
+ "fullname": "MY_SERVICE: MY_HOST",
671
+ "roleName": "MY_HOST",
672
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_HOST",
673
+ "serviceName": "MY_SERVICE",
674
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
675
+ },
676
+ {
677
+ "fullname": "MY_SERVICE: MY_ROLE",
678
+ "roleName": "MY_ROLE",
679
+ "roleUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE#role=MY_ROLE",
680
+ "serviceName": "MY_SERVICE",
681
+ "serviceUrl": "https://mackerel.io/orgs/MY_ORG/services/MY_SERVICE"
682
+ }
683
+ ],
684
+ "status": "working",
685
+ "url": "https://mackerel.io/orgs/MY_ORG/hosts/HOST_ID"
686
+ },
687
+ "imageUrl": "https://mackerel.io/embed/public/alert/RANDOM_GRAPH.png",
688
+ "memo": "",
689
+ "orgName": "MY_ORG",
690
+ "user": null
691
+ }
692
+ ],
693
+ "properties": {
694
+ "alert": {
695
+ "additionalProperties": false,
696
+ "examples": [
697
+ {
698
+ "closedAt": null,
699
+ "createdAt": 1692628521296,
700
+ "criticalThreshold": 10,
701
+ "duration": 3,
702
+ "id": "ALERT_ID",
703
+ "isOpen": true,
704
+ "metricLabel": "cpu%",
705
+ "metricValue": 6,
706
+ "monitorName": "CPU %",
707
+ "monitorOperator": ">",
708
+ "openedAt": 1692628521,
709
+ "status": "warning",
710
+ "trigger": "monitor",
711
+ "url": "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID",
712
+ "warningThreshold": 5
713
+ }
714
+ ],
715
+ "properties": {
716
+ "closedAt": {
717
+ "default": null,
718
+ "examples": [
719
+ null,
720
+ 1692628521
721
+ ],
722
+ "title": "アラート終了epoch時間",
723
+ "type": [
724
+ "null",
725
+ "integer"
726
+ ]
727
+ },
728
+ "createdAt": {
729
+ "examples": [
730
+ 1692628521296
731
+ ],
732
+ "title": "アラート発生epoch時間ms(廃止予定)",
733
+ "type": "integer"
734
+ },
735
+ "criticalThreshold": {
736
+ "examples": [
737
+ 10
738
+ ],
739
+ "title": "Critical条件閾値",
740
+ "type": "integer"
741
+ },
742
+ "duration": {
743
+ "examples": [
744
+ 3
745
+ ],
746
+ "title": "平均値監視",
747
+ "type": "integer"
748
+ },
749
+ "id": {
750
+ "examples": [
751
+ "ALERT_ID"
752
+ ],
753
+ "title": "アラートID",
754
+ "type": "string"
755
+ },
756
+ "isOpen": {
757
+ "default": false,
758
+ "examples": [
759
+ true
760
+ ],
761
+ "title": "アラートがオープンのままか",
762
+ "type": "boolean"
763
+ },
764
+ "metricLabel": {
765
+ "examples": [
766
+ "cpu%",
767
+ "custom.linux.users.users"
768
+ ],
769
+ "title": "メトリック名",
770
+ "type": "string"
771
+ },
772
+ "metricValue": {
773
+ "examples": [
774
+ 1
775
+ ],
776
+ "title": "メトリック値",
777
+ "type": "integer"
778
+ },
779
+ "monitorName": {
780
+ "examples": [
781
+ "CPU %"
782
+ ],
783
+ "title": "監視ルール名",
784
+ "type": "string"
785
+ },
786
+ "monitorOperator": {
787
+ "enum": [
788
+ ">",
789
+ "<"
790
+ ],
791
+ "title": "演算子",
792
+ "type": "string"
793
+ },
794
+ "openedAt": {
795
+ "examples": [
796
+ 1692628521
797
+ ],
798
+ "title": "アラート発生epoch時間",
799
+ "type": "integer"
800
+ },
801
+ "status": {
802
+ "enum": [
803
+ "warning",
804
+ "critical",
805
+ "ok",
806
+ "unknown"
807
+ ],
808
+ "title": "ステータス",
809
+ "type": "string"
810
+ },
811
+ "trigger": {
812
+ "enum": [
813
+ "monitor",
814
+ "manual close"
815
+ ],
816
+ "title": "トリガー",
817
+ "type": "string"
818
+ },
819
+ "url": {
820
+ "examples": [
821
+ "https://mackerel.io/orgs/MY_ORG/alerts/ALERT_ID"
822
+ ],
823
+ "format": "uri",
824
+ "title": "アラートURL",
825
+ "type": "string"
826
+ },
827
+ "warningThreshold": {
828
+ "examples": [
829
+ 5
830
+ ],
831
+ "title": "Warning条件閾値",
832
+ "type": "integer"
833
+ }
834
+ },
835
+ "required": [
836
+ "id",
837
+ "url",
838
+ "openedAt",
839
+ "closedAt",
840
+ "createdAt",
841
+ "status",
842
+ "isOpen",
843
+ "trigger",
844
+ "monitorName"
845
+ ],
846
+ "title": "アラート",
847
+ "type": "object"
848
+ },
849
+ "event": {
850
+ "enum": [
851
+ "alert"
852
+ ],
853
+ "title": "イベントの種類",
854
+ "type": "string"
855
+ },
856
+ "host": {
857
+ "$ref": "#/definitions/host"
858
+ },
859
+ "imageUrl": {
860
+ "$ref": "#/definitions/imageUrl"
861
+ },
862
+ "memo": {
863
+ "$ref": "#/definitions/memo"
864
+ },
865
+ "orgName": {
866
+ "examples": [
867
+ "MY_ORG"
868
+ ],
869
+ "title": "オーガニゼーション名",
870
+ "type": "string"
871
+ },
872
+ "service": {
873
+ "$ref": "#/definitions/service"
874
+ },
875
+ "user": {
876
+ "$ref": "#/definitions/user"
877
+ }
878
+ },
879
+ "required": [
880
+ "orgName",
881
+ "event",
882
+ "alert",
883
+ "user"
884
+ ],
885
+ "title": "ルート",
886
+ "type": "object"
887
+ }