Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3566567
D14043.id46043.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
827 B
Referenced Files
None
Subscribers
None
D14043.id46043.diff
View Options
diff --git a/keyserver/src/cron/metrics.js b/keyserver/src/cron/metrics.js
--- a/keyserver/src/cron/metrics.js
+++ b/keyserver/src/cron/metrics.js
@@ -21,6 +21,7 @@
const thirtyDaysAgo = Date.now() - millisecondsPerDay * 30;
const [
dailyActives,
+ weeklyActives,
monthlyActives,
lastDayOneWeekRetention,
lastDayTwoWeekRetention,
@@ -32,6 +33,7 @@
monthlyUniqueMessageAuthors,
] = await Promise.all([
getActiveCountSince(oneDayAgo),
+ getActiveCountSince(oneWeekAgo),
getActiveCountSince(thirtyDaysAgo),
getRetention(7, 6, 1),
getRetention(14, 13, 1),
@@ -45,6 +47,7 @@
const metrics = {
'DAUs': dailyActives,
+ 'WAUs': weeklyActives,
'MAUs': monthlyActives,
'D7 (daily)': lastDayOneWeekRetention,
'D14 (daily)': lastDayTwoWeekRetention,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 7:29 PM (8 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2714823
Default Alt Text
D14043.id46043.diff (827 B)
Attached To
Mode
D14043: [keyserver] Introduce metric for weekly active users
Attached
Detach File
Event Timeline
Log In to Comment