mirror of
https://github.com/valitydev/erlang-health.git
synced 2024-11-06 00:25:18 +00:00
Merge pull request #4 from valitydev/TD-814/ft/add-startup-probe-path
TD-814: add startup probe path
This commit is contained in:
commit
49716470d0
@ -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
|
||||
%%
|
||||
|
Loading…
Reference in New Issue
Block a user