Azure Monitor: replace monaco by slate with initial Kusto syntax

This commit is contained in:
Alexander Zobnin
2019-01-29 14:19:31 +03:00
parent 96ffa9d797
commit fefb2c2ba2
19 changed files with 1108 additions and 830 deletions

View File

@@ -2,7 +2,8 @@ import _ from 'lodash';
import { QueryCtrl } from 'app/plugins/sdk';
// import './css/query_editor.css';
import TimegrainConverter from './time_grain_converter';
import './monaco/kusto_monaco_editor';
// import './monaco/kusto_monaco_editor';
import './editor/editor_component';
export interface ResultFormat {
text: string;
@@ -323,6 +324,18 @@ export class AzureMonitorQueryCtrl extends QueryCtrl {
.catch(this.handleQueryCtrlError.bind(this));
}
onLogAnalyticsQueryChange = (nextQuery: string) => {
this.target.azureLogAnalytics.query = nextQuery;
}
onLogAnalyticsQueryExecute = () => {
this.panelCtrl.refresh();
}
get templateVariables() {
return this.templateSrv.variables.map(t => '$' + t.name);
}
/* Application Insights Section */
getAppInsightsAutoInterval() {