From a21e38d9e96ff2c41b373922c69bce00317555ac Mon Sep 17 00:00:00 2001 From: ysyneu Date: Sat, 10 Oct 2026 00:53:54 -0700 Subject: [PATCH] docs(cli): note the 31-day window limit in alert-event list help The alert event list endpoint requires a time range of at most 31 days, as the alert list command already states. --- internal/cli/alert_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/alert_event.go b/internal/cli/alert_event.go index 0721fa5..da5bf55 100644 --- a/internal/cli/alert_event.go +++ b/internal/cli/alert_event.go @@ -24,7 +24,7 @@ func newAlertEventListCmd() *cobra.Command { cmd := &cobra.Command{ Use: "list", Short: "List alert events globally", - Long: curatedLong("List alert events across all alerts within a time window, optionally filtered by severity, channel, or integration type. In json/toon mode, output defaults to compact event fields; use --fields to choose a different projection.", "Alerts", "EventReadList"), + Long: curatedLong("List alert events across all alerts within a time window, optionally filtered by severity, channel, or integration type. --since/--until window must be < 31 days. In json/toon mode, output defaults to compact event fields; use --fields to choose a different projection.", "Alerts", "EventReadList"), RunE: func(cmd *cobra.Command, args []string) error { return runCommand(cmd, args, func(ctx *RunContext) error { if ctx.Structured() && cmd.Flags().Changed("fields") && len(parseStringSlice(fields)) == 0 {