I would like to be notified when students post in Discussions.
This is can be accomplished by setting your notification preferences within Canvas (How do I set my Canvas notification preferences as an instructor? ). If you allow you students to create their own discussion posts you may need to subscribe to the discussion in order to receive notification from those (How do I subscribe to a discussion as an instructor? )
Retrieving data ...