Response::result(array('status' => true, 'data' => $relay->mongo()->getServiceDiskusage()));
}, 'Total service diskusage (in MiB)'), array('GET', '/service/users/count/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->sql()->getGlobalUserCount()));
}, 'Total user count, plus count by affiliation/active'), array('GET', '/service/presentations/count/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->sql()->getGlobalPresentationCount()));
}, 'Total presentation count (inc. deleted)'), array('GET', '/service/presentations/employees/count/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->sql()->getGlobalEmployeePresentationCount()));
}, 'Total employee presentation count (inc. deleted)'), array('GET', '/service/presentations/students/count/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->sql()->getGlobalStudentPresentationCount()));
}, 'Total student presentation count (inc. deleted)'), array('GET', '/service/presentations/deleted/count/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => count($relay->presDelete()->getAllPresentationRecordsAdmin())));
}, 'Total deleted presentation count'), array('GET', '/service/presentations/hits/daily/all/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->presHits()->getDailyHitsAll()));
}, 'Complete history of daily hits'), array('GET', '/service/presentations/hits/daily/year/[i:year]/', function ($year) {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->presHits()->getDailyHitsByYear($year)));
}, 'History of daily hits for a given year'), array('GET', '/service/presentations/hits/daily/days/[i:days]/', function ($days) {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->presHits()->getDailyHitsByDays($days)));
}, 'History of daily hits for the last given number of days'), array('GET', '/service/presentations/hits/orgs/total/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->presHits()->getOrgsTotalHitsAnonymised()));
}, 'Hits distributed by orgs, but anonymised'), array('GET', '/service/presentations/hits/total/', function () {
    global $relay;
    Response::result(array('status' => true, 'data' => $relay->presHits()->getTotalHits()));