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"` +}