@yugabytedb/perf-advisor-ui 1.0.3 → 1.0.5
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 +1 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/types.d.ts +31 -5
- package/package.json +5 -3
package/dist/types.d.ts
CHANGED
|
@@ -176,6 +176,10 @@ declare enum WaitEventClassification {
|
|
|
176
176
|
QUERY_ID = "queryId",
|
|
177
177
|
TABLET_ID = "tabletId"
|
|
178
178
|
}
|
|
179
|
+
declare const GroupEventsParam: {
|
|
180
|
+
waitEventType: string;
|
|
181
|
+
waitEvent: string;
|
|
182
|
+
};
|
|
179
183
|
interface AggregatedLineSettings {
|
|
180
184
|
aggregateBy: GraphFilters;
|
|
181
185
|
excludeFiltered: boolean;
|
|
@@ -252,7 +256,8 @@ declare enum AppName {
|
|
|
252
256
|
}
|
|
253
257
|
declare enum QueryType {
|
|
254
258
|
SQL = "SQL",
|
|
255
|
-
CQL = "CQL"
|
|
259
|
+
CQL = "CQL",
|
|
260
|
+
BACKGROUND = "BACKGROUND"
|
|
256
261
|
}
|
|
257
262
|
declare enum GraphType {
|
|
258
263
|
SINGLE_SUPPORTING = "SINGLE_SUPPORTING",
|
|
@@ -262,7 +267,13 @@ declare enum GraphType {
|
|
|
262
267
|
interface QueryWaitEvents {
|
|
263
268
|
eps: number;
|
|
264
269
|
waitEventType: string;
|
|
270
|
+
waitEvent: string;
|
|
265
271
|
}
|
|
272
|
+
declare const WAIT_EVENT_MAPPING: {
|
|
273
|
+
readonly waitEventType: "Wait Event Type";
|
|
274
|
+
readonly waitEvent: "Wait Event";
|
|
275
|
+
};
|
|
276
|
+
declare const GROUP_BY_OPERATIONS: readonly [WaitEventClassification.WAIT_EVENT_TYPE, WaitEventClassification.WAIT_EVENT];
|
|
266
277
|
interface UrlParams {
|
|
267
278
|
queryId: string | undefined;
|
|
268
279
|
startTime?: string | null;
|
|
@@ -271,6 +282,7 @@ interface UrlParams {
|
|
|
271
282
|
dbId?: string | null;
|
|
272
283
|
universeId: string | null;
|
|
273
284
|
userId?: string | null;
|
|
285
|
+
type: QueryType | null;
|
|
274
286
|
}
|
|
275
287
|
interface MetadataFields {
|
|
276
288
|
id: string;
|
|
@@ -320,6 +332,7 @@ interface QueryPageParams extends TPUrlParams {
|
|
|
320
332
|
queryId?: string | null;
|
|
321
333
|
universeId?: string | null;
|
|
322
334
|
userId?: string | null;
|
|
335
|
+
type: QueryType | null;
|
|
323
336
|
}
|
|
324
337
|
interface TPUrlParams {
|
|
325
338
|
duration?: string | null;
|
|
@@ -543,6 +556,13 @@ interface PerfAdvisorEntryProps {
|
|
|
543
556
|
}
|
|
544
557
|
declare const PerfAdvisorEntry: ({ timezone, universeUuid, appName, apiUrl, onSelectedIssue, onSelectedQuery }: PerfAdvisorEntryProps) => JSX.Element;
|
|
545
558
|
|
|
559
|
+
interface TroubleshootConfigurationProps {
|
|
560
|
+
apiUrl: string;
|
|
561
|
+
customerUuid: string;
|
|
562
|
+
appName: AppName;
|
|
563
|
+
}
|
|
564
|
+
declare const ConfigureUniverseMetadata: ({ apiUrl, customerUuid, appName }: TroubleshootConfigurationProps) => JSX.Element;
|
|
565
|
+
|
|
546
566
|
interface RuntimeConfigsProps {
|
|
547
567
|
apiUrl: string;
|
|
548
568
|
appName: AppName;
|
|
@@ -616,7 +636,7 @@ declare class ApiService {
|
|
|
616
636
|
fetchAnomalyGroupsByType: (universeUuid: string, startTime: string, endTime: string, anomalyType: string, apiUrl?: string) => Promise<AnomalyGroup[]>;
|
|
617
637
|
fetchAnomalyGroupById: (universeUuid: string, anomalyGroupId: string, startTime: string, endTime: string, apiUrl?: string) => {};
|
|
618
638
|
}
|
|
619
|
-
declare const
|
|
639
|
+
declare const PerfAdvisorAPI: ApiService;
|
|
620
640
|
|
|
621
641
|
type MUIButtonProps = ButtonProps & Partial<LinkProps>;
|
|
622
642
|
interface YBButtonProps extends Omit<MUIButtonProps, 'variant' | 'color' | 'classes'> {
|
|
@@ -925,9 +945,10 @@ declare const metricOutlierSelectors: readonly [{
|
|
|
925
945
|
readonly label: "Bottom";
|
|
926
946
|
}];
|
|
927
947
|
declare const TABLE_REQUEST_GRAPHS: string[];
|
|
928
|
-
declare const
|
|
948
|
+
declare const SQL_QUERY_REQUEST_GRAPHS: string[];
|
|
929
949
|
declare const CQL_QUERY_REQUEST_GRAPHS: string[];
|
|
930
|
-
declare const
|
|
950
|
+
declare const BACKGROUND_QUERY_REQUEST_GRAPHS: string[];
|
|
951
|
+
declare const CATALOG_READ_REQUEST_GRAPH = "ysql_connections_per_sec";
|
|
931
952
|
declare const ASH_GROUPBY_VALUES: {
|
|
932
953
|
WAIT_EVENT_COMPONENT: string;
|
|
933
954
|
WAIT_EVENT_CLASS: string;
|
|
@@ -1179,6 +1200,11 @@ declare const METRIC_NAMES: {
|
|
|
1179
1200
|
automatic_split_manager_time: string;
|
|
1180
1201
|
};
|
|
1181
1202
|
declare const METRICS_SESSION_STORAGE_KEY = "METRICS_NAMES";
|
|
1203
|
+
declare const METRICS_OUTLIER_TABLES_STORAGE_KEY = "METRICS_OUTLIER_TABLES_NAMES";
|
|
1204
|
+
declare const COLORS: string[];
|
|
1205
|
+
declare const NAME_COLOR_MAPPING: {
|
|
1206
|
+
[key: string]: string;
|
|
1207
|
+
};
|
|
1182
1208
|
|
|
1183
1209
|
declare function isDefinedNotNull(obj: any): boolean;
|
|
1184
1210
|
declare function isEmptyArray(arr: any): boolean;
|
|
@@ -1194,4 +1220,4 @@ declare function isYAxisGreaterThanThousand(dataArray: any): boolean;
|
|
|
1194
1220
|
declare function divideYAxisByThousand(dataArray: any): any;
|
|
1195
1221
|
declare function timeFormatXAxis(dataArray: any, timezone: string | undefined): any;
|
|
1196
1222
|
|
|
1197
|
-
export { 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, CATEGORY_HEADER_DATA_MAP, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, DB_TAG, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GenericFailure, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_SESSION_STORAGE_KEY, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERY_DETAILS, QUERY_KEY,
|
|
1223
|
+
export { 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, CQL_QUERY_REQUEST_GRAPHS, ClusterLoadResponseData, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_TAG, 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_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, 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, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERY_DETAILS, QUERY_KEY, QueryPageParams, QueryType, QueryWaitEvents, RCAGuideline, 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, TPUrlParams, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBCodeBlockCopy, YBDateTimePicker, YBErrorIndicator, YBInfinitePagination, YBInput, YBInputField, YBLabel, YBModal, YBPagination, YBPanelItem, YBSelect, YBTable, YBToggle, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, divideYAxisByThousand, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, removeNullProperties, timeFormatXAxis, useCodeBlockStyles };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugabytedb/perf-advisor-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"types": "dist/types.d.ts",
|
|
6
6
|
"author": "Rajagopalan Madhavan",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"react": "17.0.2",
|
|
58
58
|
"react-dom": "17.0.2",
|
|
59
59
|
"react-hook-form": "7.40.0",
|
|
60
|
-
"react-i18next": "12.2.0",
|
|
61
60
|
"react-query": "3.32.1",
|
|
62
61
|
"react-router": "3.2.6",
|
|
63
62
|
"react-router-dom": "5.3.3",
|
|
@@ -75,9 +74,11 @@
|
|
|
75
74
|
"@material-ui/core": "4.12.3",
|
|
76
75
|
"@material-ui/icons": "4.11.2",
|
|
77
76
|
"@material-ui/lab": "4.0.0-alpha.58",
|
|
77
|
+
"mui-datatables": "3.8.5",
|
|
78
78
|
"react": "17.0.2",
|
|
79
79
|
"react-dom": "17.0.2",
|
|
80
|
-
"react-query": "3.32.1"
|
|
80
|
+
"react-query": "3.32.1",
|
|
81
|
+
"vis-timeline": "^7.7.3"
|
|
81
82
|
},
|
|
82
83
|
"scripts": {
|
|
83
84
|
"start": "rollup start",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"changelog": "standard-version",
|
|
87
88
|
"release": "npm install && npm run build && npm publish"
|
|
88
89
|
},
|
|
90
|
+
"sideEffects": false,
|
|
89
91
|
"eslintConfig": {
|
|
90
92
|
"extends": [
|
|
91
93
|
"react-app",
|