List Annotation wrong parameter name
Closed this issue · 2 comments
mottish commented
Grafana API for "Find Annotation" details that the time range parameters are "from" and "to".
this module uses time range parameters "time_from" and "time_to" which are incorrect.
from Grafana example get annotation:
GET /api/annotations?from=1506676478816&to=1507281278816&tags=tag1&tags=tag2&limit=100
this module GET URI:
GET /api/annotations?time_from=1597179600&time_to=1597266000&limit=100
The problem is that if Grafana API doesn't get time range it finds ALL annotations (should have been none from my POV).
So it's easy to miss when testing the API as Grafana will response with annotation it finds but they are not related to the time range.