-module(mzmetrics_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).

%% ===================================================================
%% API functions
%% ===================================================================
-spec start_link() -> supervisor:start_link().
start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

%% ===================================================================
%% Supervisor callbacks
%% ===================================================================
-spec init([]) -> supervisor:init_result().
init([]) ->
    {ok, { {one_for_one, 5, 10}, []} }.


 API
 Supervisor callbacks
 Helper macro for declaring children of supervisor
 ===================================================================
 API functions
 ===================================================================
 ===================================================================
 Supervisor callbacks
 ===================================================================
-module(mzmetrics_sup).

-behaviour(supervisor).

-export([start_link/0]).

-export([init/1]).

-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).

-spec start_link() -> supervisor:start_link().
start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

-spec init([]) -> supervisor:init_result().
init([]) ->
    {ok, { {one_for_one, 5, 10}, []} }.

