Skip to content

Commit 99be355

Browse files
committed
Store item errors
Allow access to the read-only error field which is populated with update errors. Signed-off-by: Georg Pfuetzenreuter <[email protected]>
1 parent 8650f47 commit 99be355

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

item.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ package zabbix
44
//
55
// See: https://www.zabbix.com/documentation/4.0/manual/api/reference/item/object
66
type Item struct {
7+
// Error is the error text indicating any problems with updating the item.
8+
Error string `json:"error,omitempty"`
9+
710
// HostID is the unique ID of the Host.
811
HostID string `json:"hostid,omitempty"`
912

0 commit comments

Comments
 (0)