Björn Pedersen 9f6fa4cf97
Grafana notifications: Fix panel/dashboardId type (#11083)
* Grafana notifications: Fix panel/dashboardId type

Latest grafana fails with
  Error sending notification grafana: 400
  [{"classification":"DeserializationError",
    "message":"json: cannot unmarshal string into Go struct
        field PostAnnotationsCmd.dashboardId of type int64"}]

So ensure the IDs are really int and not strings.

* Fix the dashboard/panelId=0 case

0 is avlaid valid for the ID's, so ensure to allow them.

* Update tests to new behavior

Panel/Dashboard Id fields are not sent if they where not requested.
Alos add tests for the ID=0 case.
2022-04-01 16:08:01 -04:00
..
2022-03-14 13:19:57 -04:00
2022-03-07 18:11:36 -05:00
2021-03-25 15:23:52 -04:00
2022-01-14 11:55:41 -05:00
2015-06-11 16:10:23 -04:00
2022-03-07 18:11:36 -05:00