From 29ba0f0d474d154567139e2e8979c6e270f76675 Mon Sep 17 00:00:00 2001 From: Taiki Fujiwara Date: Mon, 16 Oct 2023 11:55:35 +0900 Subject: [PATCH] Change InventoryMode type --- host.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/host.go b/host.go index 8a0993d..7f2e859 100644 --- a/host.go +++ b/host.go @@ -1,5 +1,9 @@ package zabbix +import ( + "encoding/json" +) + const ( // HostSourceDefault indicates that a Host was created in the normal way. HostSourceDefault = 0 @@ -81,7 +85,7 @@ type Host struct { Description string `json:"description"` // Inventory mode - InventoryMode int `json:"inventory_mode"` + InventoryMode json.Number `json:"inventory_mode"` // HostID of the proxy managing this host ProxyHostID string `json:"proxy_hostid"`