Fdans has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/344114 )
Change subject: Add legacy pageviews metric
......................................................................
Add legacy pageviews metric
Adds a new metric in the dashiki configuration so that we can
generate dashboards using the new legacy pageviews endpoint in
AQS. Additionally, it adds a new deployment configuration to
build the dashboard in production.
Bug: T143906
Change-Id: I4f6afafca37968dc2845decac537c10e8617ee23
---
M config.yaml
M src/app/config.js
2 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/analytics/dashiki
refs/changes/14/344114/1
diff --git a/config.yaml b/config.yaml
index 0248e17..3edffef 100644
--- a/config.yaml
+++ b/config.yaml
@@ -16,6 +16,14 @@
hostname: vital-signs.wmflabs.org
subfolder:
+ report-card:
+ layout: metrics-by-project
+ config: Dashiki:ReportCard
+ piwikHost: piwik.wikimedia.org
+ piwikId: 8
+ hostname: vital-signs.wmflabs.org
+ subfolder:
+
edit-analysis:
layout: compare
config: Dashiki:VisualEditorAndWikitext
diff --git a/src/app/config.js b/src/app/config.js
index bc78749..ab999f0 100644
--- a/src/app/config.js
+++ b/src/app/config.js
@@ -70,6 +70,23 @@
breakdownParameter: 'access',
dataStart: '2015010100'
},
+ 'LegacyPageviews': {
+ endpoint: 'getAggregatedLegacyPageviews',
+ valueField: 'views',
+ dateFormat: {
+ 'hourly': 'YYYYMMDDHH',
+ 'daily': 'YYYYMMDD00',
+ 'monthly': 'YYYYMM0100'
+ },
+ breakdownOptions: {
+ 'All': 'all-access',
+ 'Desktop site': 'desktop',
+ 'Mobile site': 'mobile-web',
+ 'Mobile App': 'mobile-app'
+ },
+ breakdownParameter: 'access',
+ dataStart: '2007120918'
+ },
// these two metrics come from the same place
// just granularity is different and that is configured on metric
itself
'UniqueDevices': uniqueDevicesConfig,
--
To view, visit https://gerrit.wikimedia.org/r/344114
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f6afafca37968dc2845decac537c10e8617ee23
Gerrit-PatchSet: 1
Gerrit-Project: analytics/dashiki
Gerrit-Branch: master
Gerrit-Owner: Fdans <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits