Skip to content

Commit ab63ae7

Browse files
committed
feat(deps): bump go-flashduty to v0.15.15
The alert event list endpoint now requires start_time and end_time with a span of at most 31 days. The SDK types them as int64, so alert-event list passes the parsed --since/--until window as plain values; it already always sent a window (default --since 1h --until now). Regenerated commands and cards pick up the other contract updates in the SDK release: --start-time/--end-time are required on the generated alert event list command; integration create/update gain --integration-key and --is-test; dashboard queries resolve gains --max-data-points and --preserve-builtin-variables; investigation targets document purpose and an optional query datasource_id; incident feed and integration response help reflect the typed fields.
1 parent 41f14ba commit ab63ae7

10 files changed

Lines changed: 164 additions & 87 deletions

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/flashcatcloud/flashduty-cli
33
go 1.26.0
44

55
require (
6-
github.com/flashcatcloud/go-flashduty v0.15.14
6+
github.com/flashcatcloud/go-flashduty v0.15.15
77
github.com/mattn/go-runewidth v0.0.30
88
github.com/spf13/cobra v1.10.2
99
github.com/spf13/pflag v1.0.10

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
22
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
4-
github.com/flashcatcloud/go-flashduty v0.15.14 h1:185WAkgahlRnLBk3jI6kYL2t8IoH5YtQ9Pd4ckEPRWM=
5-
github.com/flashcatcloud/go-flashduty v0.15.14/go.mod h1:YpHiTYXR5NXBI/rGRZfUy537XMkhdCkwA8NW1QoRHwk=
4+
github.com/flashcatcloud/go-flashduty v0.15.15 h1:jMgWfpuXqdyHArSvUtf9ATwFFB7s49hgN7Rv+c9PxAY=
5+
github.com/flashcatcloud/go-flashduty v0.15.15/go.mod h1:YpHiTYXR5NXBI/rGRZfUy537XMkhdCkwA8NW1QoRHwk=
66
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
77
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
88
github.com/mattn/go-runewidth v0.0.30 h1:+KUuiDA4fF0R1p5FeueHefjDm+GIM+kWfFnDjybOPgk=

‎internal/cli/alert_event.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func newAlertEventListCmd() *cobra.Command {
3737
}
3838

3939
input := &flashduty.AlertEventGlobalListRequest{
40-
StartTime: flashduty.Int64(startTime),
41-
EndTime: flashduty.Int64(endTime),
40+
StartTime: startTime,
41+
EndTime: endTime,
4242
}
4343
input.Limit = limit
4444
input.Page = page

‎internal/cli/zz_generated_alert_rules.go‎

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎internal/cli/zz_generated_alerts.go‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)