mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
cec12676e7
* Use backend SDK for influxdb * Remove BasicAuth condition, some comments * Remove not used fields from datasource info * Register InfluxDBService * Fix casting and make HTTPClientProvider exported * Remove unused function * Remove empty line * Update pkg/tsdb/influxdb/flux/query_models.go Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com> * Read interval from TimeRange instead of Interval * Change pkg name from datasource->models, minor changes * Use testify instead of convey * Add new calculator logic and fix pointer semantic for dsInfo * Initialise parsers, use tsdb interval pkg Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
20 lines
428 B
Go
20 lines
428 B
Go
package models
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type DatasourceInfo struct {
|
|
HTTPClient *http.Client
|
|
Token string
|
|
URL string
|
|
|
|
Database string `json:"database"`
|
|
Version string `json:"version"`
|
|
HTTPMode string `json:"httpMode"`
|
|
TimeInterval string `json:"timeInterval"`
|
|
DefaultBucket string `json:"defaultBucket"`
|
|
Organization string `json:"organization"`
|
|
MaxSeries int `json:"maxSeries"`
|
|
}
|