Running Synapse Admin Stats with Clojure project
- Clone the Synapse Admin Clojure project from GitHub.
- Make sure Leiningen is installed.
Open up a Repl session:
$> lein repl
You can then paste the contents of run.clj into the session, making sure to login via the UI widget with a synapse administrator account
(require 'synapse-admin.core) (require 'synapse-admin.client) (require 'synapse-admin.gui) ; login with a Synapse administrator account (synapse-admin.gui/-main)
Then execute the calculation of the metrics
; calculate stats (def results (synapse-admin.core/collect-stats synapse-admin.gui/*synapse-client*)) results