Explorar o código

chore: deprecate statsd

JianBo He %!s(int64=3) %!d(string=hai) anos
pai
achega
712f7b7454

+ 2 - 0
apps/emqx_statsd/src/emqx_statsd_api.erl

@@ -49,6 +49,7 @@ schema("/statsd") ->
         'operationId' => statsd,
         get =>
             #{
+                deprecated => true,
                 description => ?DESC(get_statsd_config_api),
                 tags => ?API_TAG_STATSD,
                 responses =>
@@ -56,6 +57,7 @@ schema("/statsd") ->
             },
         put =>
             #{
+                deprecated => true,
                 description => ?DESC(update_statsd_config_api),
                 tags => ?API_TAG_STATSD,
                 'requestBody' => statsd_config_schema(),

+ 2 - 1
apps/emqx_statsd/src/emqx_statsd_schema.erl

@@ -32,7 +32,8 @@
 
 namespace() -> "statsd".
 
-roots() -> ["statsd"].
+roots() ->
+    [{"statsd", hoconsc:mk(hoconsc:ref(?MODULE, "statsd"), #{importance => ?IMPORTANCE_HIDDEN})}].
 
 fields("statsd") ->
     [