Extension:WikimediaEvents/Hooks/WikimediaEventsShouldSchemaEditAttemptStepOversample

Category:Extension hooks#WikimediaEventsShouldSchemaEditAttemptStepOversample
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): Category:Extension hooks provided by WikimediaEventsWikimediaEvents / 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

  • $context: An instance of IContextSource
  • &$shouldOversample: A bool representing whether the current event should be logged with probability 1 (as opposed to the normal sampling probability).
Category:Extension hooks Category:Extension hooks provided by WikimediaEvents