Skip to content

feat: add legacy_condition support to cleanup mode#5

Merged
asomensari-es merged 1 commit into
mainfrom
feat/cleanup-legacy-conditions
Jul 10, 2026
Merged

feat: add legacy_condition support to cleanup mode#5
asomensari-es merged 1 commit into
mainfrom
feat/cleanup-legacy-conditions

Conversation

@asomensari-es

Copy link
Copy Markdown
Owner

Cleanup mode can now delete non-NRQL (legacy) alert conditions via the REST API v2. Adds DeleteLegacyCondition to nrRESTClient, a LegacyConditionDeleter interface in the cleanup package, and threads the REST client through Run/deleteAsset. ParseCSV matches migration-notice rows (empty id_type) and ignores per-entity rows, ensuring each condition is targeted exactly once.

Usage: --mode cleanup --asset-type legacy_condition --csv findings.csv

Cleanup mode can now delete non-NRQL (legacy) alert conditions via the
REST API v2. Adds DeleteLegacyCondition to nrRESTClient, a
LegacyConditionDeleter interface in the cleanup package, and threads the
REST client through Run/deleteAsset. ParseCSV matches migration-notice
rows (empty id_type) and ignores per-entity rows, ensuring each
condition is targeted exactly once.

Usage: --mode cleanup --asset-type legacy_condition --csv findings.csv
@asomensari-es asomensari-es merged commit 2466aaf into main Jul 10, 2026
1 check passed
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