|
@@ -1,18 +1,47 @@
|
|
|
import {usePageError} from 'app/utils/performance/contexts/pageError';
|
|
|
+import {PerformanceDisplayProvider} from 'app/utils/performance/contexts/performanceDisplayContext';
|
|
|
|
|
|
import Table from '../../table';
|
|
|
+import {PROJECT_PERFORMANCE_TYPE} from '../../utils';
|
|
|
import {BACKEND_COLUMN_TITLES} from '../data';
|
|
|
+import {DoubleChartRow, TripleChartRow} from '../widgets/components/widgetChartRow';
|
|
|
+import {PerformanceWidgetSetting} from '../widgets/widgetDefinitions';
|
|
|
|
|
|
import {BasePerformanceViewProps} from './types';
|
|
|
|
|
|
export function BackendView(props: BasePerformanceViewProps) {
|
|
|
return (
|
|
|
- <div>
|
|
|
- <Table
|
|
|
- {...props}
|
|
|
- columnTitles={BACKEND_COLUMN_TITLES}
|
|
|
- setError={usePageError().setPageError}
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <PerformanceDisplayProvider value={{performanceType: PROJECT_PERFORMANCE_TYPE.ANY}}>
|
|
|
+ <div>
|
|
|
+ <TripleChartRow
|
|
|
+ {...props}
|
|
|
+ allowedCharts={[
|
|
|
+ PerformanceWidgetSetting.APDEX_AREA,
|
|
|
+ PerformanceWidgetSetting.TPM_AREA,
|
|
|
+ PerformanceWidgetSetting.FAILURE_RATE_AREA,
|
|
|
+ PerformanceWidgetSetting.USER_MISERY_AREA,
|
|
|
+ PerformanceWidgetSetting.P50_DURATION_AREA,
|
|
|
+ PerformanceWidgetSetting.P75_DURATION_AREA,
|
|
|
+ PerformanceWidgetSetting.P95_DURATION_AREA,
|
|
|
+ PerformanceWidgetSetting.P99_DURATION_AREA,
|
|
|
+ PerformanceWidgetSetting.DURATION_HISTOGRAM,
|
|
|
+ ]}
|
|
|
+ />
|
|
|
+ <DoubleChartRow
|
|
|
+ {...props}
|
|
|
+ allowedCharts={[
|
|
|
+ PerformanceWidgetSetting.SLOW_HTTP_OPS,
|
|
|
+ PerformanceWidgetSetting.SLOW_DB_OPS,
|
|
|
+ PerformanceWidgetSetting.MOST_IMPROVED,
|
|
|
+ PerformanceWidgetSetting.MOST_REGRESSED,
|
|
|
+ ]}
|
|
|
+ />
|
|
|
+ <Table
|
|
|
+ {...props}
|
|
|
+ columnTitles={BACKEND_COLUMN_TITLES}
|
|
|
+ setError={usePageError().setPageError}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </PerformanceDisplayProvider>
|
|
|
);
|
|
|
}
|