|
@@ -60,7 +60,9 @@ export class StackdriverFilterCtrl {
|
|
|
|
|
|
|
|
handleMetricTypeChange(value) {
|
|
handleMetricTypeChange(value) {
|
|
|
this.target.metricType = value;
|
|
this.target.metricType = value;
|
|
|
- this.onMetricTypeChange();
|
|
|
|
|
|
|
+ this.setMetricType();
|
|
|
|
|
+ this.$scope.refresh();
|
|
|
|
|
+ this.getLabels();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
initSegments(hideGroupBys: boolean) {
|
|
initSegments(hideGroupBys: boolean) {
|
|
@@ -191,12 +193,6 @@ export class StackdriverFilterCtrl {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async onMetricTypeChange() {
|
|
|
|
|
- this.setMetricType();
|
|
|
|
|
- this.$scope.refresh();
|
|
|
|
|
- this.getLabels();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
setMetricType() {
|
|
setMetricType() {
|
|
|
const { valueType, metricKind, unit } = this.metricDescriptors.find(
|
|
const { valueType, metricKind, unit } = this.metricDescriptors.find(
|
|
|
m => m.type === this.templateSrv.replace(this.target.metricType)
|
|
m => m.type === this.templateSrv.replace(this.target.metricType)
|