Skip to content

[CLI] Add support for alerts summaries scans and following over time #129

@epalhares-tenchi

Description

@epalhares-tenchi

Description

Reflect recent additions in the SDK by exposing two new CLI commands:


1. get_alerts_summaries_scans

  • Endpoint: POST /alerts/summaries/scans
  • Parameters:
    • --organization-id (required)
    • --scan-target-ids (optional, list)
    • --days (optional, default = 7)

2. get_following_alerts_over_time

(renamed from get_alerts_over_time for clarity)

  • Endpoint: POST /alerts/summaries/following/resolvedovertime
  • Parameters:
    • --organization-id (required)
    • --following-ids (optional, list)
    • --severities (optional, list)
    • --dates (optional, list of YYYY-MM-DD)

Expected

  • New CLI commands wrapping the updated SDK methods
  • Flag validation and help messages
  • Output in JSON format
  • Basic test coverage

Notes

These features were added as part of the SDK/CLI Proposal initiative.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions