Skip to content

Commit 49a7f55

Browse files
change type from time.Duration to int
1 parent b3a3c20 commit 49a7f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alerting_alert_rule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const (
5858

5959
// RelativeTimeRange represents the time range for an alert query.
6060
type RelativeTimeRange struct {
61-
From time.Duration `json:"from"`
62-
To time.Duration `json:"to"`
61+
From int64 `json:"from"`
62+
To int64 `json:"to"`
6363
}
6464

6565
// AlertRule fetches a single alert rule, identified by its UID.

0 commit comments

Comments
 (0)