add resultFormat field to Target
I’m using the SDK to manage dashboards and alerts as code. I hit an issue trying to create alerts based on InfluxDB raw query targets. When testing the alert in grafana I see this error message:
request handler error: failed to query data: type assertion to string failed
The grafana code here seems to require that the resultFormat JSON field must be present.
I tested the change in the PR locally (by adding ResultFormat: "time_series" to my Target definition) and the alert performs as expected without the error message.
Let me know if you need any more details, Thanks.
Coverage remained the same at 47.962% when pulling 24f8c101af7ada6ab2c0893135893b879d7b3026 on dougsc:add-resultFormat-field into 9de4d14888c553cbde643c3c9fd26633a13d5736 on grafana-tools:master.
is there any news on this? we also need this feature added.