chore: deprecate statsd

This commit is contained in:
JianBo He 2023-04-20 14:15:09 +08:00
parent 8ccfbe9e16
commit 712f7b7454
2 changed files with 4 additions and 1 deletions

View File

@ -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(),

View File

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