Http ddos log

How can I make it so that when I receive an HTTP DDoS attack, I can send a notification to a specific webhook indicating how many gigabytes were incoming and the duration of the attack?

Notification method (email, webhook, pagerduty) is determined by plan type as described here