mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add new flag in order to be able to indicate whether the datasource has native support for tables
This commit is contained in:
parent
18abd987bb
commit
6f85fa6b35
@ -24,6 +24,7 @@ type DataSourcePlugin struct {
|
||||
Metrics bool `json:"metrics"`
|
||||
Alerting bool `json:"alerting"`
|
||||
Explore bool `json:"explore"`
|
||||
Table bool `json:"tables"`
|
||||
Logs bool `json:"logs"`
|
||||
QueryOptions map[string]bool `json:"queryOptions,omitempty"`
|
||||
BuiltIn bool `json:"builtIn,omitempty"`
|
||||
|
@ -176,7 +176,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
|
||||
async setDatasource(datasource: any, origin?: DataSource) {
|
||||
const supportsGraph = datasource.meta.metrics;
|
||||
const supportsLogs = datasource.meta.logs;
|
||||
const supportsTable = datasource.meta.metrics;
|
||||
const supportsTable = datasource.meta.tables;
|
||||
const datasourceId = datasource.meta.id;
|
||||
let datasourceError = null;
|
||||
|
||||
|
@ -41,6 +41,7 @@ export interface PluginMeta {
|
||||
|
||||
// Datasource-specific
|
||||
metrics?: boolean;
|
||||
tables?: boolean;
|
||||
logs?: boolean;
|
||||
explore?: boolean;
|
||||
annotations?: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user