diff --git a/src/modules/counters/counters.c b/src/modules/counters/counters.c index f59458f7490..20410092a14 100644 --- a/src/modules/counters/counters.c +++ b/src/modules/counters/counters.c @@ -104,8 +104,11 @@ static rpc_export_t counters_rpc[] = { {"cnt.get", cnt_get_rpc, cnt_get_doc, 0 }, {"cnt.reset", cnt_reset_rpc, cnt_reset_doc, 0 }, {"cnt.get_raw", cnt_get_raw_rpc, cnt_get_raw_doc, 0 }, + {"cnt.list_groups", cnt_grps_list_rpc, cnt_grps_list_doc, RET_ARRAY }, {"cnt.grps_list", cnt_grps_list_rpc, cnt_grps_list_doc, RET_ARRAY }, + {"cnt.list_vars", cnt_var_list_rpc, cnt_var_list_doc, RET_ARRAY }, {"cnt.var_list", cnt_var_list_rpc, cnt_var_list_doc, RET_ARRAY }, + {"cnt.get_vars", cnt_grp_get_all_rpc, cnt_grp_get_all_doc, 0 }, {"cnt.grp_get_all", cnt_grp_get_all_rpc, cnt_grp_get_all_doc, 0 }, {"cnt.help", cnt_help_rpc, cnt_help_doc, 0}, { 0, 0, 0, 0} diff --git a/src/modules/counters/doc/counters_rpc.xml b/src/modules/counters/doc/counters_rpc.xml index baed9521137..6b8e237aeba 100644 --- a/src/modules/counters/doc/counters_rpc.xml +++ b/src/modules/counters/doc/counters_rpc.xml @@ -1,5 +1,5 @@ - @@ -10,13 +10,16 @@
- counters RPC Functions + RPC Commands -
- <function>cnt.get group counter_name</function> +
+ <function>cnt.get</function> Get the value of the counter identified by group.counter_name. + + Prototype: cnt.get group counter_name + <function>cnt.get grp counter_name</function> usage @@ -25,11 +28,14 @@
-
- <function>cnt.reset group counter_name</function> +
+ <function>cnt.reset</function> Resets the counter identified by group.counter_name. + + Prototype: cnt.reset group counter_name + <function>cnt.reset grp name</function> usage @@ -38,52 +44,85 @@
-
- <function>cnt.grps_list</function> +
+ <function>cnt.list_groups</function> Lists all the declared counter groups. + + Prototype: cnt.list_groups + - <function>cnt.grps_list</function> usage + <function>cnt.list_groups</function> usage - $ &sercmd; cnt.grps_list + $ &sercmd; cnt.list_groups
-
- <function>cnt.var_list group</function> +
+ <function>cnt.grps_list</function> + + Alias to cnt.list_groups. + +
+ +
+ <function>cnt.list_vars</function> Lists all the names of all the counters belonging to the specified group. + + Prototype: cnt.list_vars group + - <function>cnt.var_list group</function> usage + <function>cnt.list_vars group</function> usage - $ &sercmd; cnt.var_list script + $ &sercmd; cnt.list_vars tmx
-
- <function>cnt.grp_get_all</function> +
+ <function>cnt.var_list</function> + + Alias to cnt.list_vars. + +
+ +
+ <function>cnt.get_vars</function> Lists all the counter names and their values in the specified group. + + Prototype: cnt.get_vars group + - <function>cnt.var_list group</function> usage + <function>cnt.get_vars group</function> usage - $ &sercmd; cnt.grp_get_all script + $ &sercmd; cnt.get_vars script
-
- <function>cnt.help group counter_name</function> +
+ <function>cnt.grp_get_all</function> + + Alias to cnt.get_vars. + +
+ +
+ <function>cnt.help</function> Displays the counter description. + + Prototype: cnt.help group counter_name + <function>cnt.help grp name</function> usage