Alarming based on run hours

I'm trying to set an alarm based on runtime hours for maintence reason. For example I want to send an alarm after a compressor has ran for 200 hours to change an oil filter. What is the best way to accomplish this?

  1. Are you reading a run hours counter from the compressor or do you only have the "Run" status bit?
  2. Where are you storing the history and how will you reset the hour meter?

I think you need to think this out a bit more and provide the relevant detail.