Commit dcf260a
Modify Config Files according to health check endpoint (#2606)
## Why make this change?
Closes #2605
## What is this change?
1. This change includes creating the new JSON format for health check
report and the related files for the same.
2. It also includes the changes required in the runtime, datasource and
entities section of the config file to support the newly updated
properties for health checks.
3. Further I have created an enhanced response writer for comprehensive
endpoint which would take up the new config changes and return the
health report and mapped it to the `/health` endpoint.
## How was this tested?
This is currently tested by making sure the basic health checks are
running as expected.
Condition 1: Health is enabled at runtime config
Here, we would get the serialized version of the basic health check.
**Note: This would be improved further.**
Condition 2: Health is disabled or null in runtime config
Here, we would get a 404 Not Found response at the page.
## Sample Request(s)
Not Found Page
<img width="821" alt="image"
src="https://github.com/user-attachments/assets/330e584c-cd96-4b61-afac-7225e5d8895d"
/>
Basic Health Check as expected
<img width="215" alt="image"
src="https://github.com/user-attachments/assets/aaa77479-28e6-4955-ae7f-72ec1ef8ff0b"
/>
Comprehensive Health Check (To Be improved further)
<img width="253" alt="image"
src="https://github.com/user-attachments/assets/cfe8e8bb-6741-4879-80a2-eee399d0654f"
/>
---------
Co-authored-by: sezalchug <[email protected]>
Co-authored-by: Aniruddh Munde <[email protected]>1 parent eefc57a commit dcf260a
File tree
16 files changed
+306
-18
lines changed- src
- Config
- HealthCheck
- ObjectModel
- Service.Tests/Configuration
- Service
- HealthCheck
16 files changed
+306
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | | - | |
| 3751 | + | |
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
| |||
3761 | 3761 | | |
3762 | 3762 | | |
3763 | 3763 | | |
3764 | | - | |
| 3764 | + | |
3765 | 3765 | | |
3766 | 3766 | | |
3767 | 3767 | | |
| |||
0 commit comments