Alerting over time

Does the current alerting support something like this? If not, would it be easy to add or develop?

“if we breach x more than y time over a period of the last z minutes, then alert.”

anyone have a fix or any idea how i can accomplish this ?