mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
Datasource settings: Add deprecation notice for database field (#58647)
* Datasource settings: Add deprecation notice for database field * Revert store.go change
This commit is contained in:
parent
1c5a3a7d2c
commit
5712b05330
@ -558,6 +558,10 @@ export interface DataSourceSettings<T extends DataSourceJsonData = DataSourceJso
|
||||
access: string;
|
||||
url: string;
|
||||
user: string;
|
||||
/**
|
||||
* @deprecated -- use jsonData to store information related to database.
|
||||
* This field should only be used by Elasticsearch and Influxdb.
|
||||
*/
|
||||
database: string;
|
||||
basicAuth: boolean;
|
||||
basicAuthUser: string;
|
||||
@ -586,6 +590,10 @@ export interface DataSourceInstanceSettings<T extends DataSourceJsonData = DataS
|
||||
jsonData: T;
|
||||
username?: string;
|
||||
password?: string; // when access is direct, for some legacy datasources
|
||||
/**
|
||||
* @deprecated -- use jsonData to store information related to database.
|
||||
* This field should only be used by Elasticsearch and Influxdb.
|
||||
*/
|
||||
database?: string;
|
||||
isDefault?: boolean;
|
||||
access: 'direct' | 'proxy'; // Currently we support 2 options - direct (browser) and proxy (server)
|
||||
|
Loading…
Reference in New Issue
Block a user