mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* noImplicitAny Stackdriver * Sub 3000 noImplicitAny * Update error count limit * Add DataQueryRequest type
19 lines
528 B
TypeScript
19 lines
528 B
TypeScript
import { TemplateSrv } from 'app/features/templating/template_srv';
|
|
|
|
export class StackdriverAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
annotation: any;
|
|
templateSrv: TemplateSrv;
|
|
|
|
/** @ngInject */
|
|
constructor(templateSrv: TemplateSrv) {
|
|
this.templateSrv = templateSrv;
|
|
this.annotation.target = this.annotation.target || {};
|
|
this.onQueryChange = this.onQueryChange.bind(this);
|
|
}
|
|
|
|
onQueryChange(target: any) {
|
|
Object.assign(this.annotation.target, target);
|
|
}
|
|
}
|