aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-27 10:15:01 +1300
committerGitHub <noreply@github.com>2016-09-27 10:15:01 +1300
commit18499577b16a198762609075ff1846f354d3d712 (patch)
tree0d33302e1193724405099e1108ba04cad552a95e /debug.xml
parentaaec58aec04256845dc37afd713b488071b1406b (diff)
parentccd4a65a4954bcd7d2c38b806440bb766c51b0e2 (diff)
downloadtrackermap-server-18499577b16a198762609075ff1846f354d3d712.tar.gz
trackermap-server-18499577b16a198762609075ff1846f354d3d712.tar.bz2
trackermap-server-18499577b16a198762609075ff1846f354d3d712.zip
Merge pull request #2367 from tananaev/implement_statistics
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>