Skip to content

feat(cost): add OCI configs and cost anomalies list commands#544

Merged
platinummonkey merged 2 commits into
chore/upgrade-dd-sdk-to-masterfrom
feat/cost-oci-anomalies
May 30, 2026
Merged

feat(cost): add OCI configs and cost anomalies list commands#544
platinummonkey merged 2 commits into
chore/upgrade-dd-sdk-to-masterfrom
feat/cost-oci-anomalies

Conversation

@platinummonkey
Copy link
Copy Markdown
Collaborator

Summary

Adds two new Cloud Cost Management commands surfacing endpoints picked up in the SDK upgrade (base branch chore/upgrade-dd-sdk-to-master, PR #539).

Changes

  • src/commands/cost.rsoci_configs_list (ListCostOCIConfigs, SDK #1540) and anomalies_list (ListCostAnomalies, SDK #1588)
  • src/client.rs — register v2.list_cost_anomalies as an unstable op (162 → 163); add the two API-key-only endpoints to OAUTH_EXCLUDED_ENDPOINTS (52 → 54)
  • src/main.rspup cost oci-configs list and pup cost anomalies list subcommands + dispatch
  • docs/COMMANDS.md — documented the new commands

New commands

pup cost oci-configs list
pup cost anomalies list

Testing

  • test_oci_configs_list / test_oci_configs_list_error (happy + 403)
  • test_anomalies_list (happy; CostAnomaliesResponse.data is an optional object)
  • Validated locally against the pinned SDK rev: cargo test green, cargo clippy clean (no warnings in pup code).

🤖 Generated with Claude Code


Generated by Claude Code

- pup cost oci-configs list: wraps ListCostOCIConfigs (SDK #1540)
- pup cost anomalies list: wraps ListCostAnomalies (SDK #1588)

Registers v2.list_cost_anomalies as an unstable op and adds the two
API-key-only endpoints to the OAuth exclusion table.

Co-Authored-By: Claude <noreply@anthropic.com>
@platinummonkey platinummonkey requested a review from a team as a code owner May 30, 2026 07:56
@datadog-prod-us1-5

This comment has been minimized.

Co-Authored-By: Claude <noreply@anthropic.com>
@platinummonkey platinummonkey merged commit 5e02966 into chore/upgrade-dd-sdk-to-master May 30, 2026
6 checks passed
@platinummonkey platinummonkey deleted the feat/cost-oci-anomalies branch May 30, 2026 10:17
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.

2 participants