Found this content helpful? Log in or sign up to leave a like!
Calculation of the "Total Activity" for students
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone knows how the total activity is calculated for students. Since it's not clear where these numbers are coming from. Preferably if there's a way to calculate them using the data available in the database.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@guo848, the script that downloads the report for the entire class still works, even though it's been out there for a long time. Thankfully, some things in Canvas move slowly.
While the access report is not available through the API, the total activity and last activity numbers are available through the Enrollments API or through GraphQL. Like most things, it is a snapshot at the current time and the numbers are really more helpful if you do daily or weekly recording that allow tracking of it (that allows you to determine that yes, they spent 4 hours in the course but it was all in the first week and they haven't done anything since March 28).
That total activity time and last activity timestamp information is also available in Canvas Data 2 in the enrollments table.
The information in the user access report is not available through the API, Canvas Data 2, or any publicly exposed endpoint. I use Canvas Live Events to send the information to an AWS SQS Queue that I then query and retrieve and can analyze. That's about as close as you can get outside of the built-in user access report. Canvas Live Events is not 100% reliable -- if there's a network issue or server congestion, then the notifications may not get delivered.