Versions in this module Expand all Collapse all v0 v0.17.1 Jul 23, 2026 Changes in this version type Template + TemplateGroups HostGroupIDs v0.17.0 Jul 10, 2026 Changes in this version + const GraphAxisCalculated + const GraphAxisFixed + const GraphAxisItem + const GraphExploded + const GraphItemAll + const GraphItemAvg + const GraphItemBold + const GraphItemDashed + const GraphItemDot + const GraphItemFilled + const GraphItemGradient + const GraphItemLast + const GraphItemLeft + const GraphItemLine + const GraphItemMax + const GraphItemMin + const GraphItemRight + const GraphItemSimple + const GraphItemSum + const GraphNormal + const GraphPie + const GraphStacked + const LLDAnd + const LLDAndOr + const LLDCustom + const LLDMatch + const LLDNotMatch + const LLDOr + type API struct + Auth string + Config Config + Logger *log.Logger + UserAgent string + func NewAPI(c Config) (api *API, err error) + func (api *API) ApplicationGetByHostIDAndName(hostID, name string) (res *Application, err error) + func (api *API) ApplicationGetByID(id string) (res *Application, err error) + func (api *API) ApplicationsCreate(apps Applications) (err error) + func (api *API) ApplicationsDelete(apps Applications) (err error) + func (api *API) ApplicationsDeleteByIds(ids []string) (err error) + func (api *API) ApplicationsGet(params Params) (res Applications, err error) + func (api *API) Call(method string, params interface{}) (response Response, err error) + func (api *API) CallWithError(method string, params interface{}) (response Response, err error) + func (api *API) CallWithErrorParse(method string, params interface{}, result interface{}) (err error) + func (api *API) GraphGetByID(id string) (res *Graph, err error) + func (api *API) GraphProtoGetByID(id string) (res *Graph, err error) + func (api *API) GraphProtosCreate(hostGroups Graphs) (err error) + func (api *API) GraphProtosDelete(hostGroups Graphs) (err error) + func (api *API) GraphProtosDeleteByIds(ids []string) (err error) + func (api *API) GraphProtosGet(params Params) (res Graphs, err error) + func (api *API) GraphProtosUpdate(hostGroups Graphs) (err error) + func (api *API) GraphsCreate(hostGroups Graphs) (err error) + func (api *API) GraphsDelete(hostGroups Graphs) (err error) + func (api *API) GraphsDeleteByIds(ids []string) (err error) + func (api *API) GraphsGet(params Params) (res Graphs, err error) + func (api *API) GraphsUpdate(hostGroups Graphs) (err error) + func (api *API) HostGetByHost(host string) (res *Host, err error) + func (api *API) HostGetByID(id string) (res *Host, err error) + func (api *API) HostGroupGetByID(id string) (res *HostGroup, err error) + func (api *API) HostGroupsCreate(hostGroups HostGroups) (err error) + func (api *API) HostGroupsDelete(hostGroups HostGroups) (err error) + func (api *API) HostGroupsDeleteByIds(ids []string) (err error) + func (api *API) HostGroupsGet(params Params) (res HostGroups, err error) + func (api *API) HostGroupsUpdate(hostGroups HostGroups) (err error) + func (api *API) HostsCreate(hosts Hosts) (err error) + func (api *API) HostsDelete(hosts Hosts) (err error) + func (api *API) HostsDeleteByIds(ids []string) (err error) + func (api *API) HostsGet(params Params) (res Hosts, err error) + func (api *API) HostsGetByHostGroupIds(ids []string) (res Hosts, err error) + func (api *API) HostsGetByHostGroups(hostGroups HostGroups) (res Hosts, err error) + func (api *API) HostsUpdate(hosts Hosts) (err error) + func (api *API) ItemGetByID(id string) (res *Item, err error) + func (api *API) ItemsCreate(items Items) (err error) + func (api *API) ItemsDelete(items Items) (err error) + func (api *API) ItemsDeleteByIds(ids []string) (err error) + func (api *API) ItemsDeleteIDs(ids []string) (itemids []interface{}, err error) + func (api *API) ItemsGet(params Params) (res Items, err error) + func (api *API) ItemsGetByApplicationID(id string) (res Items, err error) + func (api *API) ItemsUpdate(items Items) (err error) + func (api *API) LLDDeleteByIds(ids []string) (err error) + func (api *API) LLDDeleteIDs(ids []string) (itemids []interface{}, err error) + func (api *API) LLDGetByID(id string) (res *LLDRule, err error) + func (api *API) LLDsCreate(items LLDRules) (err error) + func (api *API) LLDsDelete(items LLDRules) (err error) + func (api *API) LLDsGet(params Params) (res LLDRules, err error) + func (api *API) LLDsUpdate(items LLDRules) (err error) + func (api *API) Login(user, password string) (auth string, err error) + func (api *API) MacroGetByID(id string) (res *Macro, err error) + func (api *API) MacrosCreate(macros Macros) error + func (api *API) MacrosDelete(macros Macros) (err error) + func (api *API) MacrosDeleteByIDs(ids []string) (err error) + func (api *API) MacrosGet(params Params) (res Macros, err error) + func (api *API) MacrosUpdate(macros Macros) (err error) + func (api *API) ProtoItemGetByID(id string) (res *Item, err error) + func (api *API) ProtoItemsCreate(items Items) (err error) + func (api *API) ProtoItemsDelete(items Items) (err error) + func (api *API) ProtoItemsDeleteByIds(ids []string) (err error) + func (api *API) ProtoItemsDeleteIDs(ids []string) (itemids []interface{}, err error) + func (api *API) ProtoItemsGet(params Params) (res Items, err error) + func (api *API) ProtoItemsGetByApplicationID(id string) (res Items, err error) + func (api *API) ProtoItemsUpdate(items Items) (err error) + func (api *API) ProtoTriggerGetByID(id string) (res *Trigger, err error) + func (api *API) ProtoTriggersCreate(triggers Triggers) (err error) + func (api *API) ProtoTriggersDelete(triggers Triggers) (err error) + func (api *API) ProtoTriggersDeleteByIds(ids []string) (err error) + func (api *API) ProtoTriggersDeleteIDs(ids []string) (triggerids []interface{}, err error) + func (api *API) ProtoTriggersGet(params Params) (res Triggers, err error) + func (api *API) ProtoTriggersUpdate(triggers Triggers) (err error) + func (api *API) ProxiesGet(params Params) (res Proxies, err error) + func (api *API) SetClient(c *http.Client) + func (api *API) TemplateGetByID(id string) (template *Template, err error) + func (api *API) TemplatesCreate(templates Templates) (err error) + func (api *API) TemplatesDelete(templates Templates) (err error) + func (api *API) TemplatesDeleteByIds(ids []string) (err error) + func (api *API) TemplatesGet(params Params) (res Templates, err error) + func (api *API) TemplatesUpdate(templates Templates) (err error) + func (api *API) TriggerGetByID(id string) (res *Trigger, err error) + func (api *API) TriggersCreate(triggers Triggers) (err error) + func (api *API) TriggersDelete(triggers Triggers) (err error) + func (api *API) TriggersDeleteByIds(ids []string) (err error) + func (api *API) TriggersDeleteIDs(ids []string) (triggerids []interface{}, err error) + func (api *API) TriggersGet(params Params) (res Triggers, err error) + func (api *API) TriggersUpdate(triggers Triggers) (err error) + func (api *API) Version() (v string, err error) + type Application struct + ApplicationID string + HostID string + Name string + TemplateID string + type Applications []Application + type AvailableType int + const Available + const Unavailable + const Unknown + type Config struct + Log *log.Logger + Serialize bool + TlsNoVerify bool + Url string + Version int + type DataType int + const Boolean + const Decimal + const Hexadecimal + const Octal + type DeltaType int + const AsIs + const Delta + const Speed + type Error struct + Code int + Data string + Message string + func (e *Error) Error() string + type ExpectedMore struct + Expected int + Got int + func (e *ExpectedMore) Error() string + type ExpectedOneResult int + func (e *ExpectedOneResult) Error() string + type Graph struct + GraphID string + GraphItems GraphItems + Height string + Name string + PercentLeft string + PercentRight string + Show3d string + ShowLegend string + ShowWorkPeriod string + Type GraphType + Width string + YMax string + YMaxItemId string + YMaxType GraphAxis + YMin string + YMinItemId string + YMinType GraphAxis + type GraphAxis string + type GraphItem struct + CalcFunc GraphItemFunc + Color string + DrawType GraphItemDraw + GItemID string + GraphID string + ItemID string + SortOrder string + Type GraphItemType + YAxisSide GraphItemSide + type GraphItemDraw string + type GraphItemFunc string + type GraphItemSide string + type GraphItemType string + type GraphItems []GraphItem + type GraphType string + type Graphs []Graph + type Host struct + Available AvailableType + Error string + GroupIds HostGroupIDs + Host string + HostID string + Interfaces HostInterfaces + Inventory Inventory + InventoryMode InventoryMode + Name string + ParentTemplateIDs TemplateIDs + ProxyID string + RawInventory json.RawMessage + RawInventoryMode *InventoryMode + Status StatusType + Tags Tags + TemplateIDs TemplateIDs + TemplateIDsClear TemplateIDs + UserMacros Macros + type HostGroup struct + GroupID string + Internal InternalType + Name string + type HostGroupID struct + GroupID string + type HostGroupIDs []HostGroupID + type HostGroups []HostGroup + type HostInterface struct + DNS string + Details *HostInterfaceDetail + IP string + InterfaceID string + Main string + Port string + RawDetails json.RawMessage + Type InterfaceType + UseIP string + type HostInterfaceDetail struct + AuthPassphrase string + AuthProtocol string + Bulk string + Community string + ContextName string + PrivPassphrase string + PrivProtocol string + SecurityLevel string + SecurityName string + Version string + type HostInterfaceDetails []HostInterfaceDetail + type HostInterfaces []HostInterface + type Hosts []Host + type HttpHeaders map[string]string + type InterfaceType string + const Agent + const IPMI + const JMX + const SNMP + type InternalType int + const Internal + const NotInternal + type Inventory map[string]string + type InventoryMode int + const InventoryAutomatic + const InventoryDisabled + const InventoryManual + type Item struct + Applications []string + AuthType string + DataType DataType + Delay string + Delta DeltaType + Description string + DiscoveryRule *LLDRule + Error string + FollowRedirects string + Headers HttpHeaders + History string + HostID string + InterfaceID string + ItemID string + ItemParent Hosts + Key string + MasterItemID string + Name string + Params string + Password string + PostType string + Posts string + Preprocessors Preprocessors + Proxy string + RawApplications json.RawMessage + RawHeaders json.RawMessage + RequestMethod string + RetrieveMode string + RuleID string + SNMPCommunity string + SNMPOid string + SNMPv3AuthPassphrase string + SNMPv3AuthProtocol string + SNMPv3ContextName string + SNMPv3PrivPasshrase string + SNMPv3PrivProtocol string + SNMPv3SecurityLevel string + SNMPv3SecurityName string + StatusCodes string + Tags Tags + Timeout string + TrapperHosts string + Trends string + Type ItemType + Url string + Username string + ValueType ValueType + VerifyHost string + VerifyPeer string + type ItemType int + const Calculated + const DatabaseMonitor + const Dependent + const ExternalCheck + const HTTPAgent + const IPMIAgent + const JMXAgent + const SNMPAgent + const SNMPTrap + const SNMPv1Agent + const SNMPv2Agent + const SNMPv3Agent + const SSHAgent + const SimpleCheck + const TELNETAgent + const WebItem + const ZabbixAgent + const ZabbixAgentActive + const ZabbixAggregate + const ZabbixInternal + const ZabbixTrapper + type Items []Item + func (items Items) ByKey() (res map[string]Item) + type LLDEvalType string + type LLDMacroPath struct + Macro string + Path string + type LLDMacroPaths []LLDMacroPath + type LLDOperatorType string + type LLDRule struct + AllowTraps string + AuthType string + Delay string + DelayFlex string + Description string + Error string + Filter LLDRuleFilter + FollowRedirects string + Headers HttpHeaders + HostID string + InterfaceID string + IpmiSensor string + ItemID string + Key string + LifeTime string + MacroPaths LLDMacroPaths + MasterItemID string + Name string + Params string + Password string + Port string + PostType string + Posts string + Preprocessors Preprocessors + PrivateKey string + Proxy string + PublicKey string + RawHeaders json.RawMessage + RequestMethod string + RetrieveMode string + SNMPCommunity string + SNMPOid string + SNMPv3AuthPassphrase string + SNMPv3AuthProtocol string + SNMPv3ContextName string + SNMPv3PrivPasshrase string + SNMPv3PrivProtocol string + SNMPv3SecurityLevel string + SNMPv3SecurityName string + Status string + StatusCodes string + Timeout string + TrapperHosts string + Type ItemType + Url string + Username string + VerifyHost string + VerifyPeer string + type LLDRuleFilter struct + Conditions LLDRuleFilterConditions + EvalFormula string + EvalType LLDEvalType + Formula string + type LLDRuleFilterCondition struct + FormulaID string + Macro string + Operator LLDOperatorType + Value string + type LLDRuleFilterConditions []LLDRuleFilterCondition + type LLDRules []LLDRule + type Macro struct + HostID string + MacroID string + MacroName string + Value string + type Macros []Macro + type Params map[string]interface + type Preprocessor struct + ErrorHandler string + ErrorHandlerParams string + Params string + Type string + type Preprocessors []Preprocessor + type Proxies []Proxy + type Proxy struct + Host string + ProxyID string + type RawResponse struct + Error *Error + ID int32 + Jsonrpc string + Result json.RawMessage + type Response struct + Error *Error + ID int32 + Jsonrpc string + Result interface{} + type SeverityType int + const Average + const Critical + const High + const Information + const NotClassified + const Warning + type StatusType int + const Disabled + const Enabled + const Monitored + const Unmonitored + type Tag struct + Tag string + Value string + type Tags []Tag + type Template struct + Description string + Groups HostGroupIDs + Host string + LinkedHosts []string + LinkedTemplates TemplateIDs + Name string + ParentTemplates TemplateIDs + TemplateID string + TemplatesClear TemplateIDs + UserMacros Macros + type TemplateID struct + TemplateID string + type TemplateIDs []TemplateID + type Templates []Template + type Trigger struct + Comments string + ContainedItems Items + CorrelationMode int + CorrelationTag string + Dependencies TriggerIDs + Description string + Expression string + Functions TriggerFunctions + ManualClose int + Opdata string + ParentHosts Hosts + Priority SeverityType + RecoveryExpression string + RecoveryMode int + Status StatusType + Tags Tags + TriggerID string + Type int + Url string + type TriggerFunction struct + Function string + FunctionID string + ItemID string + Parameter string + type TriggerFunctions []TriggerFunction + type TriggerID struct + TriggerID string + type TriggerIDs []TriggerID + type Triggers []Trigger + type ValueType int + const Character + const Float + const Log + const OK + const Problem + const Text + const Unsigned