{"id":20605220,"url":"https://github.com/arnab-developer/apihealthcheck","last_synced_at":"2026-04-13T23:33:01.280Z","repository":{"id":42392655,"uuid":"328744487","full_name":"Arnab-Developer/ApiHealthCheck","owner":"Arnab-Developer","description":"Api health check app.","archived":false,"fork":false,"pushed_at":"2022-08-24T03:07:45.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T02:24:20.891Z","etag":null,"topics":["application-insights","azure","background-task","docker","dotnet","health-check"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arnab-Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-11T17:42:19.000Z","updated_at":"2024-05-24T13:48:32.000Z","dependencies_parsed_at":"2022-08-27T13:21:02.246Z","dependency_job_id":null,"html_url":"https://github.com/Arnab-Developer/ApiHealthCheck","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FApiHealthCheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FApiHealthCheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FApiHealthCheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FApiHealthCheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnab-Developer","download_url":"https://codeload.github.com/Arnab-Developer/ApiHealthCheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250932,"owners_count":20096895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application-insights","azure","background-task","docker","dotnet","health-check"],"created_at":"2024-11-16T09:27:10.479Z","updated_at":"2026-04-13T23:32:56.255Z","avatar_url":"https://github.com/Arnab-Developer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API health check\n\n[![CI CD](https://github.com/Arnab-Developer/ApiHealthCheck/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/Arnab-Developer/ApiHealthCheck/actions/workflows/ci-cd.yml)\n![Docker Image Version (latest by date)](https://img.shields.io/docker/v/45862391/apihealthcheck)\n\nThis is a background task application with .NET (with DI, logging, configuration) to check API health. A small utility \napp to check API health in a perticular time interval. Add the details of the APIs in configuration (like appsettings) \nto check their health status. It uses an Azure Application Insights to log API health status.\n\nYou need Visual Studio 2022 and ASP.NET 6 to work on this project locally.\n\n## Run the app as is\n\nThis app uses some example APIs for health check. If you want to run the app as is then follow the below steps.\n\n- Create an Azure Application Insights resource. \n- Update the appsettings.json with the reference of the Application Insights.\n```\n\"ApplicationInsights\": {\n  \"Key\": \"\",\n  \"LogLevel\": {\n    \"Default\": \"Information\",\n    \"Microsoft\": \"Error\"\n  }\n```\n- Build the app and create docker image.\n- Store the docker image in any container registry.\n- Create a Azure Container Instence with the docker image from that container registry.\n\nYou can find the health check logs in Application Insights.\n\n## Test your own APIs\n\nIf you want to test different APIs then follow the below steps.\n\n- Update the appsettings.json with API details to check their health.\n```\n\"ApiDetails\": [\n  {\n    \"Name\": \"Microsoft\",\n    \"Url\": \"https://microsoft.com\",\n    \"Credential\": {\n    \"UserName\": \"\",\n    \"Password\": \"\"\n    },\n    \"IsEnable\": true\n  }\n]\n```\n- Create an Azure Application Insights resource. \n- Update the appsettings.json with the reference of the Application Insights.\n```\n\"ApplicationInsights\": {\n  \"Key\": \"\",\n  \"LogLevel\": {\n    \"Default\": \"Information\",\n    \"Microsoft\": \"Error\"\n  }\n```\n- Build the app and create docker image.\n- Store the docker image in any container registry.\n- Create a Azure Container Instence with the docker image from that container registry.\n\nYou can find the health check logs in Application Insights.\n\n## Docker image\n\nThis app is in a docker image and stored in dockerhub.\n\nhttps://hub.docker.com/r/45862391/apihealthcheck\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fapihealthcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnab-developer%2Fapihealthcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fapihealthcheck/lists"}