Skip to content
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

George/fix mplot queries #577

Merged

Conversation

GeorgeJahad
Copy link
Contributor

This PR fixes the exception generated by enum mplot queries:
java.lang.Exception: average not supported for this type: BluefloodEnumRollup

Multiplot enum and gauge queries were not treating default filterStats the same as singlePlot queries. This PR refactors the code so singlePlot and multiPlot work the same.

Also added another logmessage for rollups.

public static Points<BluefloodEnumRollup> generateFakeEnumRollupPoints() {
Points<BluefloodEnumRollup> points = new Points<BluefloodEnumRollup>();
long startTime = 1234567L;
for (int i = 0; i < 5; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am a bit confused why we are generating fake enum rollup points. Is this method only being called in Test classes? If so, should we move it to some class in src/test/java ?

@shintasmith
Copy link
Contributor

The rest of the changes look good, to a novice pair of eyes. ;-) +1. Someone else should probably review too.

GeorgeJahad added a commit that referenced this pull request Dec 16, 2015
@GeorgeJahad GeorgeJahad merged commit e89a1fa into rax-maas:enums-feature Dec 16, 2015
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.

None yet

2 participants