HOW TO ADD A SIMPLE HEALTH CHECK TO A .NET CORE API
Health checks are usually used with an external monitoring service or container orchestrator to check the status of an app.
OUTLINE
ADD CONFIGURATION
00:00 - Go to file Startup.cs
00:08 - Go to method ConfigureServices()
00:11 - Add services.AddHealthChecks()
00:23 - Go to method Configure()
00:27 - Add endpoints.MapHealthChecks("/health");
TEST THE SERVICE
00:45 - Run the service
00:58 - Type /health in your path
01:01 - Your endpoint is healthy with http 200 status :)
#healthcheck #api #netcore #microservice
Music: https://www.bensound.com
Видео HOW TO ADD A SIMPLE HEALTH CHECK TO A .NET CORE API автора Алгоритмическая Пятнашка
Видео HOW TO ADD A SIMPLE HEALTH CHECK TO A .NET CORE API автора Алгоритмическая Пятнашка
Информация
4 декабря 2023 г. 3:06:08
00:01:13
Похожие видео