File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
src/src/services/models/explorer Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import moment from 'moment' ;
22import { saveAs } from 'file-saver' ;
33import _ from 'lodash-es' ;
4+ import { config } from 'yargs' ;
45
56import { IAxesScaleRange } from 'components/AxesPropsPopover' ;
67
@@ -303,6 +304,7 @@ function getMetricsAppModelMethods(
303304
304305 if ( queryString ) {
305306 configData . select . query = queryString ;
307+ configData . select . advancedMode = false ;
306308 }
307309
308310 let metrics = getMetricsListFromSelect ( configData ?. select ) ;
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ function getParamsModelMethods(
396396 const metricHash = getMetricHash ( trace . name , trace . context ) ;
397397 // TODO: Implement Support for the new metric value API format
398398 // metricsRowValues[metricHash] = formatValue(trace.values.last);
399- metricsRowValues [ metricHash ] = formatValue ( trace . last_value . last ) ;
399+ metricsRowValues [ metricHash ] = formatValue ( trace . values . last ) ;
400400 } ) ;
401401 const rowValues : any = {
402402 rowMeta : {
Original file line number Diff line number Diff line change @@ -714,7 +714,7 @@ function getRunsModelMethods(
714714 const metricHash = getMetricHash ( trace . name , trace . context ) ;
715715 // TODO: Implement Support for the new metric value API format
716716 metricsRowValues [ metricHash ] = formatValue (
717- trace . last_value . last ,
717+ trace . values . last ,
718718 // trace.values[metricsValueKey],
719719 ) ;
720720 } ) ;
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ function getScattersModelMethods(
389389 _ . isEqual ( trace . context , value ?. context )
390390 ) {
391391 // TODO: Revert this back to trace.values.last;
392- let lastValue = trace . last_value . last ;
392+ let lastValue = trace . values . last ;
393393 const formattedLastValue = formatValue ( lastValue , '-' ) ;
394394 values [ i ] = lastValue ;
395395 if ( formattedLastValue !== '-' ) {
@@ -565,7 +565,7 @@ function getScattersModelMethods(
565565 metric . run . traces . metric . forEach ( ( trace : any ) => {
566566 const metricHash = getMetricHash ( trace . name , trace . context as any ) ;
567567 // TODO: Implement Support for the new metric value API format
568- metricsRowValues [ metricHash ] = formatValue ( trace . last_value . last ) ;
568+ metricsRowValues [ metricHash ] = formatValue ( trace . values . last ) ;
569569 //metricsRowValues[metricHash] = formatValue(trace.values.last);
570570 } ) ;
571571 const rowValues : any = {
@@ -765,7 +765,7 @@ function getScattersModelMethods(
765765 metricsValues [ metricHash ] = {
766766 min : '-' ,
767767 max : '-' ,
768- last : traceOldAPI . last_value . last ,
768+ last : traceOldAPI . values . last ,
769769 first : '-' ,
770770 } ;
771771 } ) ;
You can’t perform that action at this time.
0 commit comments