Software /
code /
prosody
Changeset
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 |
parents | 10884:6992c4be1a19 |
children | 10886:994c4a333199 |
files | core/moduleapi.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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)