@yugabytedb/perf-advisor-ui 1.0.55 → 1.0.57
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/types.d.ts +40 -27
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -236,6 +236,13 @@ declare const SplitType: {
|
|
|
236
236
|
readonly NAMESPACE: "NAMESPACE";
|
|
237
237
|
};
|
|
238
238
|
type SplitType = typeof SplitType[keyof typeof SplitType];
|
|
239
|
+
declare const QueryTypeMode: {
|
|
240
|
+
readonly ALL: "All";
|
|
241
|
+
readonly SQL: "SQL";
|
|
242
|
+
readonly CQL: "CQL";
|
|
243
|
+
readonly BACKGROUND: "Background";
|
|
244
|
+
};
|
|
245
|
+
type QueryTypeMode = typeof QueryTypeMode[keyof typeof QueryTypeMode];
|
|
239
246
|
declare const Aggregation: {
|
|
240
247
|
readonly AVERAGE: "AVG";
|
|
241
248
|
readonly MAX: "MAX";
|
|
@@ -612,7 +619,7 @@ declare class ApiService {
|
|
|
612
619
|
fetchAnomalies: (universeUuid: string, startTime?: Date | null, endTime?: Date | null, apiUrl?: string) => Promise<Anomaly[]>;
|
|
613
620
|
fetchAnomaliesPage: (universeUuid: string, pageno: number, apiUrl?: string, records_to_fetch?: number, startTime?: Date | null, endTime?: Date | null, category?: any, searchInput?: string) => Promise<axios.AxiosResponse<Anomaly[]>>;
|
|
614
621
|
fetchQueriesPage: (universeUuid: string, payload: any) => Promise<axios.AxiosResponse<GraphRequestParams[]>>;
|
|
615
|
-
fetchQueriesStatsPage: (universeUuid: string, payload: any) => Promise<axios.AxiosResponse<GraphRequestParams[]>>;
|
|
622
|
+
fetchQueriesStatsPage: (universeUuid: string, payload: any, getClusterDetails: () => any, filteredLegends: string[]) => Promise<axios.AxiosResponse<GraphRequestParams[]>>;
|
|
616
623
|
fetchNamespaceSchemas: (universeUuid: string, namespaceName: string, apiUrl?: string) => Promise<string[]>;
|
|
617
624
|
fetchQueryStats: (universeUuid: string, payload: any, apiUrl?: string) => Promise<string[]>;
|
|
618
625
|
fetchTablesPage: (universeUuid: string, payload: any) => Promise<axios.AxiosResponse<any[]>>;
|
|
@@ -637,7 +644,12 @@ declare class ApiService {
|
|
|
637
644
|
fetchSpecificRuntimeConfigs: (scopeUuid: string | undefined, keys: string[], apiUrl?: string) => Promise<string[]>;
|
|
638
645
|
updateRuntimeConfig: (scopeUuid: string | undefined, configKey: string, configValue: string, apiUrl?: string) => Promise<any>;
|
|
639
646
|
deleteRuntimeConfig: (scopeUuid: string | undefined, configKey: string, apiUrl?: string) => Promise<any>;
|
|
640
|
-
fetchAnomalyGroups: (universeUuid: string, startTime: string | null, endTime: string | null,
|
|
647
|
+
fetchAnomalyGroups: (universeUuid: string, startTime: string | null, endTime: string | null, anomalyType: string | undefined, getClusterDetails: () => {
|
|
648
|
+
cluster: string;
|
|
649
|
+
region: string;
|
|
650
|
+
zone: string;
|
|
651
|
+
node: string;
|
|
652
|
+
}, apiUrl?: string) => {};
|
|
641
653
|
fetchAnomalyGroupsByType: (universeUuid: string, startTime: string, endTime: string, anomalyType: string, apiUrl?: string) => Promise<AnomalyGroup[]>;
|
|
642
654
|
fetchAnomalyGroupById: (universeUuid: string, anomalyGroupId: string, startTime: string, endTime: string, apiUrl?: string) => {};
|
|
643
655
|
}
|
|
@@ -651,7 +663,7 @@ interface YBButtonProps extends Omit<MUIButtonProps, 'variant' | 'color' | 'clas
|
|
|
651
663
|
}
|
|
652
664
|
declare const YBButton: FC<YBButtonProps>;
|
|
653
665
|
|
|
654
|
-
interface CodeBlockProps
|
|
666
|
+
interface CodeBlockProps {
|
|
655
667
|
showCopyButton?: boolean;
|
|
656
668
|
multiBlock?: boolean;
|
|
657
669
|
codeClassName?: string;
|
|
@@ -667,26 +679,9 @@ interface CodeBlockProps$1 {
|
|
|
667
679
|
collapseLabel?: string;
|
|
668
680
|
onCopySuccess?: () => void;
|
|
669
681
|
}
|
|
670
|
-
declare const YBCodeBlock: FC<CodeBlockProps
|
|
671
|
-
|
|
672
|
-
interface CodeBlockProps {
|
|
673
|
-
showCopyButton?: boolean;
|
|
674
|
-
analyticsEventProps?: Record<string, string>;
|
|
675
|
-
multiBlock?: boolean;
|
|
676
|
-
codeClassName?: string;
|
|
677
|
-
preClassName?: string;
|
|
678
|
-
lang?: string;
|
|
679
|
-
containerClassName?: string;
|
|
680
|
-
text: string | string[] | React$1.ReactElement | React$1.ReactElement[];
|
|
681
|
-
dataTestId?: string;
|
|
682
|
-
enabledExpandCollapse?: boolean;
|
|
683
|
-
showExpandCollapse?: boolean;
|
|
684
|
-
collapseHeight?: number;
|
|
685
|
-
appName: AppName;
|
|
686
|
-
}
|
|
687
|
-
declare const YBCodeBlockCopy: FC<CodeBlockProps>;
|
|
682
|
+
declare const YBCodeBlock: FC<CodeBlockProps>;
|
|
688
683
|
|
|
689
|
-
declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"codeClassName" | "preClassName" | "containerClassName" | "searchBox" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryPreBlockWeb" | "queryCodeElement" | "queryCodeElementWeb" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn">;
|
|
684
|
+
declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"codeClassName" | "preClassName" | "containerClassName" | "searchBox" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryPreBlockWeb" | "queryPreBlockFull" | "queryCodeElement" | "queryCodeElementWeb" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn" | "preQueryBlock">;
|
|
690
685
|
|
|
691
686
|
interface YBErrorIndicatorProps {
|
|
692
687
|
type?: string;
|
|
@@ -838,7 +833,7 @@ interface YBPanelItemProps {
|
|
|
838
833
|
body: any;
|
|
839
834
|
title?: string;
|
|
840
835
|
}
|
|
841
|
-
declare const YBPanelItem: ({ noBackground, className, bodyClassName, children, body, header, title
|
|
836
|
+
declare const YBPanelItem: ({ noBackground, className, bodyClassName, children, body, header, title }: YBPanelItemProps) => JSX.Element;
|
|
842
837
|
|
|
843
838
|
interface CustomTableOptions extends MUIDataTableOptions {
|
|
844
839
|
customHeader?: ReactNode;
|
|
@@ -888,11 +883,10 @@ declare const YBToggleField: <T extends FieldValues>(props: YBInputFieldProps<T>
|
|
|
888
883
|
|
|
889
884
|
interface MetricSplitSelectorProps {
|
|
890
885
|
metricSplitSelectors: any;
|
|
891
|
-
anomalyData?:
|
|
892
|
-
shouldShowViewMetricsLabel?: boolean;
|
|
886
|
+
anomalyData?: AnomalyGroup | null;
|
|
893
887
|
onSplitTypeSelected: (selectedOption: MetricMeasure) => void;
|
|
894
888
|
}
|
|
895
|
-
declare const MetricSplitSelector: ({ metricSplitSelectors, onSplitTypeSelected,
|
|
889
|
+
declare const MetricSplitSelector: ({ metricSplitSelectors, onSplitTypeSelected, anomalyData }: MetricSplitSelectorProps) => JSX.Element;
|
|
896
890
|
|
|
897
891
|
interface OutlierSelectorProps {
|
|
898
892
|
metricOutlierSelectors: any;
|
|
@@ -939,6 +933,7 @@ declare const CPU_CORES = "# vCPU";
|
|
|
939
933
|
declare const MetricConsts: {
|
|
940
934
|
readonly NODE_AVERAGE: "Selected Nodes Average";
|
|
941
935
|
readonly ALL: "all";
|
|
936
|
+
readonly ALL_DATABASES: "All Databases";
|
|
942
937
|
readonly TOP: "top";
|
|
943
938
|
readonly PRIMARY: "PRIMARY";
|
|
944
939
|
};
|
|
@@ -975,6 +970,19 @@ declare const metricOutlierSelectors: readonly [{
|
|
|
975
970
|
readonly value: "BOTTOM";
|
|
976
971
|
readonly label: "Bottom";
|
|
977
972
|
}];
|
|
973
|
+
declare const queryTypeSelectors: readonly [{
|
|
974
|
+
readonly value: "All";
|
|
975
|
+
readonly label: "All Queries";
|
|
976
|
+
}, {
|
|
977
|
+
readonly value: "SQL";
|
|
978
|
+
readonly label: "SQL";
|
|
979
|
+
}, {
|
|
980
|
+
readonly value: "CQL";
|
|
981
|
+
readonly label: "CQL";
|
|
982
|
+
}, {
|
|
983
|
+
readonly value: "Background";
|
|
984
|
+
readonly label: "Background";
|
|
985
|
+
}];
|
|
978
986
|
declare const TABLE_REQUEST_GRAPHS: string[];
|
|
979
987
|
declare const SQL_QUERY_REQUEST_GRAPHS: string[];
|
|
980
988
|
declare const CQL_QUERY_REQUEST_GRAPHS: string[];
|
|
@@ -1041,11 +1049,16 @@ declare const filterDurations: readonly [{
|
|
|
1041
1049
|
}];
|
|
1042
1050
|
declare const CATEGORY_HEADER_DATA_MAP: Record<any, any>;
|
|
1043
1051
|
declare const QUERY_DETAILS = "QUERY DETAILS";
|
|
1052
|
+
declare const QUERY_TAG = "QUERY";
|
|
1053
|
+
declare const DB_CAPS_TAG_ = "DATABASE";
|
|
1054
|
+
declare const QUERY_TYPE_TAG = "QUERY TYPE";
|
|
1044
1055
|
declare const DB_TAG = "Database";
|
|
1045
1056
|
declare const USER_TAG = "User";
|
|
1046
1057
|
declare const TABLE_TAG = "Table";
|
|
1047
1058
|
declare const TABLET_TAG = "Tablet Id";
|
|
1059
|
+
declare const TABLET_ID_TAG = "TABLET ID";
|
|
1048
1060
|
declare const ANOMALY_TAG = "ANOMALY";
|
|
1061
|
+
declare const REGION_ZONE_TAG = "REGION/ZONE";
|
|
1049
1062
|
declare const REGION_TAG = "Region";
|
|
1050
1063
|
declare const ZONE_TAG = "Zone";
|
|
1051
1064
|
declare const MetricOrigin: {
|
|
@@ -1289,4 +1302,4 @@ declare const isValidObject: typeof isDefinedNotNull;
|
|
|
1289
1302
|
declare function removeNullProperties(obj: any): void;
|
|
1290
1303
|
declare function isYAxisGreaterThanThousand(dataArray: any): boolean;
|
|
1291
1304
|
|
|
1292
|
-
export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterLoadTabs, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_TAG, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GenericFailure, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_DATABASES_STORAGE_KEY, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_DB_RESOURCES_WITH_GRAPHS, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PAUrlParams, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QueryPageParams, QueryType, QueryWaitEvents, RCAGuideline, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock,
|
|
1305
|
+
export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterLoadTabs, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_CAPS_TAG_, DB_TAG, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GenericFailure, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_DATABASES_STORAGE_KEY, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_DB_RESOURCES_WITH_GRAPHS, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PAUrlParams, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QUERY_TAG, QUERY_TYPE_TAG, QueryPageParams, QueryType, QueryTypeMode, QueryWaitEvents, RCAGuideline, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, REGION_ZONE_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_ID_TAG, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBDateTimePicker, YBErrorIndicator, YBInfinitePagination, YBInput, YBInputField, YBLabel, YBModal, YBPagination, YBPanelItem, YBSelect, YBTable, YBToggle, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, otherSplitSelectors, queryTypeSelectors, removeNullProperties, useCodeBlockStyles };
|