@yugabytedb/perf-advisor-ui 1.0.171 → 1.0.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/ChartCard/ChartCard.d.ts +5 -1
- package/dist/common/ChartCard/ChartCard.styles.d.ts +3 -0
- package/dist/components/GanttChart/adapters/backgroundJobsAdapter.d.ts +1 -1
- package/dist/components/PrimaryDashboard/DetectedAnomalies.d.ts +3 -0
- package/dist/components/PrimaryDashboard/useChartData.d.ts +2 -1
- package/dist/components/SecondaryDashboard/DrilldownView/QPMPlanSelector.d.ts +5 -3
- package/dist/components/SecondaryDashboard/QPMLoadChart/QPMLoadChart.d.ts +22 -0
- package/dist/components/SecondaryDashboard/QPMLoadChart/index.d.ts +4 -0
- package/dist/components/SecondaryDashboard/QPMLoadChart/qpmLoadConfig.d.ts +8 -0
- package/dist/components/SecondaryDashboard/QPMLoadChart/types.d.ts +9 -0
- package/dist/components/SecondaryDashboard/QPMLoadChart/useQpmLoadData.d.ts +15 -0
- package/dist/esm/index.js +13424 -12994
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/dtos.d.ts +4 -10
- package/dist/helpers/planLoadText.d.ts +12 -0
- package/dist/helpers/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,9 +22,13 @@ export interface ChartCardProps {
|
|
|
22
22
|
onExpand?: () => void;
|
|
23
23
|
/** Marks this instance as the fullscreen copy rendered inside ExpandedChartModal. */
|
|
24
24
|
isExpanded?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Rendered inside a container that already supplies a frame and a title.
|
|
27
|
+
*/
|
|
28
|
+
embedded?: boolean;
|
|
25
29
|
/** Explicit card height in px. Defaults to the standard in-grid card height. */
|
|
26
30
|
chartHeight?: number;
|
|
27
31
|
onEChartsDateSelect: (start: number, end: number) => void;
|
|
28
32
|
onFilterBarData?: (data: string[]) => void;
|
|
29
33
|
}
|
|
30
|
-
export declare const ChartCard: ({ title, titleInfo, headerRightSlot, data, chartType, isLoading, isError, errorText, metricKey, timezone, config, rescaleYAxisOnLegendToggle, renderError, onExpand, isExpanded, chartHeight, onEChartsDateSelect, onFilterBarData }: ChartCardProps) => JSX.Element;
|
|
34
|
+
export declare const ChartCard: ({ title, titleInfo, headerRightSlot, data, chartType, isLoading, isError, errorText, metricKey, timezone, config, rescaleYAxisOnLegendToggle, renderError, onExpand, isExpanded, embedded, chartHeight, onEChartsDateSelect, onFilterBarData }: ChartCardProps) => JSX.Element;
|
|
@@ -4,5 +4,8 @@ export interface ChartCardStyleProps {
|
|
|
4
4
|
cardHeight?: number;
|
|
5
5
|
/** Fullscreen copy: the dialog provides the frame, so drop the card border. */
|
|
6
6
|
isExpanded?: boolean;
|
|
7
|
+
/** Rendered inside a container that supplies its own frame and title. */
|
|
8
|
+
embedded?: boolean;
|
|
9
|
+
showTitleRow?: boolean;
|
|
7
10
|
}
|
|
8
11
|
export declare const useChartCardStyles: (props: ChartCardStyleProps) => import('@material-ui/styles').ClassNameMap<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TransformedBackgroundTasksResponse } from '../../../helpers/dtos';
|
|
2
2
|
import { GanttAdapterResult } from '../types';
|
|
3
|
-
export declare function backgroundJobsAdapter(data: TransformedBackgroundTasksResponse | null | undefined, colorMap: Record<string, string
|
|
3
|
+
export declare function backgroundJobsAdapter(data: TransformedBackgroundTasksResponse | null | undefined, colorMap: Record<string, string>, chartEndTime?: Date): GanttAdapterResult;
|
|
@@ -10,6 +10,9 @@ export interface IDetectedAnomalies {
|
|
|
10
10
|
currentTab?: InsightsTabs;
|
|
11
11
|
anomalyGroupsFetchError?: string;
|
|
12
12
|
anomalyGroups: AnomalyResponse | null;
|
|
13
|
+
includeInsights?: boolean;
|
|
14
|
+
showIncludeInsights?: boolean;
|
|
15
|
+
onIncludeInsightsChange?: (includeInsights: boolean) => void;
|
|
13
16
|
onClickShowMoreAnomalies: (category: string) => void;
|
|
14
17
|
fetchAnomalyGroups: UseQueryResult<AnomalyResponse, unknown>;
|
|
15
18
|
onSelectedIssue?: (troubleshootUuid: string, params?: PAUrlParams) => void;
|
|
@@ -19,6 +19,7 @@ export interface UseChartDataArgs {
|
|
|
19
19
|
splitCount: number;
|
|
20
20
|
aggregation: Aggregation;
|
|
21
21
|
deps: unknown[];
|
|
22
|
+
requestKey?: string;
|
|
22
23
|
}
|
|
23
24
|
export interface UseChartDataResult {
|
|
24
25
|
data: ClusterLoadResponseData[] | null;
|
|
@@ -26,4 +27,4 @@ export interface UseChartDataResult {
|
|
|
26
27
|
isError: boolean;
|
|
27
28
|
errorText: string | undefined;
|
|
28
29
|
}
|
|
29
|
-
export declare const useChartData: ({ apiUrl, universeUuid, startTime, endTime, isAshEnabled, metrics, filters, splitType, splitMode, splitCount, aggregation, deps }: UseChartDataArgs) => UseChartDataResult;
|
|
30
|
+
export declare const useChartData: ({ apiUrl, universeUuid, startTime, endTime, isAshEnabled, metrics, filters, splitType, splitMode, splitCount, aggregation, deps, requestKey }: UseChartDataArgs) => UseChartDataResult;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ProcessedQueryPlan } from '../../../helpers/utils';
|
|
2
|
+
import { QpmPlanSelection } from '../QPMLoadChart/types';
|
|
2
3
|
interface QPMPlanSelectorProps {
|
|
3
4
|
plans: ProcessedQueryPlan[];
|
|
4
|
-
|
|
5
|
+
value: QpmPlanSelection;
|
|
5
6
|
loading?: boolean;
|
|
6
|
-
|
|
7
|
+
includeAllOption?: boolean;
|
|
8
|
+
onChange: (selection: QpmPlanSelection) => void;
|
|
7
9
|
}
|
|
8
|
-
export declare const QPMPlanSelector: ({ plans, loading, onChange,
|
|
10
|
+
export declare const QPMPlanSelector: ({ plans, loading, onChange, value, includeAllOption }: QPMPlanSelectorProps) => JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { QpmPlanSelection } from './types';
|
|
2
|
+
import { PlanLoadDisabledReason } from '../../../helpers/planLoadText';
|
|
3
|
+
import { ProcessedQueryPlan } from '../../../helpers/utils';
|
|
4
|
+
import { AppName } from '../../../helpers/dtos';
|
|
5
|
+
export interface QPMLoadChartProps {
|
|
6
|
+
plans: ProcessedQueryPlan[];
|
|
7
|
+
selection: QpmPlanSelection | null;
|
|
8
|
+
disabledReason: PlanLoadDisabledReason | null;
|
|
9
|
+
dateTimeRange: {
|
|
10
|
+
startDateTime: Date;
|
|
11
|
+
endDateTime: Date;
|
|
12
|
+
};
|
|
13
|
+
universeUuid: string;
|
|
14
|
+
appName: AppName;
|
|
15
|
+
apiUrl: string;
|
|
16
|
+
queryId?: string;
|
|
17
|
+
dbId?: number;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
timezone?: string;
|
|
20
|
+
onEChartsDateSelect?: (start: number, end: number) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const QPMLoadChart: ({ plans, selection, disabledReason, dateTimeRange, universeUuid, appName, apiUrl, queryId, dbId, isLoading, timezone, onEChartsDateSelect }: QPMLoadChartProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChartConfig } from '../../../common/ChartCard';
|
|
2
|
+
import { WaitEventClassification } from '../../../helpers/dtos';
|
|
3
|
+
export interface QpmLoadConfigOptions {
|
|
4
|
+
colorByName: Record<string, string>;
|
|
5
|
+
groupBy: WaitEventClassification;
|
|
6
|
+
isShowAll: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const makeQpmLoadConfig: ({ colorByName, groupBy, isShowAll }: QpmLoadConfigOptions) => ChartConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WaitEventClassification } from '../../../helpers/dtos';
|
|
2
|
+
export declare const QPM_ALL_PLANS = "ALL";
|
|
3
|
+
export type QpmPlanSelection = string;
|
|
4
|
+
export declare const QPM_UNATTRIBUTED_PLAN = "No plan recorded";
|
|
5
|
+
export declare const QPM_UNATTRIBUTED_PLAN_COLOR = "#97A5B0";
|
|
6
|
+
export declare const QPM_GROUP_BY_OPTIONS: ReadonlyArray<{
|
|
7
|
+
value: WaitEventClassification;
|
|
8
|
+
label: string;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseChartDataResult } from '../../PrimaryDashboard/useChartData';
|
|
2
|
+
import { WaitEventClassification } from '../../../helpers/dtos';
|
|
3
|
+
import { QpmPlanSelection } from './types';
|
|
4
|
+
export interface UseQpmLoadDataArgs {
|
|
5
|
+
startDateTime: Date;
|
|
6
|
+
endDateTime: Date;
|
|
7
|
+
selection: QpmPlanSelection;
|
|
8
|
+
groupBy: WaitEventClassification;
|
|
9
|
+
universeUuid: string;
|
|
10
|
+
apiUrl: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
queryId?: string;
|
|
13
|
+
dbId?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const useQpmLoadData: ({ startDateTime, endDateTime, selection, groupBy, universeUuid, apiUrl, enabled, queryId, dbId }: UseQpmLoadDataArgs) => UseChartDataResult;
|