@ -133,6 +133,7 @@ export interface DataSourcePluginMeta<T extends KeyValue = {}> extends PluginMet
hasQueryHelp? : boolean ;
category? : string ;
queryOptions? : PluginMetaQueryOptions ;
cachingConfig? : PluginQueryCachingConfig ;
sort? : number ;
streaming? : boolean ;
unlicensed? : boolean ;
@ -145,6 +146,10 @@ interface PluginMetaQueryOptions {
maxDataPoints? : boolean ;
minInterval? : boolean ;
}
/ * *
* Information about the datasource ' s query caching configuration
* When the caching feature is disabled , this config will always be falsy
* /
interface PluginQueryCachingConfig {
enabled? : boolean ;
TTLMs? : number ;
@ -229,7 +234,6 @@ abstract class DataSourceApi<
this . id = instanceSettings . id ;
this . type = instanceSettings . type ;
this . meta = instanceSettings . meta ;
this . cachingConfig = instanceSettings . cachingConfig ;
this . uid = instanceSettings . uid ;
}
@ -307,12 +311,6 @@ abstract class DataSourceApi<
* /
meta : DataSourcePluginMeta ;
/ * *
* Information about the datasource ' s query caching configuration
* When the caching feature is disabled , this config will always be empty
* /
cachingConfig? : PluginQueryCachingConfig ;
/ * *
* Used by alerting to check if query contains template variables
* /
@ -599,7 +597,6 @@ export interface DataSourceInstanceSettings<T extends DataSourceJsonData = DataS
type : string ;
name : string ;
meta : DataSourcePluginMeta ;
cachingConfig? : PluginQueryCachingConfig ;
readOnly : boolean ;
url? : string ;
jsonData : T ;