Alerting on rolling energy usage in IotaWatt by time period

I am trying to use Home Assistant, integrated with IotaWatt, to alert me when certain sensors draw more or less power than expected in a given time frame. For example, alert me when the well has drawn more than 36 Wh in the past 30 minutes. Has anyone had any success with something like this?