removed unused props from angular query component interface

This commit is contained in:
Torkel Ödegaard 2019-01-17 13:27:01 +01:00
parent f041928e58
commit 3047579cdd
2 changed files with 4 additions and 10 deletions

View File

@ -43,7 +43,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
}
getAngularQueryComponentScope(): AngularQueryComponentScope {
const { panel, onAddQuery, onMoveQuery, onRemoveQuery, query } = this.props;
const { panel, query } = this.props;
const { datasource } = this.state;
return {
@ -52,9 +52,6 @@ export class QueryEditorRow extends PureComponent<Props, State> {
panel: panel,
refresh: () => panel.refresh(),
render: () => panel.render,
addQuery: onAddQuery,
moveQuery: onMoveQuery,
removeQuery: onRemoveQuery,
events: panel.events,
};
}
@ -234,9 +231,6 @@ export interface AngularQueryComponentScope {
events: Emitter;
refresh: () => void;
render: () => void;
removeQuery: (query: DataQuery) => void;
addQuery: (query?: DataQuery) => void;
moveQuery: (query: DataQuery, direction: number) => void;
datasource: DataSourceApi;
toggleEditorMode?: () => void;
getCollapsedText?: () => string;

View File

@ -138,9 +138,9 @@
<pre class="gf-form-pre alert alert-info">Time series:
- return column named <i>time</i> (UTC in seconds or timestamp)
- return column(s) with numeric datatype as values
Optional:
- return column named <i>metric</i> to represent the series name.
- If multiple value columns are returned the metric column is used as prefix.
Optional:
- return column named <i>metric</i> to represent the series name.
- If multiple value columns are returned the metric column is used as prefix.
- If no column named metric is found the column name of the value column is used as series name
Resultsets of time series queries need to be sorted by time.