Event monitoring

Course reports



Contents


What is event monitoring?

http://youtu.be/YkuK2w1lJnk


Enabling event monitoring

Event monitoring is disabled by default because of performance issues. An administrator can enable it from Site administration > Reports > Event monitoring rules.


How to create or manage a rule

As a course teacher, go to Course administration > Reports > Event monitoring rules, or as an admin go to Site administration > Reports > Event monitoring rules.


Rule name

We can call the rule what you like but it should be something others will understand as they may wish to subscribe to the rule you created.


Area to monitor

When you select an area to monitor, for example, Forum, the 'Event' drop down menu below will then display the events we can select from.


Event

Once an area has been chosen, the events for that area will display here.


Description

We don't have to use a description but if you do, it should be something meaningful to others as they may wish to subscribe to the rule you created.


Notification threshold


Notification message

When creating or editing a rule, we can embed placeholders to add details to notification messages. The use of placeholders is optional; we can use any personalised message, but if you wish to use placeholders, there are examples of use below:

The placeholders that can be used in a message template are as follows:

Placeholder What it does Example
{link} Direct link to the actual event, eg a forum discussion. http://YourMoodle.com/mod/forum/discuss.php?d=2
{modulelink} Link to the module where the event has happened, eg a forum http://YourMoodle.com/mod/forum/view.php?id=8
{rulename} A name for the rule. Student discussions
{description} A description of the rule. I want to receive notifications when there is a large volume of student posts in a discussion.
{eventname} The name of the event being monitored. Forum post created.

Example 1

The above example shows the placeholders for a rule to monitor the Forum post created event. The notification message using these placeholders would be as follows:

The rule {rulename}, monitoring the event {eventname}, has just been fulfilled. 
Click the following link to go to the forum discussion: {link}
Rule description: {description}

The result would display like this:

The rule Student discussions, monitoring the event Forum post created, has just been fulfilled. 
Click on the following link to go to the forum discussion: http://YourMoodle.com/mod/forum/discuss.php?d=2 .
Rule description: I want to receive notifications when there are a large volume of student posts in a discussion.

Example 2

Let's create a rule called Glossary entries to monitor when a new glossary entry is created:

The rule {rulename}, monitoring the event {eventname}, has just been fulfilled. 
Click the following link to go to see the new entry created: {link}
Rule description: {description}

The result would display like this:

The rule Glossary entries, monitoring the event Entry has been created, has just been fulfilled. 
Click on the following link to go to see the new entry created: http://YourMoodle.com/mod/glossary/view.php?id=5&mode=entry&hook=1.
Rule description: I want to receive notifications when a new glossary entry is created.

Note: Some events do not have a link. Course deleted and Course module deleted for example, would not display any link if {link} or {modulelink} is used.


How to subscribe to a rule


See also