Use module() instead of atom() where applicable
[beam_stats.git] / src / beam_stats_config.erl
CommitLineData
caf75ed8
SK
1-module(beam_stats_config).
2
3-export(
4 [ production_interval/0
5 , consumers/0
6 ]).
7
8-define(APP, beam_stats).
9
10%% ============================================================================
11%% API
12%% ============================================================================
13
14-spec production_interval() ->
76aefffb 15 non_neg_integer().
caf75ed8
SK
16production_interval() ->
17 get_env(production_interval).
18
19-spec consumers() ->
25ef8cda 20 [{ConsumerModule :: module(), ConsumerDefinedOptionsData :: term()}].
caf75ed8
SK
21consumers() ->
22 get_env(consumers).
23
24%% ============================================================================
25%% Internal
26%% ============================================================================
27
28-spec get_env(atom()) ->
29 term().
30get_env(Key) ->
31 {ok, Value} = application:get_env(?APP, Key),
32 Value.
This page took 0.027337 seconds and 4 git commands to generate.