grafana-openapi-client-go
grafana-openapi-client-go copied to clipboard
Grafana OpenAPI Client for Go
I'm trying to use `client.Ds.QueryMetricsWithExpressions()` to see if my metrics data source can be queried with a custom query from Grafana. ``` type Datasource struct { Uid string `json:"uid"` }...
Dear, Because the old client has been archived but doesn't contain all the provisioned metadata field. https://github.com/grafana/grafana-api-golang-client And this repo has no official release yet it seems we can't make...
**Is your feature request related to a problem?** Currently only prebuild APIs can be used with this client. Datasources also have own endpoints which are currently not useable. **Describe the...
**Is your feature request related to a problem?** It would be nice if /api/health was documented via the OpenAPI spec. I'm not sure if this should be a request to...
Regarding https://github.com/grafana/grafana-openapi-client-go/blob/3ad0f7e4ee52421b606af2486d7bccd7a0776ae6/client/grafana_http_api_client.go#L416 I was using github.com/jarcoal/httpmock with the old (now deprecated) API client our app. We have a test suite must run mocking tests before running integration tests as the...
Bumps the go-openapi group with 2 updates: [github.com/go-openapi/errors](https://github.com/go-openapi/errors) and [github.com/go-openapi/swag](https://github.com/go-openapi/swag). Updates `github.com/go-openapi/errors` from 0.22.0 to 0.22.1 Commits 470ae20 ci: fixed codecov upload bfda7b0 ci: fixed broken codecov coverage upload 2611335...
Fixing issue with AlertRuleGroupExport data model For more context: https://github.com/grafana/grafana/issues/94936
### Problem The client couldn't disable a service account: the generated struct omitted `isDisabled` when set to `false`, so Grafana read it as unchanged. ### Fix During schema pull it...
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...