Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4151906
statsv.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
statsv.js
View Options
/**
* Creates an instance of the statsv change listener.
*
* The listener will log events to StatsD via the [the "StatsD timers and
* counters" analytics event protocol][0].
*
* [0]: https://github.com/wikimedia/mediawiki-extensions-WikimediaEvents/blob/29c864a0/modules/ext.wikimediaEvents.statsd.js
*
* @param {Object} boundActions
* @param {EventTracker} track
* @return {ext.popups.ChangeListener}
*/
export
default
function
statsv
(
boundActions
,
track
)
{
return
(
oldState
,
newState
)
=>
{
const
statsvObj
=
newState
.
statsv
;
if
(
statsvObj
.
action
)
{
track
(
statsvObj
.
action
,
statsvObj
.
data
);
boundActions
.
statsvLogged
();
}
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 19 2026, 20:09 (7 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
18/d2/dad334cbef61c0521a9d8afd7e43
Default Alt Text
statsv.js (663 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment