export default class NameDict { private metricDisplayNames = { iter8_request_count : 'Request Count' , iter8_total_latency : 'Total Latency (sec)' , iter8_error_count : 'Error Count' , iter8_mean_latency : 'Mean Latency (sec)' , iter8_error_rate : 'Error Rate' } ; private algoDisplayNames = { uniform : 'Uniform Split' , random : 'Random Split' , progressive : 'Progressive Split' , top_2 : 'Top Two Split' } ; public advancedStatisticsNames = { 'Credible Interval' : 'credible_interval' } ; public getMetricName ( configName ) { if ( configName in this . metricDisplayNames ) return this . metricDisplayNames [ configName ] ; else { console . log ( 'Metric name is not registed in the dictionary.' ) ; return configName ; } } public getAlgoName ( algoName ) { if ( algoName in this . algoDisplayNames ) return this . algoDisplayNames [ algoName ] ; else { console . log ( 'Algorithm name is not registered in the dictionary.' ) ; return algoName ; } } }