Skip to content

Commit

Permalink
fix cannot unmarshall error
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesverdad committed Jun 10, 2020
1 parent a87912f commit 4ce6776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentryclient/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type RuleCondition struct {
ID string `json:"id"`
Name string `json:"name"`
Interval string `json:"interval"`
Value int `json:"value"`
Value int `json:"value,string"`
}

// RuleAction represents the actions will be taken for each rule based on its conditions.
Expand Down Expand Up @@ -83,7 +83,7 @@ type CreateRuleActionParams struct {
type CreateRuleConditionParams struct {
ID string `json:"id"`
Interval string `json:"interval"`
Value int `json:"value"`
Value int `json:"value,string"`
}

// Create a new alert rule bound to a project.
Expand Down

0 comments on commit 4ce6776

Please sign in to comment.