aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-25 14:51:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-25 14:51:16 +1300
commit53bcb5c788e6b24bf8f6f631445b61a87c5f715f (patch)
treebffd421a1e538090ba868ff981635b1b5a01da65 /debug.xml
parentd8dd2091c36099e5f2e5eeb00734cad54f342cbb (diff)
downloadtrackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.gz
trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.tar.bz2
trackermap-server-53bcb5c788e6b24bf8f6f631445b61a87c5f715f.zip
Implement server statistics collection
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/debug.xml b/debug.xml
index 6f2ccc738..2314735ca 100644
--- a/debug.xml
+++ b/debug.xml
@@ -353,6 +353,15 @@
DELETE FROM attribute_aliases WHERE id = :id;
</entry>
+ <entry key='database.selectStatistics'>
+ SELECT * FROM statistics;
+ </entry>
+
+ <entry key='database.insertStatistics'>
+ INSERT INTO statistics (captureTime, activeUsers, activeDevices, requests, messagesReceived, messagesStored, attributes)
+ VALUES (:captureTime, :activeUsers, :activeDevices, :requests, :messagesReceived, :messagesStored, :attributes);
+ </entry>
+
<!-- PROTOCOL CONFIG -->
<entry key='gps103.port'>5001</entry>