Skip to content

feat(raw): add storage management endpoints - #4

Merged
paymog merged 1 commit into
mainfrom
feat/storage-management
Jul 13, 2026
Merged

paymog merged 1 commit into
mainfrom
feat/storage-management

Conversation

@paymog

@paymog paymog commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Adds raw storage-management get|update so admins can script the newly released retention, gcQL exception-rule, and index-tier settings for logs, traces, events, APM measurements, and monitor issues.

The commands use the existing gcsa-authenticated API transport, keep the broad HAR-generated registry intact, and expose the data type as --data-type. README and the bundled Groundcover skill document the versioned full-replacement PUT contract, including preserving the complete custom-rule list.

Validation

  • go test ./...
  • go vet ./...
  • gofmt -d internal/raw/command.go internal/raw/storage_management_commands.go internal/raw/runner_test.go
  • Live authenticated GET: raw storage-management get --data-type logs returned the current settings from api.groundcover.com
  • PUT request test covers method, route, JSON body, gcsa authorization, and tenant header forwarding

Post-Deploy Monitoring & Validation

No additional operational monitoring required. This is an additive client-only command registration with no deployed service path.

After the next CLI release, run groundcover raw storage-management get --data-type logs; healthy output is a JSON object with data_type, retention, and version. HTTP 401 indicates credential/profile failure; HTTP 404/405 indicates endpoint or method drift. Roll back by reinstalling the previous CLI version. Validation window: first release smoke test. Owner: @Paymahn.


Compound Engineering
Codex

@paymog
paymog merged commit 63569f7 into main Jul 13, 2026
1 check passed
@paymog
paymog deleted the feat/storage-management branch July 13, 2026 13:51
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