Skip to content

Add parser validation APIs and log-type CLI commands#201

Open
ishree-dev wants to merge 3 commits intogoogle:mainfrom
ishree-dev:cli-changes
Open

Add parser validation APIs and log-type CLI commands#201
ishree-dev wants to merge 3 commits intogoogle:mainfrom
ishree-dev:cli-changes

Conversation

@ishree-dev
Copy link

This PR introduces new SDK wrapper methods and CLI commands for Chronicle Parser Validation tooling. It specifically adds functionality to trigger GitHub checks for parsers and retrieve their corresponding analysis reports.
Key Changes:

  • New SDK Methods (src/secops/chronicle/client.py & parser_validation.py):

  • trigger_github_checks: Triggers a parser analysis report against an associated GitHub PR.

  • get_analysis_report: Retrieves a completed parser analysis report using its full resource name.

  • New CLI Commands (src/secops/cli/commands/log_type.py):

    • Implemented the secops log-type command group.
    • secops log-type trigger-checks --associated-pr --log-type <LOG_TYPE> --customer-id
    • secops log-type get-analysis-report --name <REPORT_NAME>
  • Testing (tests/):

    • Added unit tests for the newly added ChronicleClient methods (test_client_parser_validation.py).
    • Added unit tests for CLI command handlers (test_log_type.py).
    • Added integration tests for the log-type CLI lifecycle (test_log_type_integration.py).
  • Documentation:
    Updated api_module_mapping.md to map logTypes.triggerGitHubChecks and logTypes.getParserAnalysisReport to their respective CLI counterparts.

@ishree-dev ishree-dev requested a review from mihirvala08 as a code owner March 16, 2026 11:32
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