Skip to content

feat(metrics): add window-seconds and cross-org timeseries query#548

Merged
platinummonkey merged 1 commit into
chore/upgrade-dd-sdk-to-masterfrom
feat/usage-new-types
May 30, 2026
Merged

feat(metrics): add window-seconds and cross-org timeseries query#548
platinummonkey merged 1 commit into
chore/upgrade-dd-sdk-to-masterfrom
feat/usage-new-types

Conversation

@platinummonkey
Copy link
Copy Markdown
Collaborator

Summary

Surfaces new metrics query parameters picked up in the SDK upgrade (base chore/upgrade-dd-sdk-to-master, PR #539).

Changes

  • src/commands/metrics.rs
    • tags_list gains an optional --window-seconds lookback param (SDK #1593)
    • new query_timeseries (query-timeseries --file) wrapping the v2 timeseries formula query; cross_org_uuids can be set per-query in the request body for cross-organisation reads (SDK #1564)
  • src/main.rs--window-seconds flag on pup metrics tags list and a new pup metrics query-timeseries subcommand + dispatch
  • docs/COMMANDS.md — documented the new flag/subcommand

New / changed commands

pup metrics tags list <metric> --window-seconds 3600
pup metrics query-timeseries --file body.json   # body may include cross_org_uuids

Testing

  • test_metrics_tags_list_no_window / _with_window, test_metrics_query_timeseries / _bad_file
  • Validated locally against the pinned SDK rev: cargo test green, cargo fmt --check clean, cargo clippy clean (no warnings in pup code).

🤖 Generated with Claude Code


Generated by Claude Code

- pup metrics tags list --window-seconds: lookback window param (SDK #1593)
- pup metrics query-timeseries --file: v2 timeseries formula query, supporting
  cross_org_uuids per-query for cross-organisation reads (SDK #1564)

Co-Authored-By: Claude <noreply@anthropic.com>
@platinummonkey platinummonkey requested a review from a team as a code owner May 30, 2026 08:50
@platinummonkey platinummonkey merged commit 4069fb3 into chore/upgrade-dd-sdk-to-master May 30, 2026
7 checks passed
@platinummonkey platinummonkey deleted the feat/usage-new-types 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