grafana-openapi-client-go icon indicating copy to clipboard operation
grafana-openapi-client-go copied to clipboard

GetAlertRulesExport returns a unmarshal error

Open ev-gusev opened this issue 11 months ago • 1 comments
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))

ev-gusev avatar Dec 17 '24 08:12 ev-gusev