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:
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 {