aboutsummaryrefslogtreecommitdiff
path: root/www/status.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/status.php')
-rw-r--r--www/status.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/status.php b/www/status.php
new file mode 100644
index 0000000..3bc52cf
--- /dev/null
+++ b/www/status.php
@@ -0,0 +1,18 @@
+<?php
+namespace phinde;
+require 'www-header.php';
+
+$es = new Elasticsearch($GLOBALS['phinde']['elasticsearch']);
+$esDocs = $es->countDocuments();
+
+$queue = new Queue();
+$gearStatus = $queue->getServerStatus();
+
+render(
+ 'status',
+ array(
+ 'esDocs' => $esDocs,
+ 'gearStatus' => $gearStatus,
+ )
+);
+?>