Skip to content

Commit

Permalink
Merge pull request #10 from tikfj/master
Browse files Browse the repository at this point in the history
Change InventoryMode type
  • Loading branch information
user340 committed Oct 18, 2023
2 parents 0dee953 + 29ba0f0 commit 740e1fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion host.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package zabbix

import (
"encoding/json"
)

const (
// HostSourceDefault indicates that a Host was created in the normal way.
HostSourceDefault = 0
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 740e1fd

Please sign in to comment.