Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Event Monitor specification

From MoodleDocs

The Event Monitor tool will allow users choose their favourites events and receive notifications in real time when the choosen event is happening in the frequency and time.

Usage scenarios

  • Send message to teacher when more than X posts in any forum in their course in Y minutes.
  • Send message to teacher when assignment is submitted in their course.
  • Send message to admin when a course is deleted.
  • Send message to student when they are graded for activity X.
  • Send message to teacher when more than X posts in any forum in their course in Y minutes.
  • Send message to teacher for every assignment submitted in their course.
  • Send message to admin when a course is deleted.
  • Send message to student when they are graded for activity X.

User interface mock-ups

listrules.png This is the main page of Event Monitor, addrule.png

How it works

The tool observes acvitivity by capturing events in real time (and/or querying logs as necessary). A variety of trigger algorithms (with parameters and thresholds) are applied to the stream of data. The parameters may be modified by teachers and admins in their tool interface.

Example: a simple algorithm may be "Count the number of posts in a forum".  A parameter can be a time period "X min" with a threshold of "Y".

When any given activity passes the threshold, a message would be generated (with relevant link) and sent to the specified users as a message. The message can contain data from any fields that are used in the event using {tags}. The user may then receive the message on their mobile phone via the Moodle Mobile app.

Example: when there are more than 10 posts within 30 minutes on a forum, the teacher will get a notification containing a description of the activity and a link to the forum.

New algorithms can be implemented via forms, with all the contents determined by Event discovery, and then saved by user (private), by course (all teachers in site can see and edit them) or by site (all admins in site can see and edit them).

Impementation Details

See also