mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 12:52:12 +08:00
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
import { VariableSupportBase, VariableSupportType } from '@grafana/data';
|
|
import { DEFAULT_QUERY, MyQuery } from './types';
|
|
import { DataSource } from './datasource';
|
|
|
|
export class VariableSupport extends VariableSupportBase<DataSource> {
|
|
getType(): VariableSupportType {
|
|
return VariableSupportType.Datasource;
|
|
}
|
|
|
|
getDefaultQuery(): Partial<MyQuery> {
|
|
return DEFAULT_QUERY;
|
|
}
|
|
}
|