removed unused props from angular query component interface

pull/14930/head
Torkel Ödegaard 6 years ago
parent f041928e58
commit 3047579cdd
  1. 8
      public/app/features/dashboard/panel_editor/QueryEditorRow.tsx
  2. 6
      public/app/plugins/datasource/postgres/partials/query.editor.html

@ -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;

@ -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.

Loading…
Cancel
Save