-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: support nested structures in New Relic scaler #6831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
/run-e2e newrelic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request enhances the New Relic scaler to correctly parse responses that contain nested JSON structures, addressing issues where percentile query responses were not handled correctly.
- Enhanced response parsing logic to support nested structures.
- Added comprehensive test cases to cover various response scenarios including nested percentile values and error conditions.
- Updated the changelog to document the feature.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
pkg/scalers/newrelic_scaler_test.go | Added new test cases to verify nested JSON response parsing behavior. |
pkg/scalers/newrelic_scaler.go | Updated the parsing logic to handle nested maps in the query results. |
CHANGELOG.md | Updated changelog with an entry for the new nested structures support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you!
/run-e2e newrelic |
Signed-off-by: Rick Brouwer <[email protected]>
/run-e2e newrelic |
Enhanced response parser to handle nested map structures. The New Relic scaler fails to parse percentile query responses due to nested JSON structure.
Checklist
Fixes #6825