feat: hide ex_hook/rewrite/topic_metric/persistent_session_store/overload_protection

This commit is contained in:
某文 2023-04-13 21:33:48 +08:00
parent e7c42956b3
commit 58e31d5efd
4 changed files with 13 additions and 6 deletions

View File

@ -186,7 +186,7 @@ roots(medium) ->
{"overload_protection", {"overload_protection",
sc( sc(
ref("overload_protection"), ref("overload_protection"),
#{} #{importance => ?IMPORTANCE_HIDDEN}
)} )}
]; ];
roots(low) -> roots(low) ->
@ -224,7 +224,7 @@ roots(low) ->
{"persistent_session_store", {"persistent_session_store",
sc( sc(
ref("persistent_session_store"), ref("persistent_session_store"),
#{} #{importance => ?IMPORTANCE_HIDDEN}
)}, )},
{"trace", {"trace",
sc( sc(

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{application, emqx_exhook, [ {application, emqx_exhook, [
{description, "EMQX Extension for Hook"}, {description, "EMQX Extension for Hook"},
{vsn, "5.0.11"}, {vsn, "5.0.12"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{mod, {emqx_exhook_app, []}}, {mod, {emqx_exhook_app, []}},

View File

@ -31,7 +31,8 @@
namespace() -> exhook. namespace() -> exhook.
roots() -> [exhook]. roots() ->
[{exhook, ?HOCON(?R_REF(exhook), #{importance => ?IMPORTANCE_HIDDEN})}].
fields(exhook) -> fields(exhook) ->
[ [

View File

@ -34,8 +34,14 @@ roots() ->
[ [
"delayed", "delayed",
"telemetry", "telemetry",
array("rewrite", #{desc => "List of topic rewrite rules."}), array("rewrite", #{
array("topic_metrics", #{desc => "List of topics whose metrics are reported."}) desc => "List of topic rewrite rules.",
importance => ?IMPORTANCE_HIDDEN
}),
array("topic_metrics", #{
desc => "List of topics whose metrics are reported.",
importance => ?IMPORTANCE_HIDDEN
})
]. ].
fields("telemetry") -> fields("telemetry") ->