Module: kamailio
Branch: master
Commit: b96a1be81c6f4bb8ac3a8b11a02fc5d6a55faf41
URL: 
https://github.com/kamailio/kamailio/commit/b96a1be81c6f4bb8ac3a8b11a02fc5d6a55faf41

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2020-02-21T09:54:18+01:00

kex: docs for rpc stats.fetchn command

---

Modified: src/modules/kex/doc/kex_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/b96a1be81c6f4bb8ac3a8b11a02fc5d6a55faf41.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b96a1be81c6f4bb8ac3a8b11a02fc5d6a55faf41.patch

---

diff --git a/src/modules/kex/doc/kex_admin.xml 
b/src/modules/kex/doc/kex_admin.xml
index 4893b4a280..334f989342 100644
--- a/src/modules/kex/doc/kex_admin.xml
+++ b/src/modules/kex/doc/kex_admin.xml
@@ -740,8 +740,8 @@ resetdebug();
                <para>Print the list of available internal statistics.</para>
                <para>NOTE: the result is an array of strings that have the 
list of
                statistics formated like "name = value", being propagated over 
the time
-               from the MI variant. Use "stats.fetch" command to have a more
-               JSON-friendly output.</para>
+               from the MI variant. Use "stats.fetch" or 
"stats.fetchn"commands to have
+               a more JSON-friendly output.</para>
                <para>Parameters: <emphasis>statsid</emphasis> - which 
statistics to
                be printed. If set to 'all' then all statistics are printed; if
                set to 'statsgroup:' then all statistics in the group are 
printed;
@@ -777,6 +777,29 @@ resetdebug();
                &kamcmd; stats.fetch shmem.free_size
                &kamcmd; stats.fetch shmem: fwd_requests fwd_replies
                </programlisting>
+       </section>
+       <section id="kex.r.stats.fetchn">
+               <title>
+               <function moreinfo="none">stats.fetchn</function>
+               </title>
+               <para>Print the list of available internal statistics with a 
more
+               json friendly output. Each printed statistic is a field in the 
output
+               structure: {"statsgroup.statsname" : statsvalue}. The value is
+               represented as number.</para>
+               <para>Parameters: <emphasis>statsid</emphasis> - which 
statistics to
+               be printed. If set to 'all' then all statistics are printed; if
+               set to 'statsgroup:' then all statistics in the group are 
printed;
+               if set to 'statsname' then the statistics identified by the name
+               is printed (can be also 'statsgroup.stastname' or
+               'statsgroup:statsname').</para>
+               <para>Examples:</para>
+        <programlisting  format="linespecific">
+               &kamcmd; stats.fetchn all
+               &kamcmd; stats.fetchn core:
+               &kamcmd; stats.fetchn unsupported_methods
+               &kamcmd; stats.fetchn shmem.free_size
+               &kamcmd; stats.fetchn shmem: fwd_requests fwd_replies
+               </programlisting>
     </section>
        <section id="kex.r.stats.reset_statistics">
                <title>


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to