Recognize a data trend

Hi,
We’re a data heavy company,
With multiple processes that processing and moving the data.
I want to monitor the data in a way of take a measurement and record it, for example, record the count of records each hour 24x7
And I want to recognize a trend for healthy data, for example, every monday, 7am to 4pm the average is 5600 new records / per hour , and then, intelligently, set a threshold of ± 10% for alerting

My question is if that’s possible?

I hope I’ve explained myself

Thanks a lot