Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Health Check API #37

Open
ChakshuGautam opened this issue Jul 27, 2021 · 0 comments · Fixed by #66
Open

Create Health Check API #37

ChakshuGautam opened this issue Jul 27, 2021 · 0 comments · Fixed by #66

Comments

@ChakshuGautam
Copy link
Contributor

ChakshuGautam commented Jul 27, 2021

Create and endpoint /health with the following output. It should actually check the health of other services and update the status here.

{
   "id":"api.content.health",
   "ver":"3.0",
   "ts":"2021-06-26T22:47:05Z+05:30",
   "params":{
      "resmsgid":"859fee0c-94d6-4a0d-b786-2025d763b78a",
      "msgid":null,
      "err":null,
      "status":"successful",
      "errmsg":null
   },
   "responseCode":"OK",
   "result":{
      "checks":[
         {
            "name":"redis cache",
            "healthy":true
         },
        {
            "name":"postgres",
            "healthy":true
         },
         {
            "name":"gql service",
            "healthy":true
         },
         {
            "name":"forms service",
            "healthy":true
         },
        {
            "name":"fusionauth service",
            "healthy":true
         },
         {
            "name":"inbound service",
            "healthy":true
         },
         {
            "name":"transformer service",
            "healthy":true
         }
      ],
      "healthy":true
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant