stackdriver: update aggregation and alignment before refreshing when changing metric

This commit is contained in:
Erik Sundell
2018-09-26 13:22:20 +02:00
parent 508601c28c
commit 1a91e0baf6
3 changed files with 34 additions and 25 deletions

View File

@@ -194,6 +194,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
const { valueType, metricKind } = this.metricDescriptors.find(m => m.type === this.target.metricType);
this.target.valueType = valueType;
this.target.metricKind = metricKind;
this.$scope.$broadcast('metricTypeChange');
this.refresh();
this.getLabels();
}