Explorar o código

feat(tablepanel): completed work on time series aggregations table transform, #3219

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
aad824a562
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 1 0
      public/app/core/time_series.ts
  2. 3 0
      public/app/panels/table/transformers.ts

+ 1 - 0
public/app/core/time_series.ts

@@ -143,6 +143,7 @@ class TimeSeries {
       }
     }
 
+    this.stats.count = result.length;
     return result;
   }
 

+ 3 - 0
public/app/panels/table/transformers.ts

@@ -78,6 +78,9 @@ transformers['timeseries_aggregations'] = {
       {text: 'Avg', value: 'avg'},
       {text: 'Min', value: 'min'},
       {text: 'Max', value: 'max'},
+      {text: 'Total', value: 'total'},
+      {text: 'Current', value: 'current'},
+      {text: 'Count', value: 'count'},
     ];
   },
   transform: function(data, panel, model) {