Skip to content

Commit

Permalink
Store item errors
Browse files Browse the repository at this point in the history
Allow access to the read-only error field which is populated with
update errors.

Signed-off-by: Georg Pfuetzenreuter <[email protected]>
  • Loading branch information
tacerus committed Feb 20, 2025
1 parent 8650f47 commit 99be355
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions item.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package zabbix
//
// See: https://www.zabbix.com/documentation/4.0/manual/api/reference/item/object
type Item struct {
// Error is the error text indicating any problems with updating the item.
Error string `json:"error,omitempty"`

// HostID is the unique ID of the Host.
HostID string `json:"hostid,omitempty"`

Expand Down

0 comments on commit 99be355

Please sign in to comment.