Skip to content

Commit 1744e44

Browse files
committed
muteUnitl and tags omitempty
1 parent e3cd89c commit 1744e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: client_alert.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ type Schedule struct {
204204

205205
type AlertConfiguration struct {
206206
Condition string `json:"condition"`
207-
MuteUntil int64 `json:"muteUntil"`
207+
MuteUntil int64 `json:"muteUntil,omitempty"`
208208
NotificationList []*Notification `json:"notificationList"`
209209
NotifyThreshold int32 `json:"notifyThreshold"`
210210
Throttling string `json:"throttling"`
@@ -229,7 +229,7 @@ type AlertConfiguration struct {
229229
PolicyConfiguration PolicyConfiguration `json:"policyConfiguration"`
230230
AutoAnnotation bool `json:"autoAnnotation"`
231231

232-
Tags []string `json:"tags"`
232+
Tags []string `json:"tags,omitempty"`
233233
}
234234

235235
func (c *Client) CreateSavedSearch(project string, savedSearch *SavedSearch) error {

0 commit comments

Comments
 (0)