alert on high pps bps

Hi,
we need a script that use Torch and email us when src ip → dst ip hasmore than X pps or bps and email us src/dst ip with pps and bps,
can anyone help?
thanks,