[sr-dev] git:master:1cad8353: kex: docs - note about stats.fetch in the section for stats.get_statistics

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 16 14:04:42 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-07-16T14:03:43+02:00

kex: docs - note about stats.fetch in the section for stats.get_statistics

---

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

---

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

---

diff --git a/src/modules/kex/doc/kex_admin.xml b/src/modules/kex/doc/kex_admin.xml
index 8fe4e84ba8..b55bfa4be4 100644
--- a/src/modules/kex/doc/kex_admin.xml
+++ b/src/modules/kex/doc/kex_admin.xml
@@ -735,11 +735,15 @@ resetdebug();
 		<function moreinfo="none">stats.get_statistics</function>
 		</title>
 		<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>
 		<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.</para>
+		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.</para>
 		<para>Examples:</para>
         <programlisting  format="linespecific">
 		&kamcmd; stats.get_statistics all
@@ -757,11 +761,11 @@ resetdebug();
 		structure: {"statsgroup.statsname" : "statsvalue"}. The value is
 		represented as string to accomodate large numbers.</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>
+		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.fetch all




More information about the sr-dev mailing list