Merge pull request #4 from valitydev/TD-814/ft/add-startup-probe-path

TD-814: add startup probe path
This commit is contained in:
ttt161 2023-11-30 07:58:25 +03:00 committed by GitHub
commit 49716470d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
-export([get_route/1]).
-export([get_liveness_route/1]).
-export([get_readiness_route/1]).
-export([get_startup_route/1]).
%% cowboy_handler callbacks
-behaviour(cowboy_handler).
@ -28,6 +29,11 @@ get_liveness_route(Check) ->
get_readiness_route(Check) ->
{"/healthz/readiness", ?MODULE, Check}.
-spec get_startup_route(erl_health:check()) ->
{iodata(), module(), erl_health:check()}.
get_startup_route(Check) ->
{"/healthz/startup", ?MODULE, Check}.
%%
%% cowboy_http_handler callbacks
%%