influxdb-client-go
influxdb-client-go copied to clipboard
APIClient().GetChecks return null checks
Specifications
- Client Version: v2.12.0
- InfluxDB Version: 2.4.0
- Platform: macOS
Steps to reproduce
var Params = domain.GetChecksParams{OrgID: orgID}
influxClient := influxdb2.NewClientWithOptions(url, token, influxdb2.DefaultOptions().SetUseGZip(true).SetLogLevel(2).SetApplicationName("Testing"))
check, err := influxClient.APIClient().GetChecks(context.Background(), &Params)
if err != nil {
log.Panic("Error GetChecks")
}
fmt.Printf("%v\n", check.Checks)
code return
&[{<nil>} {<nil>}]
Expected behavior
When I tested with Postman, server reply json response with 2 checks
Actual behavior
code return
&[{<nil>} {<nil>}]
Additional info
No response