Commit 4b44045
authored
Add advance health check for database (#361)
* chore(swagger): automate swagger sync to amrit-docs
* chore(swagger): automate swagger sync to amrit-docs
* chore(swagger): automate swagger sync to amrit-docs
* fix(swagger): update the workflow and fix the running issue
* fix(swagger): fix the swagger json workflow
* chore(swagger): add fixed branch name in workflow
* chore(ci): prevent multiple swagger sync PRs by using fixed branch
* chore(swagger): add Dev/UAT/Demo servers to OpenAPI config
* chore(swagger): avoid default server URLs
* chore(swagger): remove field injection and inject URLs into OpenAPI bean
* feat(health,version): update version and health endpoints and add advance check for database
* fix(health): normalize severity and fix slow query false positives
* fix(health): avoid false CRITICAL on single long-running MySQL transaction
* fix(health): enforce 3s DB connection timeout via HikariCP1 parent a12c8ad commit 4b44045
4 files changed
Lines changed: 415 additions & 63 deletions
File tree
- src/main/java/com/iemr/common
- controller/version
- service/health
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
529 | 555 | | |
530 | 556 | | |
531 | 557 | | |
| |||
Lines changed: 36 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
53 | 77 | | |
| 78 | + | |
54 | 79 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 80 | + | |
58 | 81 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 82 | + | |
| 83 | + | |
62 | 84 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 85 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 86 | + | |
72 | 87 | | |
73 | 88 | | |
0 commit comments