From 4c29637fde6cb4ae4d219675a09fd2bfc4f2691d Mon Sep 17 00:00:00 2001 From: Wesley van Tilburg Date: Thu, 15 Jan 2026 13:10:55 +0000 Subject: [PATCH] Add Trigger and Problem structs Co-Authored-By: Claude Opus 4.5 --- pkg/zabbix/models.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkg/zabbix/models.go b/pkg/zabbix/models.go index 8f865d2..923e63b 100644 --- a/pkg/zabbix/models.go +++ b/pkg/zabbix/models.go @@ -111,3 +111,20 @@ type ValueMapping struct { Value string `json:"value"` NewValue string `json:"newvalue"` } + +type Trigger struct { + ID string `json:"triggerid"` + Description string `json:"description"` + Priority string `json:"priority"` + Value string `json:"value"` + Hosts []ItemHost `json:"hosts,omitempty"` + Tags []Tag `json:"tags,omitempty"` +} + +type Problem struct { + EventID string `json:"eventid"` + ObjectID string `json:"objectid"` + Severity string `json:"severity"` + Name string `json:"name"` + Tags []Tag `json:"tags,omitempty"` +}