Extension:WikimediaEvents/Hooks/WikimediaEventsShouldSchemaEditAttemptStepOversample
Appearance
WikimediaEventsShouldSchemaEditAttemptStepOversample | |
---|---|
Available from version 1.35.0 (Gerrit change 550743) Decide whether oversampling should be enabled for the EditAttemptStep schema. |
|
Define function: | public static function onWikimediaEventsShouldSchemaEditAttemptStepOversample( IContextSource $context, bool &$shouldOversample ) { ... }
|
Attach hook: | $wgHooks['WikimediaEventsShouldSchemaEditAttemptStepOversample'][] = 'MyExtensionHooks::onWikimediaEventsShouldSchemaEditAttemptStepOversample';
|
Called from: | File(s): WikimediaEvents / includes/WikimediaEventsHooks.php Function(s): shouldSchemaEditAttemptStepOversample |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:WikimediaEventsShouldSchemaEditAttemptStepOversample extensions.
Parameters
[edit]$context
: An instance ofIContextSource
&$shouldOversample
: Abool
representing whether the current event should be logged with probability 1 (as opposed to the normal sampling probability).