Skip to content

feat: add filter to eseries collector - #4387

Merged
cgrinds merged 1 commit into
mainfrom
rg2-eseries
Aug 6, 2026
Merged

feat: add filter to eseries collector#4387
cgrinds merged 1 commit into
mainfrom
rg2-eseries

Conversation

@rahulguptajss

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 6, 2026 14:46
@cla-bot cla-bot Bot added the cla-signed label Aug 6, 2026
@cgrinds
cgrinds merged commit 3a6457e into main Aug 6, 2026
14 checks passed
@cgrinds
cgrinds deleted the rg2-eseries branch August 6, 2026 14:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the ESeries collector to append configured query filters to its REST endpoint URL when polling data, and updates unit tests to validate the URL-building behavior.

Changes:

  • Add Prop.Filter support to the ESeries collector’s PollData() URL construction.
  • Update TestESeries_URLBuilder to include filters and assert the expected query string output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cmd/collectors/eseries/eseries.go Append configured filters to the REST query URL during data polling.
cmd/collectors/eseries/eseries_test.go Update URL builder test to cover filter query string generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 243 to 247
query := rest.NewURLBuilder().
APIPath(e.Prop.Query).
ArrayID(e.arrayID).
Filter(e.Prop.Filter).
Build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants