Add Trigger and Problem structs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Wesley van Tilburg
2026-01-15 13:10:55 +00:00
parent f8ac3d7025
commit 4c29637fde

View File

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