From fcfb23700404278348cb2003d829c4651aaf1062 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 14 Jan 2020 19:00:10 +0300 Subject: [PATCH] fix annotation queries --- pkg/models.go | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkg/models.go b/pkg/models.go index 95e62511e..5707672cb 100644 --- a/pkg/models.go +++ b/pkg/models.go @@ -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"`