Skip to content

Commit 41f14ba

Browse files
committed
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.
1 parent ec0922a commit 41f14ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/cli/alert_event.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func newAlertEventListCmd() *cobra.Command {
2424
cmd := &cobra.Command{
2525
Use: "list",
2626
Short: "List alert events globally",
27-
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"),
27+
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"),
2828
RunE: func(cmd *cobra.Command, args []string) error {
2929
return runCommand(cmd, args, func(ctx *RunContext) error {
3030
if ctx.Structured() && cmd.Flags().Changed("fields") && len(parseStringSlice(fields)) == 0 {

0 commit comments

Comments
 (0)