Helper for tracking accesses of Lua functions.
More...
|
| __construct (StatsdDataFactoryInterface $statsdDataFactory, $siteId, $siteGroup, $trackLuaFunctionCallsPerSiteGroup, $trackLuaFunctionCallsPerWiki, $sampleRate) |
|
| incrementKey ( $key) |
| Prefix and increment the given statsd key. More...
|
|
Helper for tracking accesses of Lua functions.
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::__construct |
( |
StatsdDataFactoryInterface |
$statsdDataFactory, |
|
|
|
$siteId, |
|
|
|
$siteGroup, |
|
|
|
$trackLuaFunctionCallsPerSiteGroup, |
|
|
|
$trackLuaFunctionCallsPerWiki, |
|
|
|
$sampleRate |
|
) |
| |
- Parameters
-
StatsdDataFactoryInterface | $statsdDataFactory | |
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 | ) |
|
|
private |
- Parameters
-
- Returns
- string[]
◆ incrementKey()
Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::incrementKey |
( |
|
$key | ) |
|
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 |
◆ $statsdDataFactory
Wikibase\Client\DataAccess\Scribunto\LuaFunctionCallTracker::$statsdDataFactory |
|
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: