Merge pull request #10391 from zhongwencool/04-13-hide-conf

feat: hide ex_hook/rewrite/topic_metric/persistent_session_store
This commit is contained in:
zhongwencool 2023-04-14 09:39:29 +08:00 committed by GitHub
commit 0553facfca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -34,8 +34,14 @@ roots() ->
[
"delayed",
"telemetry",
array("rewrite", #{desc => "List of topic rewrite rules."}),
array("topic_metrics", #{desc => "List of topics whose metrics are reported."})
array("rewrite", #{
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") ->

View File

@ -0,0 +1 @@
hide exhook/rewrite/topic_metric/persistent_session_store/overload_protection from the docs and configuration file.