Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3258:85e3117b2b60
mod_pubsub_github/README: Note that it might work with Gitlab as well
Guess based on looking at this documentation:
https://developer.github.com/v3/activity/events/types/#pushevent
https://docs.gitlab.com/ee/system_hooks/system_hooks.html#push-events
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Aug 2018 16:28:48 +0200 |
parents | 4557ac5c205d |
children |
line wrap: on
line source
-- Provides total CPU time, useful for DERIVE module:set_global(); module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used get = function() return os.clock() * 1000; end } } });