Refactor: scheduler: best practices when collecting notification data
Rename collect_notification_data() to collect_resource_data(), make static,
add a doxygen block, drop an argument that was always TRUE, use bool instead of
gboolean, and improve variable names, comments, log messages, and formatting.