Registry: add a reusable function registry (#17047)

This commit is contained in:
Ryan McKinley
2019-07-16 11:40:23 -07:00
committed by GitHub
parent 5151b8ce07
commit c194ae1ba5
35 changed files with 406 additions and 283 deletions

View File

@ -13,8 +13,7 @@ import { Help } from './Help';
import { StackdriverQuery, MetricDescriptor } from '../types';
import { getAlignmentPickerData } from '../functions';
import StackdriverDatasource from '../datasource';
import { SelectOptionItem } from '@grafana/ui';
import { TimeSeries } from '@grafana/data';
import { TimeSeries, SelectableValue } from '@grafana/data';
export interface Props {
onQueryChange: (target: StackdriverQuery) => void;
@ -26,7 +25,7 @@ export interface Props {
}
interface State extends StackdriverQuery {
alignOptions: Array<SelectOptionItem<string>>;
alignOptions: Array<SelectableValue<string>>;
lastQuery: string;
lastQueryError: string;
[key: string]: any;