Document toolboxDocument toolbox

Running Synapse Admin Stats with Clojure project

  1. Clone the Synapse Admin Clojure project from GitHub.
  2. Make sure Leiningen is installed.
  3. Open up a Repl session:

    $> lein repl
  4. 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)
  5. Then execute the calculation of the metrics

    ; calculate stats
    (def results (synapse-admin.core/collect-stats synapse-admin.gui/*synapse-client*))
    results