-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for unified alerting queries #135
Conversation
@@ -63,6 +65,11 @@ func (s *Server) handlePropertyValueHistoryQuery(ctx context.Context, req *backe | |||
return DataResponseErrorRequestFailed(err) | |||
} | |||
|
|||
wide, err := data.LongToWide(frames[0], &data.FillMissing{Mode: data.FillModeNull, Value: math.NaN()}) |
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.
this looks great -- but would love to see the test structure change to show we now return a wide frame
// } | ||
// Name: Demo Turbine Asset 1 | ||
// Dimensions: 2 Fields by 35 Rows | ||
// +-------------------------------+--------------------------+ |
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.
@ryantxu here's an example
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.
Pulled down and tested and worked for me!
This adds support for Unified Alerting by switching from long to wide time series frames. Fixes #132
Get property value aggregates:
Get property value history:
Get property value:
I can limit this change to alert queries, but the change also fixes time series rendering in panels and explore.
Before:
After: