icinga

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

commit 001c466e0421fdbaa864cc31ba288f60dc37068a
parent 34e59742782b07bf5a86b722b247eeb368e7f013
Author: Oliver Lowe <o@olowe.co>
Date:   Sat, 11 Mar 2023 17:34:16 +1100

Store notes and notes_url object attributes

Used to document, explain stuff. Useful!

Diffstat:
Mhost.go | 2++
Mservice.go | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/host.go b/host.go @@ -20,6 +20,8 @@ type Host struct { LastCheck time.Time `json:",omitempty"` LastCheckResult CheckResult `json:"last_check_result,omitempty"` Acknowledgement bool `json:",omitempty"` + Notes string `json:"notes,omitempty"` + NotesURL string `json:"notes_url,omitempty"` } type HostGroup struct { diff --git a/service.go b/service.go @@ -25,6 +25,8 @@ type Service struct { LastCheck time.Time `json:",omitempty"` LastCheckResult CheckResult `json:"last_check_result,omitempty"` Acknowledgement bool `json:",omitempty"` + Notes string `json:"notes,omitempty"` + NotesURL string `json:"notes_url,omitempty"` } type CheckResult struct {