Index: trunk/extensions/MetricsReporting/MetricsReporting.php |
— | — | @@ -30,5 +30,29 @@ |
31 | 31 | |
32 | 32 | $metricsDir = $dir . 'metrics/'; |
33 | 33 | |
| 34 | +$wgAutoloadClasses['ComScoreReachPercentageMetric'] = $metricsDir . 'ComScoreReachPercentageMetric.php'; |
| 35 | +$wgMetricAPIModules['comscorereachpercentage'] = 'ComScoreReachPercentageMetric'; |
| 36 | + |
34 | 37 | $wgAutoloadClasses['ComScoreUniqueVisitorMetric'] = $metricsDir . 'ComScoreUniqueVisitorMetric.php'; |
35 | 38 | $wgMetricAPIModules['comscoreuniquevisitors'] = 'ComScoreUniqueVisitorMetric'; |
| 39 | + |
| 40 | +$wgAutoloadClasses['DumpActiveEditors100Metric'] = $metricsDir . 'DumpActiveEditors100Metric.php'; |
| 41 | +$wgMetricAPIModules['dumpactiveeditors100'] = 'DumpActiveEditors100Metric'; |
| 42 | + |
| 43 | +$wgAutoloadClasses['DumpActiveEditors15Metric'] = $metricsDir . 'DumpActiveEditors15Metric.php'; |
| 44 | +$wgMetricAPIModules['dumpactiveeditors15'] = 'DumpActiveEditors15Metric'; |
| 45 | + |
| 46 | +$wgAutoloadClasses['DumpArticleCountMetric'] = $metricsDir . 'DumpArticleCountMetric.php'; |
| 47 | +$wgMetricAPIModules['dumparticlecount'] = 'DumpArticleCountMetric'; |
| 48 | + |
| 49 | +$wgAutoloadClasses['DumpBinaryCountMetric'] = $metricsDir . 'DumpBinaryCountMetric.php'; |
| 50 | +$wgMetricAPIModules['dumpbinarycount'] = 'DumpBinaryCountMetric'; |
| 51 | + |
| 52 | +$wgAutoloadClasses['DumpEditsMetric'] = $metricsDir . 'DumpEditsMetric.php'; |
| 53 | +$wgMetricAPIModules['dumpedits'] = 'DumpEditsMetric'; |
| 54 | + |
| 55 | +$wgAutoloadClasses['DumpNewRegisteredEditorsMetric'] = $metricsDir . 'DumpNewRegisteredEditorsMetric.php'; |
| 56 | +$wgMetricAPIModules['dumpnewregisterededitors'] = 'DumpNewRegisteredEditorsMetric'; |
| 57 | + |
| 58 | +$wgAutoloadClasses['SquidPageViewsMetric'] = $metricsDir . 'SquidPageViewsMetric.php'; |
| 59 | +$wgMetricAPIModules['squidpageviews'] = 'SquidPageViewsMetric'; |
Index: trunk/extensions/MetricsReporting/metrics/DumpNewRegisteredEditorsMetric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpNewRegisteredEditorsMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All registered editors that in a certain month for the first time crossed the threshold of 10 edits since signing up'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpNewRegisteredEditorsMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/ComScoreReachPercentageMetric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class ComScoreReachPercentageMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectregions', |
| 9 | + 'selectcountries', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'Percentage of total unique visitors to any web property which also visited a Wikimedia wiki'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/ComScoreReachPercentageMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/DumpActiveEditors100Metric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpActiveEditors100Metric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All registered editors that made 100 or more edits in a certain month'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpActiveEditors100Metric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/DumpEditsMetric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpEditsMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All edits on articles (as defined by dumparticlecount)'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpEditsMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/DumpActiveEditors5Metric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpActiveEditors15Metric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All registered editors that made 5 or more edits in a certain month'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpActiveEditors5Metric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/SquidPageViewsMetric.php |
— | — | @@ -0,0 +1,20 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class SquidPageViewsMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + ); |
| 9 | + } |
| 10 | + |
| 11 | + public function getDescription() { |
| 12 | + return array( |
| 13 | + 'Total articles (htm component) requested from nearly all Wikimedia wikis (exceptions are mostly special purpose wikis, e.g. wikimania wikis)', |
| 14 | + 'Totals are based on the archived 1:1000 sampled squid logs.', |
| 15 | + ); |
| 16 | + } |
| 17 | + |
| 18 | + public function getVersion() { |
| 19 | + return __CLASS__ . ': $Id$'; |
| 20 | + } |
| 21 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/SquidPageViewsMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 22 | + native |
Added: svn:keywords |
2 | 23 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/DumpArticleCountMetric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpArticleCountMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All namespace 0 pages which contain an internal link minus redirect pages (for some projects extra namespaces qualify)'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpArticleCountMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |
Index: trunk/extensions/MetricsReporting/metrics/DumpBinaryCountMetric.php |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class DumpBinaryCountMetric extends ApiAnalyticsBase { |
| 5 | + |
| 6 | + public function getAllowedFilters() { |
| 7 | + return array( |
| 8 | + 'selectprojects', |
| 9 | + 'selectwikis', |
| 10 | + ); |
| 11 | + } |
| 12 | + |
| 13 | + public function getDescription() { |
| 14 | + return 'All binary files (nearly all of which are multimedia files) available for download/article inclusion on a wiki'; |
| 15 | + } |
| 16 | + |
| 17 | + public function getVersion() { |
| 18 | + return __CLASS__ . ': $Id$'; |
| 19 | + } |
| 20 | +} |
Property changes on: trunk/extensions/MetricsReporting/metrics/DumpBinaryCountMetric.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 21 | + native |
Added: svn:keywords |
2 | 22 | + Id |