@@ -268,7 +268,7 @@ init_source(#{type := Type} = Source) ->
init_metrics(Source) ->
TypeName = type(Source),
- ok = emqx_plugin_libs_metrics:create_metrics(
+ emqx_plugin_libs_metrics:create_metrics(
authz_metrics,
TypeName,
[matched, allow, deny, ignore],
@@ -72,7 +72,7 @@
rate := #{atom() => rate()}
}.
-type handler_name() :: atom().
--type metric_id() :: binary().
+-type metric_id() :: binary() | atom().
-define(CntrRef(Name), {?MODULE, Name}).
-define(SAMPCOUNT_5M, (?SECS_5M div ?SAMPLING)).