Software /
code /
prosody
Diff
core/moduleapi.lua @ 10885:2f751880767c
core.moduleapi: Allow passing a config table trough :measure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Jan 2019 07:00:45 +0100 |
parent | 10706:0230ceecb8a9 |
child | 11146:87d6f5924ae9 |
line wrap: on
line diff
--- a/core/moduleapi.lua Fri Jan 04 07:00:44 2019 +0100 +++ b/core/moduleapi.lua Fri Jan 04 07:00:45 2019 +0100 @@ -508,9 +508,9 @@ return require"core.storagemanager".open(self.host, name or self.name, store_type); end -function api:measure(name, stat_type) +function api:measure(name, stat_type, conf) local measure = require "core.statsmanager".measure; - return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name); + return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name, conf); end function api:measure_object_event(events_object, event_name, stat_name)