Skip to content

Commit

Permalink
fix annotation queries
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Jan 14, 2020
1 parent a7a72f5 commit fcfb237
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions pkg/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,25 @@ type ZabbixAPIParams struct {
Password string `json:"password,omitempty"`

// Item GET
WebItems bool `json:"webitems,omitempty"`
SelectHosts []string `json:"selectHosts,omitempty"`
ItemIDs []string `json:"itemids,omitempty"`
GroupIDs []string `json:"groupids,omitempty"`
HostIDs []string `json:"hostids,omitempty"`
AppIDs []string `json:"applicationids,omitempty"`
WebItems bool `json:"webitems,omitempty"`
SelectHosts interface{} `json:"selectHosts,omitempty"`
ItemIDs []string `json:"itemids,omitempty"`
GroupIDs []string `json:"groupids,omitempty"`
HostIDs []string `json:"hostids,omitempty"`
AppIDs []string `json:"applicationids,omitempty"`

// event.get
SelectAcknowledges interface{} `json:"select_acknowledges,omitempty"`
ObjectIDs []string `json:"objectids,omitempty"`
Value interface{} `json:"value,omitempty"`

// trigger.get
ExpandDescription bool `json:"expandDescription,omitempty"`
ExpandData bool `json:"expandData,omitempty"`
ExpandComment bool `json:"expandComment,omitempty"`
Monitored bool `json:"monitored,omitempty"`
SkipDependent bool `json:"skipDependent,omitempty"`
SelectLastEvent interface{} `json:"selectLastEvent,omitempty"`

// Host Group GET
RealHosts bool `json:"real_hosts,omitempty"`
Expand Down

0 comments on commit fcfb237

Please sign in to comment.