Skip to content

Commit

Permalink
Merge pull request #4 from elastic-infra/fix/trigger_omitempty
Browse files Browse the repository at this point in the history
Allow omit if no changes are made on update.
  • Loading branch information
hkobayash authored Feb 29, 2024
2 parents ca6e1c9 + b7e2556 commit 5a46672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ type TriggerFunctions []TriggerFunction
// https://www.zabbix.com/documentation/3.2/manual/api/reference/trigger/object
type Trigger struct {
TriggerID string `json:"triggerid,omitempty"`
Description string `json:"description"`
Expression string `json:"expression"`
Description string `json:"description,omitempty"`
Expression string `json:"expression,omitempty"`
Comments string `json:"comments"`
//TemplateId string `json:"templateid"`
//Value ValueType `json:""`
Expand Down

0 comments on commit 5a46672

Please sign in to comment.