pulsarctl icon indicating copy to clipboard operation
pulsarctl copied to clipboard

Enhance GetStatsCmd to include additional options for backlog statistics

Open freeznet opened this issue 6 months ago • 1 comments

fix https://github.com/streamnative/pulsarctl/issues/1800

  • Added flags for precise backlog size, subscription backlog size, and earliest time in backlog.
  • Updated doGetStats function to accept new parameters and utilize them in the stats retrieval process.
  • Modified calls to GetPartitionedStats and GetStats to use the new options structure.

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

  • [ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • [ ] doc-required

    (If you need help on updating docs, create a doc issue)

  • [ ] no-need-doc

    (Please explain why)

  • [ ] doc

    (If this PR contains doc changes)

freeznet avatar Jun 09 '25 07:06 freeznet

@freeznet:Thanks for your contribution. For this PR, do we need to update docs? (The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

github-actions[bot] avatar Jun 09 '25 07:06 github-actions[bot]