Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
fix: fix custom unmarshaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrombley committed Dec 4, 2019
1 parent 7e8b327 commit 4775006
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func (t *AlertConditionTerm) UnmarshalJSON(data []byte) error {
}

t.Threshold = threshold
t.Duration = aux.Duration
t.Operator = aux.Operator
t.Priority = aux.Priority
t.TimeFunction = aux.TimeFunction

return nil
}
Expand Down

0 comments on commit 4775006

Please sign in to comment.