fix, add targetContainsTemplate()
This commit is contained in:
1 parent
8d6513a564
commit
5850ae51b1
1 file changed
+9
@@ -300,6 +300,15 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
|
||||
});
|
||||
};
|
||||
|
||||
this.targetContainsTemplate = function(target) {
|
||||
return templateSrv.variableExists(target.region) ||
|
||||
templateSrv.variableExists(target.namespace) ||
|
||||
templateSrv.variableExists(target.metricName) ||
|
||||
_.find(target.dimensions, function(v, k) {
|
||||
return templateSrv.variableExists(k) || templateSrv.variableExists(v);
|
||||
});
|
||||
};
|
||||
|
||||
this.testDatasource = function() {
|
||||
/* use billing metrics for test */
|
||||
var region = this.defaultRegion;
|
||||
|
||||
Reference in new issue
Block a user