Helper for tracking accesses of Lua functions.
More...
|
| | __construct ( $statsFactory, $siteId, $siteGroup, $trackLuaFunctionCallsPerSiteGroup, $trackLuaFunctionCallsPerWiki, $sampleRate) |
| |
| | incrementKey ( $key, $module) |
| | Prefix and increment the given statsd key.
|
| |
Helper for tracking accesses of Lua functions.
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::__construct |
( |
| $statsFactory, |
|
|
| $siteId, |
|
|
| $siteGroup, |
|
|
| $trackLuaFunctionCallsPerSiteGroup, |
|
|
| $trackLuaFunctionCallsPerWiki, |
|
|
| $sampleRate ) |
- Parameters
-
| StatsFactory | $statsFactory | |
| string | $siteId | |
| string | $siteGroup | |
| bool | $trackLuaFunctionCallsPerSiteGroup | |
| bool | $trackLuaFunctionCallsPerWiki | |
| float | $sampleRate | A number in the range of [0, 1], representing the fraction of counter increments that will be reported from Lua. |
◆ getPrefixedKeys()
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::getPrefixedKeys |
( |
| $key, |
|
|
| $module ) |
|
private |
- Parameters
-
- Returns
- string[]
◆ incrementKey()
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::incrementKey |
( |
| $key, |
|
|
| $module ) |
Prefix and increment the given statsd key.
- Parameters
-
◆ $sampleRate
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$sampleRate |
|
private |
◆ $siteGroup
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$siteGroup |
|
private |
◆ $siteId
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$siteId |
|
private |
◆ $statsFactory
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$statsFactory |
|
private |
◆ $trackLuaFunctionCallsPerSiteGroup
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$trackLuaFunctionCallsPerSiteGroup |
|
private |
◆ $trackLuaFunctionCallsPerWiki
| Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$trackLuaFunctionCallsPerWiki |
|
private |
The documentation for this class was generated from the following file: