icinga

Icinga2 API client in Go
git clone https://git.olowe.co/icinga
Log | Files | Refs | README | LICENSE

commit 34e59742782b07bf5a86b722b247eeb368e7f013
parent 8b3445266f32f04c7bd46718dd5948a6e1543f27
Author: Oliver Lowe <o@olowe.co>
Date:   Wed,  8 Mar 2023 20:13:02 +1100

delete experimental object watcher

Diffstat:
Mchecker.go | 18------------------
1 file changed, 0 insertions(+), 18 deletions(-)

diff --git a/checker.go b/checker.go @@ -124,21 +124,3 @@ func scheduleCheck(c *Client, filter checkFilter) error { } return fmt.Errorf("%s", resp.Status) } - -func nextCheck(objects []checker) time.Time { - soonest := time.Time{} - for _, obj := range objects { - next := time.Time{} - switch obj.(type); obj { - case Host, Service: - next = obj.NextCheck - } - if soonest.IsZero() { - soonest = next - } - if next.Before(soonest) { - soonest = next - } - } - return soonest -}