Skip to content

feat: bump go-flashduty to v0.15.15 (alert event list requires a time window) - #224

Merged
ysyneu merged 2 commits into
mainfrom
feat/alert-event-list-required-window
Oct 12, 2026
Merged

ysyneu merged 2 commits into
mainfrom
feat/alert-event-list-required-window

Conversation

@ysyneu

@ysyneu ysyneu commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Bump go-flashduty to v0.15.15. In that SDK version, POST /alert-event/list requires start_time and end_time, and the span must not exceed 31 days.

  • alert-event list passes the parsed --since/--until window as plain int64 values. The SDK now types both fields as int64; before, they were *int64. The command already sent a window on every call (default --since 1h --until now), so its behavior does not change.
  • alert-event list help now states the 31-day window limit, using the same wording as alert list (cherry-picked from docs(cli): note the 31-day window limit in alert-event list help #218).
  • Regenerated commands (go run ./internal/cmd/cligen) and cards (make gen-cards):
    • generated alert event list: --start-time / --end-time are now required
    • integration create: --integration-key, --is-test; integration update: --is-test
    • dashboard runtime queries resolve: --max-data-points, --preserve-builtin-variables (monit card fence updated)
    • investigation targets: the help describes purpose and marks the query datasource_id as optional
    • integration and incident feed response help reflects the typed fields

Verification

  • make check: fmt with no diff, golangci-lint 0 issues, go test -race ./... passes, build passes
  • make check-cards: skilldoc: cards OK

The alert event list endpoint requires a time range of at most 31 days, as
the alert list command already states.
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.
@ysyneu
ysyneu merged commit b74a2db into main Oct 12, 2026
12 checks passed
@ysyneu
ysyneu deleted the feat/alert-event-list-required-window branch October 12, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant