Skip to content

Commit

Permalink
Collect more user activity stats
Browse files Browse the repository at this point in the history
to give us a better view on how much OBS is used across weeks and months.

Co-Authored-By: Henne Vogelsang <hvogel@opensuse.org>
  • Loading branch information
bmwiedemann and hennevogel committed Feb 16, 2023
1 parent a6b58d3 commit a8b9e48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/app/jobs/daily_user_activity_measurement_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ def user_fields

def user_measures
{
seen: User.seen_since(1.day.ago).count
seen: User.seen_since(1.day.ago).count,
seen_week: User.seen_since(1.week.ago).count,
seen_month: User.seen_since(1.month.ago).count,
seen_quarter: User.seen_since(3.months.ago).count,
seen_year: User.seen_since(1.year.ago).count
}
end
end

0 comments on commit a8b9e48

Please sign in to comment.