Skip to content

CLI: add filter flags to nora monitoring events #258

Description

@JustinaChano04

Area: cli/ · Difficulty: easy

Problem

The backend monitoring API already supports useful event filters like search, type, from, and to, but nora monitoring events currently only forwards --limit. That means the CLI falls short of the API and dashboard for common operator workflows like "show only backup failures from today" or "search for one agent's event text".

Scope

Extend cli/src/commands/monitoring.js so nora monitoring events forwards these optional flags to GET /api/monitoring/events:

  • --search
  • --type
  • --from
  • --to
  • preserve existing --limit

Update cli/README.md and the docs/guide wording as needed so the new filters are discoverable. Keep the command's output format the same; this issue is about filtering, not JSON output.

Acceptance

  • nora monitoring events --type agent_deleted --limit 10 forwards both filters to the API.
  • --search, --from, and --to also pass through correctly when supplied.
  • Existing behavior without filters is unchanged.
  • CLI docs mention the new flags.

Why this improves the repo

It closes a practical CLI/API parity gap and makes the terminal workflow much more useful for real operator triage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededobservabilityObservability and monitoring

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions