@yugabytedb/perf-advisor-ui 1.0.162 → 1.0.163
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/components/RuntimeConfigs/ResetRuntimeConfig.d.ts +3 -1
- package/dist/components/RuntimeConfigs/RuntimeConfigs.d.ts +2 -1
- package/dist/components/RuntimeConfigs/ScopeEntitySelect.d.ts +12 -0
- package/dist/components/RuntimeConfigs/ScopeSelector.d.ts +8 -0
- package/dist/components/RuntimeConfigs/UpdateRuntimeConfig.d.ts +3 -1
- package/dist/components/RuntimeConfigs/helpers.d.ts +10 -0
- package/dist/components/RuntimeConfigs/runtimeConfigColumns.d.ts +11 -0
- package/dist/components/RuntimeConfigs/types.d.ts +11 -0
- package/dist/components/SecondaryDashboard/DrilldownView/BindVariablesSection.d.ts +10 -0
- package/dist/components/SecondaryDashboard/DrilldownView/BindVariablesToggleDialog.d.ts +10 -0
- package/dist/components/SecondaryDashboard/DrilldownView/QpmInstructionText.d.ts +5 -0
- package/dist/components/SecondaryDashboard/DrilldownView/QueryPlanManagement.d.ts +3 -1
- package/dist/components/SecondaryDashboard/DrilldownView/useBindVariablesCollection.d.ts +8 -0
- package/dist/esm/index.js +12796 -12314
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/bindVariablesText.d.ts +26 -0
- package/dist/helpers/constants.d.ts +3 -0
- package/dist/helpers/dtos.d.ts +11 -0
- package/dist/helpers/gflagUtils.d.ts +4 -0
- package/package.json +1 -1
|
@@ -5,10 +5,12 @@ interface ResetRuntimeConfigProps {
|
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onActionPerformed: () => void;
|
|
7
7
|
apiUrl: string;
|
|
8
|
+
scopeUuid: string;
|
|
9
|
+
scopeLabel: string;
|
|
8
10
|
toast: {
|
|
9
11
|
success: (message: string) => void;
|
|
10
12
|
error: (message: string) => void;
|
|
11
13
|
};
|
|
12
14
|
}
|
|
13
|
-
export declare const ResetRuntimeConfig: ({ data, open, apiUrl, onClose, onActionPerformed, toast }: ResetRuntimeConfigProps) => JSX.Element;
|
|
15
|
+
export declare const ResetRuntimeConfig: ({ data, open, apiUrl, scopeUuid, scopeLabel, onClose, onActionPerformed, toast }: ResetRuntimeConfigProps) => JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -2,10 +2,11 @@ import { AppName } from '../../helpers/dtos';
|
|
|
2
2
|
interface RuntimeConfigsProps {
|
|
3
3
|
apiUrl: string;
|
|
4
4
|
appName: AppName;
|
|
5
|
+
customerUuid?: string;
|
|
5
6
|
toast: {
|
|
6
7
|
success: (message: string) => void;
|
|
7
8
|
error: (message: string) => void;
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
|
-
export declare const RuntimeConfigs: ({ apiUrl, appName, toast }: RuntimeConfigsProps) => JSX.Element;
|
|
11
|
+
export declare const RuntimeConfigs: ({ apiUrl, appName, customerUuid, toast }: RuntimeConfigsProps) => JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ScopeOption } from './types';
|
|
2
|
+
interface ScopeEntitySelectProps {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
options: ScopeOption[];
|
|
7
|
+
value: ScopeOption | null;
|
|
8
|
+
dataTestId: string;
|
|
9
|
+
onChange: (option: ScopeOption | null) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ScopeEntitySelect: ({ label, placeholder, className, options, value, dataTestId, onChange }: ScopeEntitySelectProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScopeSelection } from './types';
|
|
2
|
+
interface ScopeSelectorProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
customerUuid?: string;
|
|
5
|
+
onChange: (selection: ScopeSelection) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ScopeSelector: ({ apiUrl, customerUuid, onChange }: ScopeSelectorProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -5,10 +5,12 @@ interface UpdateRuntimeConfigProps {
|
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onActionPerformed: () => void;
|
|
7
7
|
apiUrl: string;
|
|
8
|
+
scopeUuid: string;
|
|
9
|
+
scopeLabel: string;
|
|
8
10
|
toast: {
|
|
9
11
|
success: (message: string) => void;
|
|
10
12
|
error: (message: string) => void;
|
|
11
13
|
};
|
|
12
14
|
}
|
|
13
|
-
export declare const UpdateRuntimeConfig: ({ data, open, apiUrl, onClose, onActionPerformed, toast }: UpdateRuntimeConfigProps) => JSX.Element;
|
|
15
|
+
export declare const UpdateRuntimeConfig: ({ data, open, apiUrl, scopeUuid, scopeLabel, onClose, onActionPerformed, toast }: UpdateRuntimeConfigProps) => JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MetadataFields, RuntimeConfigScopeLevel, UniverseDetailsListItem } from '../../helpers/dtos';
|
|
2
|
+
import { ScopeOption, ScopeSelection } from './types';
|
|
3
|
+
export declare const CONTROL_HEIGHT = "32px";
|
|
4
|
+
export declare const SCOPE_LEVEL_LABELS: Record<RuntimeConfigScopeLevel, string>;
|
|
5
|
+
export declare const GLOBAL_SCOPE: ScopeSelection;
|
|
6
|
+
export declare const resolveScopePrompt: (level: RuntimeConfigScopeLevel) => string;
|
|
7
|
+
export declare const toUniverseOption: (universe: UniverseDetailsListItem) => ScopeOption;
|
|
8
|
+
export declare const toCustomerOption: (customer: MetadataFields) => ScopeOption;
|
|
9
|
+
export declare const toPinnedCustomerOption: (customerUuid: string) => ScopeOption;
|
|
10
|
+
export declare const toScopeSelection: (level: RuntimeConfigScopeLevel, option: ScopeOption | null) => ScopeSelection;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { YBTableColumn } from '@yugabyte-ui-library/core';
|
|
2
|
+
import { RuntimeConfigData } from '../../helpers/dtos';
|
|
3
|
+
interface RuntimeConfigColumnsProps {
|
|
4
|
+
configs: RuntimeConfigData[];
|
|
5
|
+
onUpdate: (config: RuntimeConfigData) => void;
|
|
6
|
+
onReset: (config: RuntimeConfigData) => void;
|
|
7
|
+
isStandby: boolean;
|
|
8
|
+
standbyDisabledTooltip: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const runtimeConfigColumns: ({ configs, onUpdate, onReset, isStandby, standbyDisabledTooltip }: RuntimeConfigColumnsProps) => YBTableColumn[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RuntimeConfigScopeLevel } from '../../helpers/dtos';
|
|
2
|
+
export type ScopeOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
};
|
|
7
|
+
export interface ScopeSelection {
|
|
8
|
+
level: RuntimeConfigScopeLevel;
|
|
9
|
+
uuid: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppName } from '../../../helpers/dtos';
|
|
2
|
+
interface BindVariablesSectionProps {
|
|
3
|
+
bindVariables?: string;
|
|
4
|
+
universeUuid: string;
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
appName: AppName;
|
|
7
|
+
gflagEnabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const BindVariablesSection: ({ bindVariables, universeUuid, apiUrl, appName, gflagEnabled }: BindVariablesSectionProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppName } from '../../../helpers/dtos';
|
|
2
|
+
interface BindVariablesToggleDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
nextValue: boolean;
|
|
5
|
+
appName: AppName;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const BindVariablesToggleDialog: ({ open, nextValue, appName, onConfirm, onClose }: BindVariablesToggleDialogProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -8,9 +8,11 @@ interface QueryPlanManagementProps {
|
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
isRefetching?: boolean;
|
|
10
10
|
universeDetails: Universe;
|
|
11
|
+
universeUuid: string;
|
|
12
|
+
apiUrl: string;
|
|
11
13
|
appName: AppName;
|
|
12
14
|
showQueriesExport?: boolean;
|
|
13
15
|
onEChartsDateSelect?: (start: number, end: number) => void;
|
|
14
16
|
}
|
|
15
|
-
export declare const QueryPlanManagement: ({ universeDetails, queryPlanData, dateTimeRange, isLoading, isRefetching, appName, showQueriesExport, onEChartsDateSelect }: QueryPlanManagementProps) => JSX.Element;
|
|
17
|
+
export declare const QueryPlanManagement: ({ universeDetails, universeUuid, apiUrl, queryPlanData, dateTimeRange, isLoading, isRefetching, appName, showQueriesExport, onEChartsDateSelect }: QueryPlanManagementProps) => JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BindVariablesCollection {
|
|
2
|
+
isCollectionEnabled: boolean;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isToggling: boolean;
|
|
5
|
+
toggle: (nextValue: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const useBindVariablesCollection: (universeUuid: string, apiUrl: string, enabled: boolean) => BindVariablesCollection;
|
|
8
|
+
export {};
|