Ricevere notifiche di admin dai log?

Ho ottenuto questa query di esplorazione dati che ho aggiunto come report che consente il controllo ma non invia una notifica “push” quando c’è un aggiornamento.

SELECT 
    uh.action,
    acting.username AS acting_user,
    target.username AS target_user,
    uh.updated_at
FROM user_histories uh
LEFT JOIN users acting ON acting.id = uh.acting_user_id
LEFT JOIN users target ON target.id = uh.target_user_id
WHERE uh.action = 88
  AND uh.updated_at > CURRENT_DATE - INTERVAL '7 days'
ORDER BY uh.updated_at DESC
LIMIT 100