* Fix Unable to use self-signed CA for verification when adding influxdb data source (#105585) * Update pkg/tsdb/influxdb/fsql/fsql.go --------- Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
33 lines
710 B
Go
33 lines
710 B
Go
package models
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend/httpclient"
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend/proxy"
|
|
)
|
|
|
|
type DatasourceInfo struct {
|
|
HTTPClient *http.Client
|
|
|
|
Token string
|
|
URL string
|
|
|
|
DbName string `json:"dbName"`
|
|
Version string `json:"version"`
|
|
HTTPMode string `json:"httpMode"`
|
|
TimeInterval string `json:"timeInterval"`
|
|
DefaultBucket string `json:"defaultBucket"`
|
|
Organization string `json:"organization"`
|
|
MaxSeries int `json:"maxSeries"`
|
|
Timeout time.Duration
|
|
|
|
// FlightSQL grpc connection
|
|
InsecureGrpc bool `json:"insecureGrpc"`
|
|
|
|
TLSConfig *httpclient.TLSOptions
|
|
|
|
ProxyClient proxy.Client
|
|
}
|