grafana-openapi-client-go
grafana-openapi-client-go copied to clipboard
GetAlertRulesExport returns a unmarshal error
trafficstars
When calling the GetAlertRulesExport method I get an error
*encoding/json.UnmarshalTypeError {Value: “string”, Type: reflect.Type(*reflect.rtype) *{t: (*“internal/abi.Type”)(0x1058d7ca0)}, Offset: 120, Struct: “AlertRuleGroupExport”, Field: “groups.interval”}
What am I doing wrong? Example code:
format := "json"
res, err := g.provisioningClient.GetAlertRulesExport(prov.NewGetAlertRulesExportParams().WithFormat(&format))