Added docs example for alerting depending on percentages

I've added a documentation example for alerting when events of a certain state go above a certain percentage in a given time period.

e.g. in the last 60 seconds there were over 50% sign_in warnings - sound the alarm