krustowski / tiny-monitor-api

API-first lightweight service-monitoring tool for docker (pre-release)
https://mon.n0p.cz
MIT License
1 stars 0 forks source link

Downtime per service/host #4

Open krustowski opened 3 years ago

krustowski commented 3 years ago

Implement downtime option to monitor_hosts and/or monitor_services sqlite3 table schema Define downtime option as UNIX timestamp and parse it against /etc/timezone

Downtime works only if defined:

if ($property->downtime) {
   // downtime is not null => skip test
   $this->status_message = "This service/host has downtime option set => skipping test.";
   $this->writeJSON(code: 200);
}