RJMetrics/Server-Stats — pull request #2 by paulosuzart (2012-04-12 19:19:47+00:00)
Title: Mute alerts for some period

While some alerts may costs nothing, some do. Adding :mute-for to an alert makes it muted for at least :mute-for since the last activation.

I am, in particular, using server-stats through cron. So, a web server is checked every 5 minutes. If I take more than 5 minutes to fix the problem (ex.: at night) my mailbox would be full of alerts. If I pay by alert sent (sms for example) I will be paying without need.

This key in alert map of a cmd controls alert muting using empty files and checking their `lastModified' property.

It is useful for me, perhaps useful for someone else.

Thanks.

Note: The last pull req had a mistalke. The `alert?` wasn't seting last modified for control files.