First commit: Add connection struct and define History

This commit is contained in:
saul365
2025-08-21 17:57:43 -06:00
commit 010ee8a64e
4 changed files with 135 additions and 0 deletions

24
zabbix.go Normal file
View File

@@ -0,0 +1,24 @@
package zabbix
type Connection struct {
Host string
APIKey string
}
type commonGet struct {
CountOutput bool `json:"countOutput,omitempty"`
Editable bool `json:"editable,omitempty"`
ExcludeSearch bool `json:"excludeSearch,omitempty"`
Limit int `json:"limit,omitempty"`
Output string `json:"output,omitempty"`
PreserveKeys bool `json:"preserveKeys,omitempty"`
SearchByAny bool `json:"searchByAny,omitempty"`
SearchWildcardsEnabled bool `json:"searchWildcardsEnabled,omitempty"`
Sortorder string `json:"sortorder,omitempty"`
startSearch bool `json:"startSearch,omitempty"`
}