grafana-toolbox / grafana-client

Python client library for accessing the Grafana HTTP API.
MIT License
101 stars 28 forks source link

New version of Grafana API create-annotation adds dashboardUID field #140

Closed IBUMBLEBEE closed 8 months ago

IBUMBLEBEE commented 8 months ago

What API call you use? Annotations.add_annotation()

What is the actual output? TypeError: Annotations.add_annotation() got an unexpected keyword argument 'dashboard_uid'

What is the expected output? https://grafana.com/docs/grafana/latest/http_api/annotations/#create-annotation

amotl commented 8 months ago

Dear @IBUMBLEBEE,

thank you for writing in. It is really a bummer, it looks like add_annotation does not support the dashboard_uid argument, yet. Will you be able to submit a patch to fix that, or do you want us to do it?

With kind regards, Andreas.

amotl commented 8 months ago

Dear @IBUMBLEBEE,

grafana-client 3.11.0 has just been released, including a corresponding bugfix. Thank you again.

With kind regards, Andreas.