Add Trigger and Problem structs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,3 +111,20 @@ type ValueMapping struct {
|
|||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
NewValue string `json:"newvalue"`
|
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"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user