@yugabytedb/perf-advisor-ui 1.0.86 → 1.0.87
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/esm/index.js +739 -766
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -21,113 +21,6 @@ import { TabContext, TabPanel } from '@material-ui/lab';
|
|
|
21
21
|
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
|
|
22
22
|
import { render as render$1 } from 'react-dom';
|
|
23
23
|
|
|
24
|
-
/******************************************************************************
|
|
25
|
-
Copyright (c) Microsoft Corporation.
|
|
26
|
-
|
|
27
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
28
|
-
purpose with or without fee is hereby granted.
|
|
29
|
-
|
|
30
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
31
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
32
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
33
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
34
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
35
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
36
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
37
|
-
***************************************************************************** */
|
|
38
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
39
|
-
|
|
40
|
-
var extendStatics = function(d, b) {
|
|
41
|
-
extendStatics = Object.setPrototypeOf ||
|
|
42
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
43
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
44
|
-
return extendStatics(d, b);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __extends(d, b) {
|
|
48
|
-
if (typeof b !== "function" && b !== null)
|
|
49
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
50
|
-
extendStatics(d, b);
|
|
51
|
-
function __() { this.constructor = d; }
|
|
52
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var __assign = function() {
|
|
56
|
-
__assign = Object.assign || function __assign(t) {
|
|
57
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
58
|
-
s = arguments[i];
|
|
59
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
60
|
-
}
|
|
61
|
-
return t;
|
|
62
|
-
};
|
|
63
|
-
return __assign.apply(this, arguments);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
function __rest(s, e) {
|
|
67
|
-
var t = {};
|
|
68
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
69
|
-
t[p] = s[p];
|
|
70
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
71
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
72
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
73
|
-
t[p[i]] = s[p[i]];
|
|
74
|
-
}
|
|
75
|
-
return t;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
82
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
83
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
84
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function __generator(thisArg, body) {
|
|
89
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
90
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
91
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
92
|
-
function step(op) {
|
|
93
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
94
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
95
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
96
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
97
|
-
switch (op[0]) {
|
|
98
|
-
case 0: case 1: t = op; break;
|
|
99
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
100
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
101
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
102
|
-
default:
|
|
103
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
104
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
105
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
106
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
107
|
-
if (t[2]) _.ops.pop();
|
|
108
|
-
_.trys.pop(); continue;
|
|
109
|
-
}
|
|
110
|
-
op = body.call(thisArg, _);
|
|
111
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
112
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function __spreadArray(to, from, pack) {
|
|
117
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
118
|
-
if (ar || !(i in from)) {
|
|
119
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
120
|
-
ar[i] = from[i];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
127
|
-
var e = new Error(message);
|
|
128
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
24
|
function toVal(mix) {
|
|
132
25
|
var k, y, str='';
|
|
133
26
|
|
|
@@ -400,8 +293,115 @@ var YBErrorIndicator = function (_a) {
|
|
|
400
293
|
if (type === 'universe') {
|
|
401
294
|
errorDisplayMessage = (jsx(Box$1, { children: "Seems like universe with UUID ".concat(uuid, " has issues or does not exist.") }));
|
|
402
295
|
}
|
|
403
|
-
return (jsxs(Box$1,
|
|
404
|
-
jsx(Box$1, { children: jsx("span",
|
|
296
|
+
return (jsxs(Box$1, { className: classes.errorContainer, children: [jsx(Box$1, { children: jsx("span", { children: 'Aww Snap.' }) }), jsx(Box$1, { children: errorDisplayMessage }), customErrorMessage &&
|
|
297
|
+
jsx(Box$1, { children: jsx("span", { className: classes.errorText, children: customErrorMessage }) }), jsx(Box$1, { children: errorRecoveryMessage })] }));
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/******************************************************************************
|
|
301
|
+
Copyright (c) Microsoft Corporation.
|
|
302
|
+
|
|
303
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
304
|
+
purpose with or without fee is hereby granted.
|
|
305
|
+
|
|
306
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
307
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
308
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
309
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
310
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
311
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
312
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
313
|
+
***************************************************************************** */
|
|
314
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
315
|
+
|
|
316
|
+
var extendStatics = function(d, b) {
|
|
317
|
+
extendStatics = Object.setPrototypeOf ||
|
|
318
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
319
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
320
|
+
return extendStatics(d, b);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
function __extends(d, b) {
|
|
324
|
+
if (typeof b !== "function" && b !== null)
|
|
325
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
326
|
+
extendStatics(d, b);
|
|
327
|
+
function __() { this.constructor = d; }
|
|
328
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
var __assign = function() {
|
|
332
|
+
__assign = Object.assign || function __assign(t) {
|
|
333
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
334
|
+
s = arguments[i];
|
|
335
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
336
|
+
}
|
|
337
|
+
return t;
|
|
338
|
+
};
|
|
339
|
+
return __assign.apply(this, arguments);
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
function __rest(s, e) {
|
|
343
|
+
var t = {};
|
|
344
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
345
|
+
t[p] = s[p];
|
|
346
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
347
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
348
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
349
|
+
t[p[i]] = s[p[i]];
|
|
350
|
+
}
|
|
351
|
+
return t;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
355
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
356
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
357
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
358
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
359
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
360
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function __generator(thisArg, body) {
|
|
365
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
366
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
367
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
368
|
+
function step(op) {
|
|
369
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
370
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
371
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
372
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
373
|
+
switch (op[0]) {
|
|
374
|
+
case 0: case 1: t = op; break;
|
|
375
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
376
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
377
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
378
|
+
default:
|
|
379
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
380
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
381
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
382
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
383
|
+
if (t[2]) _.ops.pop();
|
|
384
|
+
_.trys.pop(); continue;
|
|
385
|
+
}
|
|
386
|
+
op = body.call(thisArg, _);
|
|
387
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
388
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function __spreadArray(to, from, pack) {
|
|
393
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
394
|
+
if (ar || !(i in from)) {
|
|
395
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
396
|
+
ar[i] = from[i];
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
403
|
+
var e = new Error(message);
|
|
404
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
405
405
|
};
|
|
406
406
|
|
|
407
407
|
var isCheckBoxInput = (element) => element.type === 'checkbox';
|
|
@@ -2444,7 +2444,7 @@ var YBInfinitePagination = function (_a) {
|
|
|
2444
2444
|
void dataPrefetchFn();
|
|
2445
2445
|
}
|
|
2446
2446
|
}, []); // Empty dependency array ensures this runs only once after the component is mounted
|
|
2447
|
-
return (jsxs(Box$1,
|
|
2447
|
+
return (jsxs(Box$1, { className: classes.root, children: [showRecordsPerPage && (jsxs(Grid$2, { item: true, xs: 12, lg: 4, className: classes.dropdownContainer, children: [recordsPerPageCaption && (jsx(Box$1, { mr: 1, minWidth: "100px", children: recordsPerPageCaption })), jsx(YBSelect, { value: rowsPerPage, onChange: function (event) {
|
|
2448
2448
|
onPageSizeChange(event.target.value);
|
|
2449
2449
|
}, className: classes.dropdown, dataTestId: "RowsPerPageSelect", menuProps: {
|
|
2450
2450
|
className: classes.dropdownMenu,
|
|
@@ -2452,7 +2452,7 @@ var YBInfinitePagination = function (_a) {
|
|
|
2452
2452
|
vertical: 'top',
|
|
2453
2453
|
horizontal: 'left'
|
|
2454
2454
|
}
|
|
2455
|
-
}
|
|
2455
|
+
}, children: rowsPerPageOptions.map(function (recordSize) { return (jsx(MenuItem$1, { value: recordSize, "data-testid": "RowsPerPageSelectMenuItem-".concat(recordSize), children: recordSize }, recordSize)); }) })] })), jsx(Box$1, { ml: 4, children: jsx(YBPagination, { currentPage: page + 1, pageSize: totalPages, onPageSelect: handleOnPageSelect, hasMore: hasMoreData, dataTestId: "TablePagination" }) })] }));
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
2458
2458
|
var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
@@ -2483,7 +2483,7 @@ var YBPanelItem = function (_a) {
|
|
|
2483
2483
|
var noBackground = _a.noBackground, className = _a.className, bodyClassName = _a.bodyClassName, children = _a.children, body = _a.body, header = _a.header, title = _a.title;
|
|
2484
2484
|
var classes = useStyles$n();
|
|
2485
2485
|
var panelBodyClassName = clsx(classes.body, noBackground && classes.transparentBody, bodyClassName);
|
|
2486
|
-
return (jsxs(Box$1,
|
|
2486
|
+
return (jsxs(Box$1, { className: className ? classes.contentPanel + className : 'classes.contentPanel', children: [(header || title) && (jsxs(Box$1, { className: classes.header, children: [header, " ", title] })), jsx(Box$1, { className: "container", children: body && (jsxs(Box$1, { className: panelBodyClassName, children: [body, children] })) })] }));
|
|
2487
2487
|
};
|
|
2488
2488
|
|
|
2489
2489
|
var _a$2;
|
|
@@ -3355,14 +3355,14 @@ var METRICS_SESSION_STORAGE_KEY = 'METRICS_NAMES';
|
|
|
3355
3355
|
var METRICS_OUTLIER_TABLES_STORAGE_KEY = 'METRICS_OUTLIER_TABLES_NAMES';
|
|
3356
3356
|
var METRICS_OUTLIER_DATABASES_STORAGE_KEY = 'METRICS_OUTLIER_DATABASES_NAMES';
|
|
3357
3357
|
var COLORS = [
|
|
3358
|
-
'#8c564b',
|
|
3359
|
-
'#4754DB',
|
|
3360
|
-
'#2FB3FF',
|
|
3361
|
-
'#BB42BC',
|
|
3362
|
-
'#20A7C9',
|
|
3363
|
-
'#e377c2',
|
|
3364
|
-
'#7f7f7f',
|
|
3365
|
-
'#bcbd22',
|
|
3358
|
+
'#8c564b', // muted blue
|
|
3359
|
+
'#4754DB', // safety orange
|
|
3360
|
+
'#2FB3FF', // cooked asparagus green
|
|
3361
|
+
'#BB42BC', // brick red
|
|
3362
|
+
'#20A7C9', // muted purple
|
|
3363
|
+
'#e377c2', // raspberry yogurt pink
|
|
3364
|
+
'#7f7f7f', // middle gray
|
|
3365
|
+
'#bcbd22', // curry yellow-green
|
|
3366
3366
|
'#17becf' // blue-teal
|
|
3367
3367
|
];
|
|
3368
3368
|
var NAME_COLOR_MAPPING = {
|
|
@@ -3378,7 +3378,7 @@ var NAME_COLOR_MAPPING = {
|
|
|
3378
3378
|
LWLock: '#DA1515',
|
|
3379
3379
|
Lock: '#E34F6E',
|
|
3380
3380
|
TServerWait: '#e377c2',
|
|
3381
|
-
'# vCPU': '#888888',
|
|
3381
|
+
'# vCPU': '#888888', // Denotes overall CPU Core cunt
|
|
3382
3382
|
// Anomaly categories colors
|
|
3383
3383
|
DB: '#7879F1',
|
|
3384
3384
|
NODE: '#FFD383',
|
|
@@ -3388,72 +3388,72 @@ var NAME_COLOR_MAPPING = {
|
|
|
3388
3388
|
BACKGROUND_JOBS: '#D7DEE4',
|
|
3389
3389
|
// Source of data: https://github.com/yugabyte/yugabyte-db/blob/4f304d5aabe5b992b4d04e59f1e6096fa35233d9/docs/content/stable/explore/observability/active-session-history.md?plain=1#L121
|
|
3390
3390
|
// YSQL Wait event types
|
|
3391
|
-
TableRead: '#966919',
|
|
3392
|
-
CatalogRead: '#966919',
|
|
3393
|
-
IndexRead: '#966919',
|
|
3394
|
-
StorageFlush: '#966919',
|
|
3395
|
-
TableWrite: '#966919',
|
|
3396
|
-
CatalogWrite: '#966919',
|
|
3397
|
-
IndexWrite: '#966919',
|
|
3398
|
-
WaitingOnTServer: '#966919',
|
|
3391
|
+
TableRead: '#966919', // Network or RPCWait
|
|
3392
|
+
CatalogRead: '#966919', // Network or RPCWait
|
|
3393
|
+
IndexRead: '#966919', // Network or RPCWait
|
|
3394
|
+
StorageFlush: '#966919', // Network or RPCWait
|
|
3395
|
+
TableWrite: '#966919', // Network or RPCWait
|
|
3396
|
+
CatalogWrite: '#966919', // Network or RPCWait
|
|
3397
|
+
IndexWrite: '#966919', // Network or RPCWait
|
|
3398
|
+
WaitingOnTServer: '#966919', // Network or RPCWait
|
|
3399
3399
|
// YSQLQuery class Wait event types
|
|
3400
|
-
QueryProcessing: '#56C188',
|
|
3401
|
-
yb_ash_metadata: '#DA1515',
|
|
3402
|
-
YBParallelScanEmpty: '#3884FB',
|
|
3403
|
-
CopyCommandStreamRead: '#3884FB',
|
|
3404
|
-
CopyCommandStreamWrite: '#3884FB',
|
|
3405
|
-
YbAshMain: '#0B1117',
|
|
3406
|
-
YbAshCircularBuffer: '#DA1515',
|
|
3407
|
-
ProcArray: '#DA1515',
|
|
3408
|
-
QueryDiagnosticsMain: '#0B1117',
|
|
3409
|
-
YbQueryDiagnostics: '#DA1515',
|
|
3410
|
-
YbQueryDiagnosticsCircularBuffer: '#DA1515',
|
|
3411
|
-
YBTxnConflictBackoff: '#B7C3CB',
|
|
3400
|
+
QueryProcessing: '#56C188', // CPU
|
|
3401
|
+
yb_ash_metadata: '#DA1515', // LWLock
|
|
3402
|
+
YBParallelScanEmpty: '#3884FB', // IPC → Treated as IO
|
|
3403
|
+
CopyCommandStreamRead: '#3884FB', // IO
|
|
3404
|
+
CopyCommandStreamWrite: '#3884FB', // IO
|
|
3405
|
+
YbAshMain: '#0B1117', // Activity → Treated as Queries
|
|
3406
|
+
YbAshCircularBuffer: '#DA1515', // LWLock
|
|
3407
|
+
ProcArray: '#DA1515', // LWLock
|
|
3408
|
+
QueryDiagnosticsMain: '#0B1117', // Activity → Treated as Queries
|
|
3409
|
+
YbQueryDiagnostics: '#DA1515', // LWLock
|
|
3410
|
+
YbQueryDiagnosticsCircularBuffer: '#DA1515', // LWLock
|
|
3411
|
+
YBTxnConflictBackoff: '#B7C3CB', // Timeout → Treated as WaitOnCondition
|
|
3412
3412
|
// YB-TServer Common class Wait event types
|
|
3413
|
-
OnCpu_Passive: '#56C188',
|
|
3414
|
-
OnCpu_Active: '#56C188',
|
|
3415
|
-
Idle: '#B7C3CB',
|
|
3416
|
-
Rpc_Done: '#B7C3CB',
|
|
3417
|
-
RetryableRequests_SaveToDisk: '#E48B2C',
|
|
3413
|
+
OnCpu_Passive: '#56C188', // CPU
|
|
3414
|
+
OnCpu_Active: '#56C188', // CPU
|
|
3415
|
+
Idle: '#B7C3CB', // WaitOnCondition
|
|
3416
|
+
Rpc_Done: '#B7C3CB', // WaitOnCondition
|
|
3417
|
+
RetryableRequests_SaveToDisk: '#E48B2C', // DiskIO
|
|
3418
3418
|
// TabletWait class Wait event types
|
|
3419
|
-
MVCC_WaitForSafeTime: '#B7C3CB',
|
|
3420
|
-
LockedBatchEntry_Lock: '#E34F6E',
|
|
3421
|
-
BackfillIndex_WaitForAFreeSlot: '#B7C3CB',
|
|
3422
|
-
CreatingNewTablet: '#E48B2C',
|
|
3423
|
-
SaveRaftGroupMetadataToDisk: '#E48B2C',
|
|
3424
|
-
TransactionStatusCache_DoGetCommitData: '#966919',
|
|
3425
|
-
WaitForYSQLBackendsCatalogVersion: '#B7C3CB',
|
|
3426
|
-
WriteSysCatalogSnapshotToDisk: '#E48B2C',
|
|
3427
|
-
DumpRunningRpc_WaitOnReactor: '#B7C3CB',
|
|
3428
|
-
ConflictResolution_ResolveConficts: '#966919',
|
|
3429
|
-
ConflictResolution_WaitOnConflictingTxns: '#B7C3CB',
|
|
3419
|
+
MVCC_WaitForSafeTime: '#B7C3CB', // WaitOnCondition
|
|
3420
|
+
LockedBatchEntry_Lock: '#E34F6E', // Lock
|
|
3421
|
+
BackfillIndex_WaitForAFreeSlot: '#B7C3CB', // WaitOnCondition
|
|
3422
|
+
CreatingNewTablet: '#E48B2C', // DiskIO
|
|
3423
|
+
SaveRaftGroupMetadataToDisk: '#E48B2C', // DiskIO
|
|
3424
|
+
TransactionStatusCache_DoGetCommitData: '#966919', // Network
|
|
3425
|
+
WaitForYSQLBackendsCatalogVersion: '#B7C3CB', // WaitOnCondition
|
|
3426
|
+
WriteSysCatalogSnapshotToDisk: '#E48B2C', // DiskIO
|
|
3427
|
+
DumpRunningRpc_WaitOnReactor: '#B7C3CB', // WaitOnCondition
|
|
3428
|
+
ConflictResolution_ResolveConficts: '#966919', // Network or RPCWait
|
|
3429
|
+
ConflictResolution_WaitOnConflictingTxns: '#B7C3CB', // WaitOnCondition
|
|
3430
3430
|
// Consensus class Wait event types
|
|
3431
|
-
WAL_Append: '#E48B2C',
|
|
3432
|
-
WAL_Sync: '#E48B2C',
|
|
3433
|
-
Raft_WaitingForReplication: '#966919',
|
|
3434
|
-
Raft_ApplyingEdits: '#56C188',
|
|
3435
|
-
ConsensusMeta_Flush: '#E48B2C',
|
|
3436
|
-
ReplicaState_TakeUpdateLock: '#B7C3CB',
|
|
3431
|
+
WAL_Append: '#E48B2C', // DiskIO
|
|
3432
|
+
WAL_Sync: '#E48B2C', // DiskIO
|
|
3433
|
+
Raft_WaitingForReplication: '#966919', // Network or RPCWait
|
|
3434
|
+
Raft_ApplyingEdits: '#56C188', // WaitOnCondition/CPU → Prefer CPU
|
|
3435
|
+
ConsensusMeta_Flush: '#E48B2C', // DiskIO
|
|
3436
|
+
ReplicaState_TakeUpdateLock: '#B7C3CB', // WaitOnCondition
|
|
3437
3437
|
// RocksDB class Wait event types
|
|
3438
|
-
RocksDB_ReadBlockFromFile: '#E48B2C',
|
|
3439
|
-
RocksDB_OpenFile: '#E48B2C',
|
|
3440
|
-
RocksDB_WriteToFile: '#E48B2C',
|
|
3441
|
-
RocksDB_Flush: '#56C188',
|
|
3442
|
-
RocksDB_Compaction: '#56C188',
|
|
3443
|
-
RocksDB_PriorityThreadPoolTaskPaused: '#B7C3CB',
|
|
3444
|
-
RocksDB_CloseFile: '#E48B2C',
|
|
3445
|
-
RocksDB_RateLimiter: '#B7C3CB',
|
|
3446
|
-
RocksDB_WaitForSubcompaction: '#B7C3CB',
|
|
3447
|
-
RocksDB_NewIterator: '#E48B2C',
|
|
3438
|
+
RocksDB_ReadBlockFromFile: '#E48B2C', // DiskIO
|
|
3439
|
+
RocksDB_OpenFile: '#E48B2C', // DiskIO
|
|
3440
|
+
RocksDB_WriteToFile: '#E48B2C', // DiskIO
|
|
3441
|
+
RocksDB_Flush: '#56C188', // CPU
|
|
3442
|
+
RocksDB_Compaction: '#56C188', // CPU
|
|
3443
|
+
RocksDB_PriorityThreadPoolTaskPaused: '#B7C3CB', // WaitOnCondition
|
|
3444
|
+
RocksDB_CloseFile: '#E48B2C', // DiskIO
|
|
3445
|
+
RocksDB_RateLimiter: '#B7C3CB', // WaitOnCondition
|
|
3446
|
+
RocksDB_WaitForSubcompaction: '#B7C3CB', // WaitOnCondition
|
|
3447
|
+
RocksDB_NewIterator: '#E48B2C', // DiskIO
|
|
3448
3448
|
// YCQLQuery class Wait event types
|
|
3449
|
-
YCQL_Parse: '#56C188',
|
|
3450
|
-
YCQL_Read: '#56C188',
|
|
3451
|
-
YCQL_Write: '#56C188',
|
|
3452
|
-
YCQL_Analyze: '#56C188',
|
|
3453
|
-
YCQL_Execute: '#56C188',
|
|
3449
|
+
YCQL_Parse: '#56C188', // CPU
|
|
3450
|
+
YCQL_Read: '#56C188', // CPU
|
|
3451
|
+
YCQL_Write: '#56C188', // CPU
|
|
3452
|
+
YCQL_Analyze: '#56C188', // CPU
|
|
3453
|
+
YCQL_Execute: '#56C188', // CPU
|
|
3454
3454
|
// Client class Wait event types
|
|
3455
|
-
YBClient_WaitingOnDocDB: '#966919',
|
|
3456
|
-
YBClient_LookingUpTablet: '#966919',
|
|
3455
|
+
YBClient_WaitingOnDocDB: '#966919', // Network or RPCWait
|
|
3456
|
+
YBClient_LookingUpTablet: '#966919', // Network or RPCWait
|
|
3457
3457
|
EMPTY_EVENT: '#F0F4F7'
|
|
3458
3458
|
};
|
|
3459
3459
|
var TOOLTIP_TEXT = {
|
|
@@ -3647,8 +3647,8 @@ var useHelperStyles = makeStyles(function (theme) { return ({
|
|
|
3647
3647
|
WebkitBoxOrient: 'vertical',
|
|
3648
3648
|
overflow: 'hidden',
|
|
3649
3649
|
textOverflow: 'ellipsis',
|
|
3650
|
-
WebkitLineClamp: 3,
|
|
3651
|
-
maxHeight: '4.5em',
|
|
3650
|
+
WebkitLineClamp: 3, // Limit to 3 lines
|
|
3651
|
+
maxHeight: '4.5em', // 3 lines * 1.5 line-height
|
|
3652
3652
|
lineHeight: '1.5em'
|
|
3653
3653
|
},
|
|
3654
3654
|
searchInput: {
|
|
@@ -3891,9 +3891,9 @@ var useHelperStyles = makeStyles(function (theme) { return ({
|
|
|
3891
3891
|
tooltip: {
|
|
3892
3892
|
maxWidth: '400px',
|
|
3893
3893
|
maxHeight: '200px',
|
|
3894
|
-
overflowY: 'auto',
|
|
3895
|
-
overflowX: 'hidden',
|
|
3896
|
-
whiteSpace: 'normal',
|
|
3894
|
+
overflowY: 'auto', // Enable vertical scrolling
|
|
3895
|
+
overflowX: 'hidden', // Prevent horizontal scrolling
|
|
3896
|
+
whiteSpace: 'normal', // Allow text to wrap
|
|
3897
3897
|
padding: theme.spacing(1) // Add some padding for better readability
|
|
3898
3898
|
},
|
|
3899
3899
|
gridBox: {
|
|
@@ -4115,7 +4115,7 @@ var TableActions = function (_a) {
|
|
|
4115
4115
|
onSelectedQuery === null || onSelectedQuery === void 0 ? void 0 : onSelectedQuery(queryId.toString(), params);
|
|
4116
4116
|
window.history.pushState({}, '', "".concat(window.location.pathname, "/").concat(queryId, "?").concat(urlParams.toString()));
|
|
4117
4117
|
};
|
|
4118
|
-
return (jsxs(Fragment, { children: [appName === AppName.YBM && routeToSecondary(), (appName === AppName.WEB
|
|
4118
|
+
return (jsxs(Fragment, { children: [(appName === AppName.YBM || appName === AppName.YBA) && routeToSecondary(), (appName === AppName.WEB) &&
|
|
4119
4119
|
handleRedirect(queryId, databaseId === null || databaseId === void 0 ? void 0 : databaseId.toString(), universeId)] }));
|
|
4120
4120
|
};
|
|
4121
4121
|
|
|
@@ -4130,18 +4130,18 @@ var TableRowComponent = React__default.memo(function (_a) {
|
|
|
4130
4130
|
}
|
|
4131
4131
|
};
|
|
4132
4132
|
var hasDisplayHeaders = tableColumns.filter(function (col) { return !ignoredColumns.includes(col.name); }).length > 0;
|
|
4133
|
-
return (jsxs(Fragment$1, { children: [jsx(TableRow,
|
|
4133
|
+
return (jsxs(Fragment$1, { children: [jsx(TableRow, { className: classes.tableRow, onClick: handleRowClick, children: hasDisplayHeaders &&
|
|
4134
4134
|
data.map(function (val, index) {
|
|
4135
4135
|
if (val !== undefined) {
|
|
4136
|
-
return (jsx(TableCell,
|
|
4136
|
+
return (jsx(TableCell, { className: showQuery ? classes.rowTableCell : '', style: {
|
|
4137
4137
|
overflow: 'visible',
|
|
4138
4138
|
position: 'relative',
|
|
4139
4139
|
paddingTop: 8,
|
|
4140
4140
|
paddingBottom: 8
|
|
4141
|
-
}
|
|
4141
|
+
}, children: val }, "TableHelper-row-".concat(dataIndex, "-body-cell-").concat(index)));
|
|
4142
4142
|
}
|
|
4143
4143
|
return null;
|
|
4144
|
-
}) }
|
|
4144
|
+
}) }, "TableHelper-queries-row-".concat(String(data[0]))), expandedRowIndex === dataIndex && (jsx(TableActions, { appName: appName, rowData: displayedRows[dataIndex], onSelectedQuery: onSelectedQuery, onClose: function () { return handleExpandedRowIndex(null); } }))] }));
|
|
4145
4145
|
});
|
|
4146
4146
|
var getRowCellComponent = function (appName, currentTablePage, displayedRows, classes, showQuery, tableColumns, ignoredColumns, startTime, endTime, expandedRowIndex, handleExpandedRowIndex, onSelectedQuery) {
|
|
4147
4147
|
var rowCellComponent = function (data, dataIndex) {
|
|
@@ -4211,10 +4211,10 @@ var handleRowClick = function (_a) {
|
|
|
4211
4211
|
// This will ensure that full page reload is not done and just loads the neccessary component
|
|
4212
4212
|
onNavigateToUrl === null || onNavigateToUrl === void 0 ? void 0 : onNavigateToUrl(url);
|
|
4213
4213
|
};
|
|
4214
|
-
if (appName === AppName.YBM) {
|
|
4214
|
+
if (appName === AppName.YBM || appName === AppName.YBA) {
|
|
4215
4215
|
routeToSecondary();
|
|
4216
4216
|
}
|
|
4217
|
-
else if (appName === AppName.WEB
|
|
4217
|
+
else if (appName === AppName.WEB) {
|
|
4218
4218
|
handleRedirect(queryId, databaseId === null || databaseId === void 0 ? void 0 : databaseId.toString(), universeId);
|
|
4219
4219
|
}
|
|
4220
4220
|
};
|
|
@@ -4252,7 +4252,7 @@ var MetricSplitSelector = function (_a) {
|
|
|
4252
4252
|
dataTestId: "MetricSplitSelector-MetricSplitButton-".concat(metricSplitSelector.value),
|
|
4253
4253
|
},
|
|
4254
4254
|
}); });
|
|
4255
|
-
return (jsx(Box$1,
|
|
4255
|
+
return (jsx(Box$1, { display: "flex", flexDirection: "row", children: jsx(YBButtonGroup, { divider: true, buttons: buttons, value: (_m = metricSplitSelectors[active]) === null || _m === void 0 ? void 0 : _m.value, dataTestId: "MetricTypeSelector-MetricMeasureButton" }) }));
|
|
4256
4256
|
};
|
|
4257
4257
|
|
|
4258
4258
|
var NUM_NODES_SELECTOR_OPTIONS = [
|
|
@@ -4293,9 +4293,9 @@ var OutlierSelector = function (_a) {
|
|
|
4293
4293
|
dataTestId: "OutlierSelector-OutlierButton-".concat(outlierSelector.value),
|
|
4294
4294
|
},
|
|
4295
4295
|
}); });
|
|
4296
|
-
return (jsxs(Box$1,
|
|
4296
|
+
return (jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: "center", children: [jsx(Box$1, { children: jsx(YBButtonGroup, { divider: true, buttons: buttons, dataTestId: "OutlierSelector-OutlierButton", value: (_b = metricOutlierSelectors[active]) === null || _b === void 0 ? void 0 : _b.value }) }), showNumNodesInput && (jsx(Box$1, { ml: 2, children: jsx(YBInput, { type: "number", className: classes.input, inputProps: {
|
|
4297
4297
|
min: 1
|
|
4298
|
-
}, dataTestId: "OutlierSelector-NumNodesInput", value: selectedNumNodes, onChange: function (event) { return onNumNodesChanged(event.target.value); }, inputMode: "numeric" }) }))
|
|
4298
|
+
}, dataTestId: "OutlierSelector-NumNodesInput", value: selectedNumNodes, onChange: function (event) { return onNumNodesChanged(event.target.value); }, inputMode: "numeric" }) })), showNumNodesSelector && (jsx(Box$1, { ml: 1, mr: 1, children: jsx(YBSelect, { style: { width: '80px' }, className: classes.overrideMuiInput, dataTestId: "OutlierSelector-NumNodesSelector", value: selectedNumNodes, onChange: function (event) { return onNumNodesChanged(event.target.value); }, children: NUM_NODES_SELECTOR_OPTIONS.map(function (numNodesOption) { return (jsx(MenuItem$1, { value: numNodesOption.value, children: numNodesOption.label }, numNodesOption.value)); }) }) })), jsx(Typography$1, { variant: 'body2', style: { marginRight: '8px' }, children: METRIC_MEASURE_TEXT[metricMeasure] })] }));
|
|
4299
4299
|
};
|
|
4300
4300
|
|
|
4301
4301
|
/**
|
|
@@ -4605,9 +4605,9 @@ var ZoneNodeSelector = function (_a) {
|
|
|
4605
4605
|
var classes = useStyles$l();
|
|
4606
4606
|
var renderZoneAndNodeItems = function (primaryZoneToNodesMap, asyncZoneToNodesMap) {
|
|
4607
4607
|
var renderedItems = [];
|
|
4608
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4608
|
+
renderedItems.push(jsx(MenuItem$1, { value: ALL_ZONES, onClick: function (e) {
|
|
4609
4609
|
onZoneNodeSelected(false, false, ALL_ZONES);
|
|
4610
|
-
}
|
|
4610
|
+
}, children: ALL_ZONES }, ALL_ZONES));
|
|
4611
4611
|
renderedItems.push(jsx(Divider, {}, "divider-all-zones"));
|
|
4612
4612
|
var primaryMapValues = primaryZoneToNodesMap.values();
|
|
4613
4613
|
var primaryMapiterator = primaryMapValues.next();
|
|
@@ -4616,16 +4616,16 @@ var ZoneNodeSelector = function (_a) {
|
|
|
4616
4616
|
var primaryClusterZoneName = primaryMapValueObject.zoneName;
|
|
4617
4617
|
var primaryClusternodeNames = primaryMapValueObject.nodeNames;
|
|
4618
4618
|
if (primaryClusterZoneName) {
|
|
4619
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4619
|
+
renderedItems.push(jsx(MenuItem$1, { value: primaryClusterZoneName, onClick: function (e) {
|
|
4620
4620
|
onZoneNodeSelected(true, false, primaryClusterZoneName);
|
|
4621
|
-
}, className: classes.menuItem
|
|
4621
|
+
}, className: classes.menuItem, children: primaryClusterZoneName }, primaryClusterZoneName));
|
|
4622
4622
|
}
|
|
4623
4623
|
// Add Primary Zones and Nodes
|
|
4624
4624
|
if (isNonEmptyArray(primaryClusternodeNames)) {
|
|
4625
4625
|
primaryClusternodeNames.forEach(function (nodeName) {
|
|
4626
|
-
renderedItems.push(jsxs(MenuItem$1,
|
|
4626
|
+
renderedItems.push(jsxs(MenuItem$1, { value: nodeName, onClick: function (e) {
|
|
4627
4627
|
onZoneNodeSelected(false, true, nodeName);
|
|
4628
|
-
}, className: classes.regularText
|
|
4628
|
+
}, className: classes.regularText, children: [jsx("img", { className: classes.icon, src: TreeIcon, alt: "Indicator towards metric measure to use" }), nodeName] }, "primary-".concat(primaryClusterZoneName, "-").concat(nodeName)));
|
|
4629
4629
|
});
|
|
4630
4630
|
}
|
|
4631
4631
|
primaryMapiterator = primaryMapValues.next();
|
|
@@ -4643,15 +4643,15 @@ var ZoneNodeSelector = function (_a) {
|
|
|
4643
4643
|
var asyncClusterZoneName = asyncMapValueObject.zoneName;
|
|
4644
4644
|
var asyncClusternodeNames = asyncMapValueObject.nodeNames;
|
|
4645
4645
|
if (asyncClusterZoneName) {
|
|
4646
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4646
|
+
renderedItems.push(jsx(MenuItem$1, { value: asyncClusterZoneName, onClick: function (e) {
|
|
4647
4647
|
onZoneNodeSelected(true, false, asyncClusterZoneName);
|
|
4648
|
-
}
|
|
4648
|
+
}, children: asyncClusterZoneName }, asyncClusterZoneName));
|
|
4649
4649
|
}
|
|
4650
4650
|
if (isNonEmptyArray(asyncClusternodeNames)) {
|
|
4651
4651
|
asyncClusternodeNames.forEach(function (nodeName) {
|
|
4652
|
-
renderedItems.push(jsxs(MenuItem$1,
|
|
4652
|
+
renderedItems.push(jsxs(MenuItem$1, { value: nodeName, onClick: function (e) {
|
|
4653
4653
|
onZoneNodeSelected(false, true, nodeName);
|
|
4654
|
-
}, className: classes.regularText
|
|
4654
|
+
}, className: classes.regularText, children: [jsx("img", { className: classes.icon, src: TreeIcon, alt: "Indicator towards metric measure to use" }), nodeName] }, "async-".concat(asyncClusterZoneName, "-").concat(nodeName)));
|
|
4655
4655
|
});
|
|
4656
4656
|
}
|
|
4657
4657
|
asyncMapiterator = asyncMapValues.next();
|
|
@@ -4662,7 +4662,7 @@ var ZoneNodeSelector = function (_a) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
return renderedItems;
|
|
4664
4664
|
};
|
|
4665
|
-
return (jsx(YBSelect,
|
|
4665
|
+
return (jsx(YBSelect, { className: clsx(classes.selectBox, classes.overrideMuiInput), dataTestId: "YBZoneNodeSelector-Zone", value: selectedItem, children: renderZoneAndNodeItems(primaryZoneToNodesMap, asyncZoneToNodesMap) }));
|
|
4666
4666
|
};
|
|
4667
4667
|
|
|
4668
4668
|
var useStyles$k = makeStyles(function (theme) { return ({
|
|
@@ -4698,9 +4698,9 @@ var ClusterRegionSelector = function (_a) {
|
|
|
4698
4698
|
var classes = useStyles$k();
|
|
4699
4699
|
var renderClusterAndRegionItems = function (primaryClusterToRegionMap, asyncClusterToRegionMap) {
|
|
4700
4700
|
var renderedItems = [];
|
|
4701
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4701
|
+
renderedItems.push(jsx(MenuItem$1, { value: ALL_REGIONS, onClick: function (e) {
|
|
4702
4702
|
onClusterRegionSelected(false, false, ALL_REGIONS, false);
|
|
4703
|
-
}
|
|
4703
|
+
}, children: ALL_REGIONS }, ALL_REGIONS));
|
|
4704
4704
|
renderedItems.push(jsx(Divider, {}, "divider-all-regions"));
|
|
4705
4705
|
var primaryMapValues = primaryClusterToRegionMap.values();
|
|
4706
4706
|
var primaryMapValueObject = primaryMapValues.next().value;
|
|
@@ -4709,15 +4709,15 @@ var ClusterRegionSelector = function (_a) {
|
|
|
4709
4709
|
var primaryClusterUuid = primaryMapValueObject.uuid;
|
|
4710
4710
|
// Add Primary Zones and Nodes
|
|
4711
4711
|
if (isNonEmptyString(primaryCluster)) {
|
|
4712
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4712
|
+
renderedItems.push(jsx(MenuItem$1, { value: primaryClusterUuid, onClick: function (e) {
|
|
4713
4713
|
onClusterRegionSelected(true, false, primaryClusterUuid, true);
|
|
4714
|
-
}, className: classes.menuItem
|
|
4714
|
+
}, className: classes.menuItem, children: primaryCluster }, primaryClusterUuid));
|
|
4715
4715
|
}
|
|
4716
4716
|
if (isNonEmptyArray(primaryClusterRegions)) {
|
|
4717
4717
|
primaryClusterRegions.forEach(function (region) {
|
|
4718
|
-
renderedItems.push(jsxs(MenuItem$1,
|
|
4718
|
+
renderedItems.push(jsxs(MenuItem$1, { value: region, onClick: function (e) {
|
|
4719
4719
|
onClusterRegionSelected(false, true, region, true);
|
|
4720
|
-
}, className: classes.regularText
|
|
4720
|
+
}, className: classes.regularText, children: [jsx("img", { className: classes.icon, src: TreeIcon, alt: "Indicator towards metric measure to use" }), region] }, "primary-".concat(primaryClusterUuid, "-").concat(region)));
|
|
4721
4721
|
});
|
|
4722
4722
|
}
|
|
4723
4723
|
// Add Read Replica Zones and Nodes
|
|
@@ -4729,22 +4729,22 @@ var ClusterRegionSelector = function (_a) {
|
|
|
4729
4729
|
var asyncClusterRegions = asyncMapValueObject.regions;
|
|
4730
4730
|
var asyncClusterUuid_1 = asyncMapValueObject.uuid;
|
|
4731
4731
|
if (isNonEmptyString(asyncCluster)) {
|
|
4732
|
-
renderedItems.push(jsx(MenuItem$1,
|
|
4732
|
+
renderedItems.push(jsx(MenuItem$1, { value: asyncClusterUuid_1, onClick: function (e) {
|
|
4733
4733
|
onClusterRegionSelected(true, false, asyncClusterUuid_1, true);
|
|
4734
|
-
}
|
|
4734
|
+
}, children: asyncCluster }, asyncClusterUuid_1));
|
|
4735
4735
|
}
|
|
4736
4736
|
if (isNonEmptyArray(asyncClusterRegions)) {
|
|
4737
4737
|
asyncClusterRegions.forEach(function (region) {
|
|
4738
|
-
renderedItems.push(jsxs(MenuItem$1,
|
|
4738
|
+
renderedItems.push(jsxs(MenuItem$1, { value: region, onClick: function (e) {
|
|
4739
4739
|
onClusterRegionSelected(false, true, region, true);
|
|
4740
|
-
}, className: classes.regularText
|
|
4740
|
+
}, className: classes.regularText, children: [jsx("img", { className: classes.icon, src: TreeIcon, alt: "Indicator towards metric measure to use" }), region] }, "async-".concat(asyncClusterUuid_1, "-").concat(region)));
|
|
4741
4741
|
});
|
|
4742
4742
|
}
|
|
4743
4743
|
}
|
|
4744
4744
|
return renderedItems;
|
|
4745
4745
|
};
|
|
4746
|
-
return (jsx(YBSelect,
|
|
4747
|
-
renderClusterAndRegionItems(primaryClusterToRegionMap, asyncClusterToRegionMap) }))
|
|
4746
|
+
return (jsx(YBSelect, { className: clsx(classes.selectBox, classes.overrideMuiInput), dataTestId: "cluster-region-select", value: selectedItem, children: primaryClusterToRegionMap.size > 0 &&
|
|
4747
|
+
renderClusterAndRegionItems(primaryClusterToRegionMap, asyncClusterToRegionMap) }));
|
|
4748
4748
|
};
|
|
4749
4749
|
|
|
4750
4750
|
var YBCheckboxField = function (props) {
|
|
@@ -4760,7 +4760,7 @@ var ybaTheme = yba.ybaTheme;
|
|
|
4760
4760
|
*/
|
|
4761
4761
|
var YBThemeWrapper = function (_a) {
|
|
4762
4762
|
var children = _a.children, appName = _a.appName;
|
|
4763
|
-
return (jsx(YBThemeProvider,
|
|
4763
|
+
return (jsx(YBThemeProvider, { theme: appName === AppName.YBM ? coreTheme : ybaTheme, children: children }));
|
|
4764
4764
|
};
|
|
4765
4765
|
|
|
4766
4766
|
function _typeof$4(o) {
|
|
@@ -7886,7 +7886,10 @@ var getBreadcrumbCategoryLabel = function (anomalyData, anomalyCategory, isHisto
|
|
|
7886
7886
|
else {
|
|
7887
7887
|
suffix = ClusterLoadOverallTabs.ANOMALIES;
|
|
7888
7888
|
}
|
|
7889
|
-
|
|
7889
|
+
// In case of Insights, we dont need to show any category label in front
|
|
7890
|
+
// for example. if we have unused index, we will show Insights / Tablet Insights / index_name
|
|
7891
|
+
// It should rather be Insights / index_name
|
|
7892
|
+
if (anomalyData && urlState.currentTab !== InsightsTabs.INSIGHTS) {
|
|
7890
7893
|
if (anomalyCategory) {
|
|
7891
7894
|
var categoryString = String(anomalyCategory);
|
|
7892
7895
|
var capitalizedCategory = categoryString.charAt(0).toUpperCase() + categoryString.slice(1).toLowerCase();
|
|
@@ -7930,7 +7933,7 @@ var parseUrlState = function (appName) {
|
|
|
7930
7933
|
var ybaTab = urlParams.get('tab');
|
|
7931
7934
|
var currentTab = InsightsTabs.CLUSTER_LOAD;
|
|
7932
7935
|
var clusterLoadSubTab = ClusterLoadSubTabs.OVERALL_LOAD;
|
|
7933
|
-
var clusterLoadOverallSubTab = ClusterLoadOverallTabs.
|
|
7936
|
+
var clusterLoadOverallSubTab = ClusterLoadOverallTabs.QUERIES;
|
|
7934
7937
|
// Determine main tab
|
|
7935
7938
|
if (path.includes("/".concat(URL_TAB_PATH.METRICS)) || ybaTab === URL_TAB_PATH.METRICS) {
|
|
7936
7939
|
currentTab = InsightsTabs.METRICS;
|
|
@@ -7941,37 +7944,20 @@ var parseUrlState = function (appName) {
|
|
|
7941
7944
|
else if (path.includes("/".concat(URL_TAB_PATH.CLUSTER_LOAD)) ||
|
|
7942
7945
|
ybaTab === URL_TAB_PATH.CLUSTER_LOAD) {
|
|
7943
7946
|
currentTab = InsightsTabs.CLUSTER_LOAD;
|
|
7944
|
-
//
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
clusterLoadSubTab =
|
|
7948
|
-
subTab === URL_TAB_PATH.CLUSTER_LOAD_DB
|
|
7949
|
-
? ClusterLoadSubTabs.LOAD_BY_DATABASE
|
|
7950
|
-
: ClusterLoadSubTabs.OVERALL_LOAD;
|
|
7951
|
-
// Parse overallSubTab from query parameter for YBA
|
|
7952
|
-
if (clusterLoadSubTab === ClusterLoadSubTabs.OVERALL_LOAD) {
|
|
7953
|
-
var overallSubTab = urlParams.get('overallSubTab');
|
|
7954
|
-
clusterLoadOverallSubTab =
|
|
7955
|
-
overallSubTab === URL_TAB_PATH.ANOMALIES
|
|
7956
|
-
? ClusterLoadOverallTabs.ANOMALIES
|
|
7957
|
-
: ClusterLoadOverallTabs.QUERIES;
|
|
7958
|
-
}
|
|
7947
|
+
// Web app: parse from path
|
|
7948
|
+
// eslint-disable-next-line no-lonely-if
|
|
7949
|
+
if (path.includes("/".concat(URL_TAB_PATH.CLUSTER_LOAD_DB))) {
|
|
7950
|
+
clusterLoadSubTab = ClusterLoadSubTabs.LOAD_BY_DATABASE;
|
|
7959
7951
|
}
|
|
7960
7952
|
else {
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
else {
|
|
7967
|
-
clusterLoadSubTab = ClusterLoadSubTabs.OVERALL_LOAD;
|
|
7968
|
-
var isQueriesPath = path.includes("/".concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD, "/").concat(URL_TAB_PATH.QUERIES));
|
|
7969
|
-
clusterLoadOverallSubTab = isQueriesPath
|
|
7970
|
-
? ClusterLoadOverallTabs.QUERIES
|
|
7971
|
-
: ClusterLoadOverallTabs.ANOMALIES;
|
|
7972
|
-
}
|
|
7953
|
+
clusterLoadSubTab = ClusterLoadSubTabs.OVERALL_LOAD;
|
|
7954
|
+
var isAnomaliesPath = path.includes("/".concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD, "/").concat(URL_TAB_PATH.ANOMALIES));
|
|
7955
|
+
clusterLoadOverallSubTab = isAnomaliesPath
|
|
7956
|
+
? ClusterLoadOverallTabs.ANOMALIES
|
|
7957
|
+
: ClusterLoadOverallTabs.QUERIES;
|
|
7973
7958
|
}
|
|
7974
7959
|
}
|
|
7960
|
+
console.warn('clusterLoadOverallSubTab', clusterLoadOverallSubTab);
|
|
7975
7961
|
return { currentTab: currentTab, clusterLoadSubTab: clusterLoadSubTab, clusterLoadOverallSubTab: clusterLoadOverallSubTab };
|
|
7976
7962
|
};
|
|
7977
7963
|
/**
|
|
@@ -7982,6 +7968,7 @@ var parseUrlState = function (appName) {
|
|
|
7982
7968
|
* @returns The complete URL path with query string
|
|
7983
7969
|
*/
|
|
7984
7970
|
var buildWebAppPath = function (tab, subTab, overallSubTab) {
|
|
7971
|
+
console.warn('buildWebAppPath', tab, subTab, overallSubTab);
|
|
7985
7972
|
var path = window.location.pathname;
|
|
7986
7973
|
var urlParams = new URLSearchParams(window.location.search);
|
|
7987
7974
|
var queryString = urlParams.toString();
|
|
@@ -8005,44 +7992,9 @@ var buildWebAppPath = function (tab, subTab, overallSubTab) {
|
|
|
8005
7992
|
path = "".concat(path, "/").concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD, "/").concat(overallPath);
|
|
8006
7993
|
}
|
|
8007
7994
|
}
|
|
7995
|
+
console.warn('PATH1122', path);
|
|
8008
7996
|
return "".concat(path).concat(queryString ? "?".concat(queryString) : '');
|
|
8009
7997
|
};
|
|
8010
|
-
/**
|
|
8011
|
-
* Build URL for YBA (query parameters)
|
|
8012
|
-
* @param tab - The current tab
|
|
8013
|
-
* @param subTab - The cluster load sub-tab (optional)
|
|
8014
|
-
* @param overallSubTab - The overall sub-tab for cluster load (optional)
|
|
8015
|
-
* @returns The complete URL with query parameters
|
|
8016
|
-
*/
|
|
8017
|
-
var buildYbaUrl = function (tab, subTab, overallSubTab) {
|
|
8018
|
-
var path = window.location.pathname;
|
|
8019
|
-
var urlParams = new URLSearchParams(window.location.search);
|
|
8020
|
-
if (tab === InsightsTabs.CLUSTER_LOAD) {
|
|
8021
|
-
urlParams.set('tab', URL_TAB_PATH.CLUSTER_LOAD);
|
|
8022
|
-
if (subTab !== undefined) {
|
|
8023
|
-
urlParams.set('subTab', subTab === ClusterLoadSubTabs.LOAD_BY_DATABASE
|
|
8024
|
-
? URL_TAB_PATH.CLUSTER_LOAD_DB
|
|
8025
|
-
: URL_TAB_PATH.OVERALL_LOAD);
|
|
8026
|
-
// Set overallSubTab query parameter for YBA when subTab is OVERALL_LOAD
|
|
8027
|
-
if (subTab === ClusterLoadSubTabs.OVERALL_LOAD && overallSubTab !== undefined) {
|
|
8028
|
-
urlParams.set('overallSubTab', overallSubTab === ClusterLoadOverallTabs.QUERIES
|
|
8029
|
-
? URL_TAB_PATH.QUERIES
|
|
8030
|
-
: URL_TAB_PATH.ANOMALIES);
|
|
8031
|
-
}
|
|
8032
|
-
else if (subTab === ClusterLoadSubTabs.LOAD_BY_DATABASE) {
|
|
8033
|
-
// Remove overallSubTab when switching to LOAD_BY_DATABASE
|
|
8034
|
-
urlParams.delete('overallSubTab');
|
|
8035
|
-
}
|
|
8036
|
-
}
|
|
8037
|
-
}
|
|
8038
|
-
else if (tab === InsightsTabs.METRICS) {
|
|
8039
|
-
urlParams.set('tab', URL_TAB_PATH.METRICS);
|
|
8040
|
-
}
|
|
8041
|
-
else if (tab === InsightsTabs.INSIGHTS) {
|
|
8042
|
-
urlParams.set('tab', URL_TAB_PATH.INSIGHTS);
|
|
8043
|
-
}
|
|
8044
|
-
return "".concat(path, "?").concat(urlParams.toString());
|
|
8045
|
-
};
|
|
8046
7998
|
/**
|
|
8047
7999
|
* Update URL based on app type
|
|
8048
8000
|
* @param appName - The application name (YBA or Web)
|
|
@@ -8053,9 +8005,7 @@ var buildYbaUrl = function (tab, subTab, overallSubTab) {
|
|
|
8053
8005
|
*/
|
|
8054
8006
|
var updateUrl = function (appName, tab, subTab, overallSubTab, usePushState) {
|
|
8055
8007
|
if (usePushState === void 0) { usePushState = false; }
|
|
8056
|
-
var newUrl =
|
|
8057
|
-
? buildYbaUrl(tab, subTab, overallSubTab)
|
|
8058
|
-
: buildWebAppPath(tab, subTab, overallSubTab);
|
|
8008
|
+
var newUrl = buildWebAppPath(tab, subTab, overallSubTab);
|
|
8059
8009
|
var urlParams = new URLSearchParams(window.location.search);
|
|
8060
8010
|
var queryString = urlParams.toString();
|
|
8061
8011
|
var currentUrl = window.location.pathname + (queryString ? "?".concat(queryString) : '');
|
|
@@ -8074,9 +8024,10 @@ var updateUrl = function (appName, tab, subTab, overallSubTab, usePushState) {
|
|
|
8074
8024
|
* @param tab - The current tab
|
|
8075
8025
|
*/
|
|
8076
8026
|
var ensureCompletePath = function (appName, tab) {
|
|
8077
|
-
if (appName === AppName.YBA || tab !== InsightsTabs.CLUSTER_LOAD) {
|
|
8078
|
-
|
|
8079
|
-
}
|
|
8027
|
+
// if (appName === AppName.YBA || tab !== InsightsTabs.CLUSTER_LOAD) {
|
|
8028
|
+
// return;
|
|
8029
|
+
// }
|
|
8030
|
+
console.warn('ensureCompletePath', appName, tab);
|
|
8080
8031
|
var path = window.location.pathname;
|
|
8081
8032
|
var urlParams = new URLSearchParams(window.location.search);
|
|
8082
8033
|
var queryString = urlParams.toString();
|
|
@@ -8085,7 +8036,7 @@ var ensureCompletePath = function (appName, tab) {
|
|
|
8085
8036
|
path.endsWith("/".concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD));
|
|
8086
8037
|
if (needsCompletion) {
|
|
8087
8038
|
var basePath = path.replace(new RegExp("/".concat(URL_TAB_PATH.CLUSTER_LOAD, "(/").concat(URL_TAB_PATH.OVERALL_LOAD, ")?$")), '');
|
|
8088
|
-
var newPath = "".concat(basePath, "/").concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD, "/").concat(URL_TAB_PATH.
|
|
8039
|
+
var newPath = "".concat(basePath, "/").concat(URL_TAB_PATH.CLUSTER_LOAD, "/").concat(URL_TAB_PATH.OVERALL_LOAD, "/").concat(URL_TAB_PATH.QUERIES).concat(queryString ? "?".concat(queryString) : '');
|
|
8089
8040
|
window.history.replaceState(null, '', newPath);
|
|
8090
8041
|
}
|
|
8091
8042
|
};
|
|
@@ -8096,6 +8047,7 @@ var ensureCompletePath = function (appName, tab) {
|
|
|
8096
8047
|
*/
|
|
8097
8048
|
var buildPrimaryDashboardUrl = function (appName, isQueryViewFromAnomaly) {
|
|
8098
8049
|
if (isQueryViewFromAnomaly === void 0) { isQueryViewFromAnomaly = false; }
|
|
8050
|
+
console.warn('buildPrimaryDashboardUrl', appName);
|
|
8099
8051
|
var currentUrl = window.location.href;
|
|
8100
8052
|
var baseUrl = currentUrl.substring(0, currentUrl.lastIndexOf('/'));
|
|
8101
8053
|
var urlParams = new URLSearchParams(window.location.search);
|
|
@@ -8145,6 +8097,7 @@ var buildPrimaryDashboardUrl = function (appName, isQueryViewFromAnomaly) {
|
|
|
8145
8097
|
*/
|
|
8146
8098
|
var buildYbmUrl = function (isHistoricalQueryView, isQueryViewFromAnomalyView) {
|
|
8147
8099
|
if (isQueryViewFromAnomalyView === void 0) { isQueryViewFromAnomalyView = false; }
|
|
8100
|
+
console.warn('buildYbmUrl');
|
|
8148
8101
|
var ybmCurrentUrl = new URL(window.location.href);
|
|
8149
8102
|
if (isHistoricalQueryView) {
|
|
8150
8103
|
// List of query parameters to remove
|
|
@@ -8190,7 +8143,7 @@ var buildYbmDrilldownUrl = function () {
|
|
|
8190
8143
|
* @param onNavigateToUrl - Optional callback for React Router navigation (used in YBM)
|
|
8191
8144
|
*/
|
|
8192
8145
|
var navigateToPrimaryDashboard = function (appName, isHistoricalQueryView, onSelectedIssue, onSelectedQuery, onNavigateToUrl) {
|
|
8193
|
-
if (appName === AppName.YBM) {
|
|
8146
|
+
if (appName === AppName.YBM || appName === AppName.YBA) {
|
|
8194
8147
|
if (isHistoricalQueryView) {
|
|
8195
8148
|
onSelectedQuery === null || onSelectedQuery === void 0 ? void 0 : onSelectedQuery(null);
|
|
8196
8149
|
var ybmCurrentUrl = buildYbmUrl(true);
|
|
@@ -8230,8 +8183,7 @@ var navigateToPrimaryDashboard = function (appName, isHistoricalQueryView, onSel
|
|
|
8230
8183
|
*/
|
|
8231
8184
|
var navigateToDrilldownView = function (appName, anomalyData, onSelectedIssue, onNavigateToUrl) {
|
|
8232
8185
|
var _a, _b;
|
|
8233
|
-
if (appName === AppName.YBM) {
|
|
8234
|
-
// Select the anomaly issue
|
|
8186
|
+
if (appName === AppName.YBM || appName === AppName.YBA) {
|
|
8235
8187
|
onSelectedIssue === null || onSelectedIssue === void 0 ? void 0 : onSelectedIssue((_b = (_a = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _a === void 0 ? void 0 : _a.uuid) !== null && _b !== void 0 ? _b : null);
|
|
8236
8188
|
// Build the drilldown URL by removing query-specific path and parameters
|
|
8237
8189
|
var drilldownUrl = buildYbmDrilldownUrl();
|
|
@@ -8287,12 +8239,12 @@ var MetadataHeader = function (_a) {
|
|
|
8287
8239
|
e.stopPropagation();
|
|
8288
8240
|
}
|
|
8289
8241
|
};
|
|
8290
|
-
return (jsx(Box$1, { children: isDrilldownView && showDetails && (jsx(Box$1,
|
|
8291
|
-
anomalyCategory === AnomalyCategory.APP) && (jsx(YBTooltip,
|
|
8242
|
+
return (jsx(Box$1, { children: isDrilldownView && showDetails && (jsx(Box$1, { className: clsx(helperClasses.headerMetadataBox, helperClasses.boxContainer, helperClasses.flexColumn), mt: 3, children: !isHistoricalQueryView ? (jsx(Fragment, { children: anomalyData && (jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsxs(Box$1, { className: helperClasses.flexRow, width: "100%", justifyContent: 'space-between', children: [jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: ANOMALY_TAG }), jsx(Box$1, { className: helperClasses.anomalyTypeTag, children: jsx("span", { className: helperClasses.anomalyTypeText, children: ANOMALY_TYPE_TO_NAME_MAP[(_p = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _p === void 0 ? void 0 : _p.type] }) })] }), anomalyCategory !== AnomalyCategory.SQL && (jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: (_r = CATEGORY_HEADER_DATA_MAP[(_q = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _q === void 0 ? void 0 : _q.type]) === null || _r === void 0 ? void 0 : _r.title }), jsxs(Box$1, { children: [jsx(YBTooltip, { title: entityDisplayName || '', placement: "top", arrow: true, children: jsx("span", { className: helperClasses.regularMetadata, children: truncateEntityDisplayName(entityDisplayName, anomalyCategory, anomalyCategory === AnomalyCategory.SQL ? 40 : 30) }) }), (anomalyCategory === AnomalyCategory.NODE ||
|
|
8243
|
+
anomalyCategory === AnomalyCategory.APP) && (jsx(YBTooltip, { title: copied ? 'Copied' : 'Copy', open: copied ? true : undefined, children: jsx("img", { src: CopyIcon, alt: "Copy Icon", style: { marginLeft: '4px', cursor: 'pointer' }, onClick: function () {
|
|
8292
8244
|
navigator.clipboard.writeText(entityDisplayName);
|
|
8293
8245
|
setCopied(true);
|
|
8294
8246
|
setTimeout(function () { return setCopied(false); }, 2000);
|
|
8295
|
-
} }) }))
|
|
8247
|
+
} }) }))] })] })), anomalyCategory === AnomalyCategory.SQL && (jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: DB_CAPS_TAG }), jsx(Box$1, { children: jsx("span", { className: helperClasses.regularMetadata, children: (_s = universeQueryStatsData === null || universeQueryStatsData === void 0 ? void 0 : universeQueryStatsData[0]) === null || _s === void 0 ? void 0 : _s.namespaceName }) })] })), anomalyCategory === AnomalyCategory.SQL && (jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: QUERY_TYPE_TAG }), jsx(Box$1, { children: jsx("span", { className: helperClasses.regularMetadata, children: (_t = universeQueryStatsData === null || universeQueryStatsData === void 0 ? void 0 : universeQueryStatsData[0]) === null || _t === void 0 ? void 0 : _t.queryType }) })] })), anomalyCategory === AnomalyCategory.DB && isAnomalyTabletType && (jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: DB_CAPS_TAG }), jsx(Box$1, { children: jsx("span", { className: helperClasses.regularMetadata, children: getSqlAnomalyGroupParams(anomalyData).dbName }) })] })), jsxs(Box$1, { className: helperClasses.flexColumn, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: anomalyCategory === AnomalyCategory.DB
|
|
8296
8248
|
? typeof isAnomalyTabletType !== 'undefined'
|
|
8297
8249
|
? isAnomalyTabletType
|
|
8298
8250
|
? TABLET_ID_TAG
|
|
@@ -8301,16 +8253,16 @@ var MetadataHeader = function (_a) {
|
|
|
8301
8253
|
: anomalyCategory === AnomalyCategory.NODE ||
|
|
8302
8254
|
anomalyCategory === AnomalyCategory.APP
|
|
8303
8255
|
? REGION_ZONE_TAG
|
|
8304
|
-
: null })
|
|
8305
|
-
anomalyCategory === AnomalyCategory.APP ? (jsx(Fragment, { children: "".concat(regionName === null || regionName === void 0 ? void 0 : regionName.toUpperCase(), " (").concat(zoneName, ")") })) : null })
|
|
8256
|
+
: null }), jsx(Box$1, { children: jsx("span", { className: helperClasses.regularMetadata, children: anomalyCategory === AnomalyCategory.DB ? (isAnomalyTabletType ? ((_x = (_w = (_v = (_u = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _u === void 0 ? void 0 : _u.mainGraphs) === null || _v === void 0 ? void 0 : _v[0].filters) === null || _w === void 0 ? void 0 : _w.tabletId) === null || _x === void 0 ? void 0 : _x[0]) : ((_1 = (_0 = (_z = (_y = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _y === void 0 ? void 0 : _y.mainGraphs) === null || _z === void 0 ? void 0 : _z[0].filters) === null || _0 === void 0 ? void 0 : _0.tableName) === null || _1 === void 0 ? void 0 : _1[0])) : anomalyCategory === AnomalyCategory.NODE ||
|
|
8257
|
+
anomalyCategory === AnomalyCategory.APP ? (jsx(Fragment, { children: "".concat(regionName === null || regionName === void 0 ? void 0 : regionName.toUpperCase(), " (").concat(zoneName, ")") })) : null }) })] }), jsx(Box$1, { children: jsx(YBButton, { size: "small", variant: "ghost", onClick: function () { return onShowDetails(false); }, dataTestId: "BreadCrumbsAndMetadataHeader-HideDetails", children: jsx("span", { style: {
|
|
8306
8258
|
color: '#2B59C3',
|
|
8307
8259
|
fontSize: '11.5px',
|
|
8308
8260
|
fontStyle: 'semibold'
|
|
8309
|
-
}
|
|
8261
|
+
}, children: 'Hide Details' }) }) })] }), anomalyCategory === AnomalyCategory.SQL && (jsx(Box$1, { mt: 2, children: jsx(Box$1, { onClick: handleCodeBlockClick, width: "100%", style: { minWidth: 0, overflow: 'hidden', display: 'grid' }, children: jsx(YBCodeBlock, { lang: "sql", showCopyButton: true, singleLineEllipsis: true, enabledExpandCollapse: false, text: (_2 = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _2 === void 0 ? void 0 : _2.entityDisplayName, containerClassName: codeBlockClasses.queryContainerCodeInBreadcrumbs }, "TableHelperQueries-query") }) }))] })) })) : (jsxs(Box$1, { children: [jsxs(Box$1, { className: helperClasses.flexRow, width: "100%", children: [jsxs(Box$1, { className: helperClasses.flexColumn, alignItems: "flex-start", flex: 1, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: DB_CAPS_TAG }), jsx(Box$1, { children: queryObject === null || queryObject === void 0 ? void 0 : queryObject.namespaceName })] }), jsxs(Box$1, { className: helperClasses.flexColumn, alignItems: "flex-start", flex: 1, children: [jsx(Box$1, { className: helperClasses.headerTitle, children: QUERY_TYPE_TAG }), jsx(Box$1, { children: queryObject === null || queryObject === void 0 ? void 0 : queryObject.queryType })] }), jsx(Box$1, { className: helperClasses.flexColumn, alignItems: "flex-start", ml: "auto", children: jsx(YBButton, { size: "small", variant: "ghost", onClick: function () { return onShowDetails(false); }, dataTestId: "BreadCrumbsAndMetadataHeader-HideDetails", children: jsx("span", { style: {
|
|
8310
8262
|
color: '#2B59C3',
|
|
8311
8263
|
fontSize: '11.5px',
|
|
8312
8264
|
fontStyle: 'semibold'
|
|
8313
|
-
}
|
|
8265
|
+
}, children: 'Hide Details' }) }) })] }), jsx(Box$1, { className: helperClasses.flexColumn, mt: 2, children: jsx(Box$1, { onClick: handleCodeBlockClick, width: "100%", style: { minWidth: 0, overflow: 'hidden', display: 'grid' }, children: jsx(YBCodeBlock, { lang: "sql", showCopyButton: true, singleLineEllipsis: true, enabledExpandCollapse: false, text: (_3 = queryObject === null || queryObject === void 0 ? void 0 : queryObject.query) !== null && _3 !== void 0 ? _3 : '', containerClassName: codeBlockClasses.queryContainerCodeInBreadcrumbs }, "TableHelperQueries-query") }) })] })) })) }));
|
|
8314
8266
|
};
|
|
8315
8267
|
|
|
8316
8268
|
var img$f = "data:image/svg+xml,%3csvg width='13' height='10' viewBox='0 0 13 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.66667 3.66667H1M4.33333 1H1M12.3333 6.33333H1M9.66667 9H1' stroke='%232B59C3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
@@ -8321,7 +8273,7 @@ var BreadCrumbsHeader = function (_a) {
|
|
|
8321
8273
|
var appName = _a.appName, anomalyData = _a.anomalyData, showDetails = _a.showDetails, _d = _a.isDrilldownView, isDrilldownView = _d === void 0 ? true : _d, isHistoricalQueryView = _a.isHistoricalQueryView, queryObject = _a.queryObject, onSelectedQuery = _a.onSelectedQuery, onSelectedIssue = _a.onSelectedIssue, onShowDetails = _a.onShowDetails, onNavigateToUrl = _a.onNavigateToUrl;
|
|
8322
8274
|
var helperClasses = useHelperStyles();
|
|
8323
8275
|
// const [showDetails, setShowDetails] = useState(true);
|
|
8324
|
-
var urlState = parseUrlState(
|
|
8276
|
+
var urlState = parseUrlState();
|
|
8325
8277
|
var getPrimaryBreadcrumbLabel = function () {
|
|
8326
8278
|
if (urlState.currentTab === InsightsTabs.CLUSTER_LOAD) {
|
|
8327
8279
|
var subTabLabel = urlState.clusterLoadSubTab;
|
|
@@ -8385,10 +8337,12 @@ var BreadCrumbsHeader = function (_a) {
|
|
|
8385
8337
|
entityDisplayName: entityDisplayName,
|
|
8386
8338
|
queryText: queryObject === null || queryObject === void 0 ? void 0 : queryObject.query
|
|
8387
8339
|
});
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8340
|
+
if (urlState.currentTab !== InsightsTabs.INSIGHTS) {
|
|
8341
|
+
items.push({
|
|
8342
|
+
label: categoryLabel,
|
|
8343
|
+
onClick: handleNavigateToPrimaryDashboard
|
|
8344
|
+
});
|
|
8345
|
+
}
|
|
8392
8346
|
if (entityLabel) {
|
|
8393
8347
|
items.push({
|
|
8394
8348
|
label: entityLabel
|
|
@@ -8397,7 +8351,7 @@ var BreadCrumbsHeader = function (_a) {
|
|
|
8397
8351
|
}
|
|
8398
8352
|
return items;
|
|
8399
8353
|
};
|
|
8400
|
-
return (jsx(Box$1, { children: jsxs(Box$1,
|
|
8354
|
+
return (jsx(Box$1, { children: jsxs(Box$1, { display: 'flex', mb: 3, mt: 1, children: [jsx(Box$1, { className: helperClasses.ybBreadcrumbWrapper, children: isDrilldownView && (jsx(YBBreadcrumb, { size: "small", separator: "/", maxLabelWidth: 600, items: getBreadcrumbItems(), dataTestId: "GenericHeader-Breadcrumb" })) }), jsx(Box$1, { ml: 2, style: { marginTop: '-2px' }, children: !showDetails && (jsx(YBButton, { size: "small", variant: "secondary", onClick: function () { return onShowDetails(true); }, dataTestId: "BreadCrumbsAndMetadataHeader-ShowDetails", startIcon: jsx("img", { src: MaximizeIcon, alt: "Maximize Icon" }), children: 'Show Details' })) })] }) }));
|
|
8401
8355
|
};
|
|
8402
8356
|
|
|
8403
8357
|
var img$e = "data:image/svg+xml,%3csvg width='1' height='16' viewBox='0 0 1 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0.5' y1='2.18557e-08' x2='0.499999' y2='16' stroke='%23B7C3CB'/%3e%3c/svg%3e";
|
|
@@ -8458,7 +8412,7 @@ var GenericHeader = function (_a) {
|
|
|
8458
8412
|
setAsyncZoneToNodesMap(asyncZoneMapping);
|
|
8459
8413
|
}
|
|
8460
8414
|
}, [region, cluster]);
|
|
8461
|
-
return (jsxs(Box$1,
|
|
8415
|
+
return (jsxs(Box$1, { className: clsx(helperClasses.flexColumn), children: [jsx(Box$1, { children: jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: "center", children: [showMetricAggregator && (jsx(Box$1, { children: jsx(ClusterRegionSelector, { selectedItem: clusterRegionItem, onClusterRegionSelected: onClusterRegionSelected, primaryClusterToRegionMap: primaryClusterMapping, asyncClusterToRegionMap: asyncClusterMapping }) })), showMetricAggregator && (jsx(Box$1, { children: jsx(ZoneNodeSelector, { selectedItem: zoneNodeItem, onZoneNodeSelected: onZoneNodeSelected, primaryZoneToNodesMap: primaryZoneToNodesMap, asyncZoneToNodesMap: asyncZoneToNodesMap }) }))] }) }), showSplitSelector && (jsxs(Box$1, { display: "flex", flexDirection: "row", className: helperClasses.metricSplitSelectorBox, children: [jsx("img", { src: TreeIcon, alt: "Tree Icon" }), jsx(Box$1, { display: "flex", flexDirection: "row", children: jsx(MetricSplitSelector, { onSplitTypeSelected: onSplitTypeSelected, metricSplitSelectors: !isDrilldownView ? metricSplitSelectors : otherSplitSelectors, anomalyData: anomalyData }) }), metricMeasure !== MetricMeasure.OVERALL && (jsxs(Box$1, { display: "flex", flexDirection: "row", children: [jsx("img", { alt: "Divider", src: DividerIcon, className: helperClasses.dividerStyle }), jsx(OutlierSelector, { outlierType: outlierType, metricOutlierSelectors: metricOutlierSelectors, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, selectedNumNodes: numNodes, showNumNodesInput: false, showNumNodesSelector: true, metricMeasure: metricMeasure })] }))] }))] }));
|
|
8462
8416
|
};
|
|
8463
8417
|
|
|
8464
8418
|
function getDefaultExportFromCjs (x) {
|
|
@@ -12608,34 +12562,31 @@ var DateSelectorHeader = function (_a) {
|
|
|
12608
12562
|
if (tab === InsightsTabs.METRICS) {
|
|
12609
12563
|
return 'Advanced Metrics';
|
|
12610
12564
|
}
|
|
12611
|
-
else if (tab === InsightsTabs.INSIGHTS) {
|
|
12612
|
-
return 'Advanced Insights';
|
|
12613
|
-
}
|
|
12614
12565
|
}
|
|
12615
12566
|
if (tab === InsightsTabs.CLUSTER_LOAD && clusterLoadSubTab) {
|
|
12616
12567
|
return clusterLoadSubTab;
|
|
12617
12568
|
}
|
|
12618
12569
|
return tab;
|
|
12619
12570
|
};
|
|
12620
|
-
return (jsx(Box, { children: jsxs(Box,
|
|
12571
|
+
return (jsx(Box, { children: jsxs(Box, { display: "flex", flexDirection: "row", alignItems: "center", mt: isDrilldownView ? 2 : 0, children: [appName === AppName.YBM &&
|
|
12621
12572
|
currentTab &&
|
|
12622
12573
|
(currentTab === InsightsTabs.CLUSTER_LOAD ||
|
|
12623
12574
|
currentTab === InsightsTabs.METRICS ||
|
|
12624
|
-
currentTab === InsightsTabs.INSIGHTS) && (jsx(Typography,
|
|
12575
|
+
currentTab === InsightsTabs.INSIGHTS) && (jsx(Typography, { variant: "h5", children: jsx("span", { className: clsx(helperClasses.breadCrumbText), children: getViewTitle(currentTab) }) })), jsxs(Box, { display: "flex", ml: 'auto', alignItems: 'flex-end', children: [filterDuration === TIME_FILTER_VALUES.CUSTOM && (jsxs(Fragment, { children: [jsx(Box, { mt: 0.5, mr: 2, children: jsx(YBDatePicker, { className: helperClasses.dateTimePicker, format: YBDatePickerDisplayFormat, value: previousDateTime, onChange: onStartDateChange, calendar: {
|
|
12625
12576
|
showTimeSelector: true
|
|
12626
12577
|
}, validation: {
|
|
12627
12578
|
maxDate: currentDateTime
|
|
12628
|
-
} }) })
|
|
12579
|
+
} }) }), jsx(Box, { mt: 0.5, mr: 2, children: jsx(YBDatePicker, { className: helperClasses.dateTimePicker, format: YBDatePickerDisplayFormat, value: currentDateTime, defaultDateTimeValue: currentDateTime, onChange: onEndDateChange, errorMsg: datetimeError, calendar: {
|
|
12629
12580
|
showTimeSelector: true
|
|
12630
12581
|
}, validation: {
|
|
12631
12582
|
minDate: previousDateTime
|
|
12632
|
-
} }) })
|
|
12583
|
+
} }) })] })), jsx(YBSelect, { className: clsx(helperClasses.ybSelectBox, helperClasses.ybOverrideMuiInput), dataTestId: "GenericHeaderTimeFilterSelect", value: filterDuration, children: ANOMALY_FILTER_DURATION_OPTIONS.map(function (duration) { return (jsx(MenuItem, { value: duration.value, onClick: function () {
|
|
12633
12584
|
onSelectedFilterDuration(duration.value);
|
|
12634
12585
|
}, className: clsx(helperClasses.regularText), disabled: appName === AppName.YBM &&
|
|
12635
12586
|
isTopKMetricsView &&
|
|
12636
12587
|
duration.value !== TIME_FILTER_VALUES.ONE_HOUR &&
|
|
12637
12588
|
duration.value !== TIME_FILTER_VALUES.SIX_HOURS &&
|
|
12638
|
-
metricMeasure === MetricMeasure.OUTLIER_TABLES
|
|
12589
|
+
metricMeasure === MetricMeasure.OUTLIER_TABLES, children: duration.label }, "duration-".concat(duration.label))); }) }), currentTab !== InsightsTabs.METRICS && (jsx(YBButton, { style: { marginLeft: '8px' }, variant: 'secondary', dataTestId: "GenericHeader-RefreshButton", startIcon: jsx("img", { src: RefreshIcon, alt: "Refresh Icon" }), size: 'medium', onClick: function () { return onRefresh(); }, children: 'Refresh' }))] })] }) }));
|
|
12639
12590
|
};
|
|
12640
12591
|
|
|
12641
12592
|
var Browser = (function () {
|
|
@@ -27408,55 +27359,55 @@ registerShape('bezierCurve', BezierCurve$1);
|
|
|
27408
27359
|
registerShape('arc', Arc$1);
|
|
27409
27360
|
|
|
27410
27361
|
var graphic = /*#__PURE__*/Object.freeze({
|
|
27411
|
-
|
|
27412
|
-
|
|
27413
|
-
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
|
|
27425
|
-
|
|
27426
|
-
|
|
27427
|
-
|
|
27428
|
-
|
|
27429
|
-
|
|
27430
|
-
|
|
27431
|
-
|
|
27432
|
-
|
|
27433
|
-
|
|
27434
|
-
|
|
27435
|
-
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27439
|
-
|
|
27440
|
-
|
|
27441
|
-
|
|
27442
|
-
|
|
27443
|
-
|
|
27444
|
-
|
|
27445
|
-
|
|
27446
|
-
|
|
27447
|
-
|
|
27448
|
-
|
|
27449
|
-
|
|
27450
|
-
|
|
27451
|
-
|
|
27452
|
-
|
|
27453
|
-
|
|
27454
|
-
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
|
|
27459
|
-
|
|
27362
|
+
__proto__: null,
|
|
27363
|
+
updateProps: updateProps$1,
|
|
27364
|
+
initProps: initProps,
|
|
27365
|
+
removeElement: removeElement,
|
|
27366
|
+
removeElementWithFadeOut: removeElementWithFadeOut,
|
|
27367
|
+
isElementRemoved: isElementRemoved,
|
|
27368
|
+
extendShape: extendShape,
|
|
27369
|
+
extendPath: extendPath,
|
|
27370
|
+
registerShape: registerShape,
|
|
27371
|
+
getShapeClass: getShapeClass,
|
|
27372
|
+
makePath: makePath,
|
|
27373
|
+
makeImage: makeImage,
|
|
27374
|
+
mergePath: mergePath,
|
|
27375
|
+
resizePath: resizePath,
|
|
27376
|
+
subPixelOptimizeLine: subPixelOptimizeLine,
|
|
27377
|
+
subPixelOptimizeRect: subPixelOptimizeRect,
|
|
27378
|
+
subPixelOptimize: subPixelOptimize,
|
|
27379
|
+
getTransform: getTransform$1,
|
|
27380
|
+
applyTransform: applyTransform,
|
|
27381
|
+
transformDirection: transformDirection,
|
|
27382
|
+
groupTransition: groupTransition,
|
|
27383
|
+
clipPointsByRect: clipPointsByRect,
|
|
27384
|
+
clipRectByRect: clipRectByRect,
|
|
27385
|
+
createIcon: createIcon,
|
|
27386
|
+
linePolygonIntersect: linePolygonIntersect,
|
|
27387
|
+
lineLineIntersect: lineLineIntersect,
|
|
27388
|
+
setTooltipConfig: setTooltipConfig,
|
|
27389
|
+
traverseElements: traverseElements,
|
|
27390
|
+
Group: Group$3,
|
|
27391
|
+
Image: ZRImage$1,
|
|
27392
|
+
Text: ZRText$1,
|
|
27393
|
+
Circle: Circle$1,
|
|
27394
|
+
Ellipse: Ellipse$1,
|
|
27395
|
+
Sector: Sector$1,
|
|
27396
|
+
Ring: Ring$1,
|
|
27397
|
+
Polygon: Polygon$1,
|
|
27398
|
+
Polyline: Polyline$1,
|
|
27399
|
+
Rect: Rect$2,
|
|
27400
|
+
Line: Line$1,
|
|
27401
|
+
BezierCurve: BezierCurve$1,
|
|
27402
|
+
Arc: Arc$1,
|
|
27403
|
+
IncrementalDisplayable: IncrementalDisplayable$1,
|
|
27404
|
+
CompoundPath: CompoundPath$1,
|
|
27405
|
+
LinearGradient: LinearGradient$1,
|
|
27406
|
+
RadialGradient: RadialGradient$1,
|
|
27407
|
+
BoundingRect: BoundingRect$1,
|
|
27408
|
+
OrientedBoundingRect: OrientedBoundingRect$1,
|
|
27409
|
+
Point: Point$1,
|
|
27410
|
+
Path: Path$1
|
|
27460
27411
|
});
|
|
27461
27412
|
|
|
27462
27413
|
var EMPTY_OBJ = {};
|
|
@@ -71734,7 +71685,7 @@ var GraphView = React__default.memo(function (_a) {
|
|
|
71734
71685
|
// Creates the tooltip when hovering over the chart
|
|
71735
71686
|
tooltip: {
|
|
71736
71687
|
trigger: 'axis',
|
|
71737
|
-
confine: true,
|
|
71688
|
+
confine: true, // Ensures tooltip stays within chart area
|
|
71738
71689
|
axisPointer: {
|
|
71739
71690
|
// Type 'cross' creates a vertical line across the chart
|
|
71740
71691
|
// Type 'shadow' creates a shaded area
|
|
@@ -71796,15 +71747,15 @@ var GraphView = React__default.memo(function (_a) {
|
|
|
71796
71747
|
},
|
|
71797
71748
|
xAxis: {
|
|
71798
71749
|
type: 'time',
|
|
71799
|
-
boundaryGap: false,
|
|
71800
|
-
splitNumber: 6,
|
|
71750
|
+
boundaryGap: false, // line chart => no gap
|
|
71751
|
+
splitNumber: 6, // try to keep ~5 ticks
|
|
71801
71752
|
axisLabel: {
|
|
71802
|
-
color: '#6D7C88',
|
|
71753
|
+
color: '#6D7C88', // Use a dark color for better contrast
|
|
71803
71754
|
textStyle: {
|
|
71804
|
-
fontFamily: METRIC_FONT,
|
|
71755
|
+
fontFamily: METRIC_FONT, // or your preferred font
|
|
71805
71756
|
fontSize: 11.5 // set desired font size
|
|
71806
71757
|
},
|
|
71807
|
-
interval: 'auto',
|
|
71758
|
+
interval: 'auto', // skip labels if needed
|
|
71808
71759
|
formatter: function (value) {
|
|
71809
71760
|
var date = new Date(value);
|
|
71810
71761
|
var diffDays = getDiffDays(dateTimeRange.startDateTime, dateTimeRange.endDateTime);
|
|
@@ -71834,9 +71785,9 @@ var GraphView = React__default.memo(function (_a) {
|
|
|
71834
71785
|
yAxis: {
|
|
71835
71786
|
type: 'value',
|
|
71836
71787
|
axisLabel: {
|
|
71837
|
-
color: '#6D7C88',
|
|
71788
|
+
color: '#6D7C88', // Use a dark color for better contrast
|
|
71838
71789
|
textStyle: {
|
|
71839
|
-
fontFamily: METRIC_FONT,
|
|
71790
|
+
fontFamily: METRIC_FONT, // or your preferred font
|
|
71840
71791
|
fontSize: 11.5 // set desired font size
|
|
71841
71792
|
},
|
|
71842
71793
|
// Sometimes the y-axis values can be large, so we format them to not show decimal places
|
|
@@ -71867,7 +71818,7 @@ var GraphView = React__default.memo(function (_a) {
|
|
|
71867
71818
|
show: false // Hide toolbox UI but keep brush functionality
|
|
71868
71819
|
},
|
|
71869
71820
|
brush: {
|
|
71870
|
-
toolbox: ['rect', 'polygon'],
|
|
71821
|
+
toolbox: ['rect', 'polygon'], // enable rectangular selection brush (box select)
|
|
71871
71822
|
xAxisIndex: 0,
|
|
71872
71823
|
yAxisIndex: 0,
|
|
71873
71824
|
brushType: 'rect',
|
|
@@ -72132,43 +72083,43 @@ var GraphView = React__default.memo(function (_a) {
|
|
|
72132
72083
|
chartInstanceRef.current.setOption(newOption, true);
|
|
72133
72084
|
}
|
|
72134
72085
|
};
|
|
72135
|
-
return (jsxs(Box$1,
|
|
72086
|
+
return (jsxs(Box$1, { id: metricKey, onClick: function (e) { return e.stopPropagation(); }, className: classes.metricPanel, children: [jsxs("span", { className: classes.groupByContainer, children: [((_b = metricData === null || metricData === void 0 ? void 0 : metricData.layout) === null || _b === void 0 ? void 0 : _b.type) === ASH && !isRecommendationGraph && (jsx(Box$1, { mr: 0.5, children: jsx(YBLabel, { children: 'Show' }) })), ((_c = metricData === null || metricData === void 0 ? void 0 : metricData.layout) === null || _c === void 0 ? void 0 : _c.type) === ASH &&
|
|
72136
72087
|
(metricMeasure === MetricMeasure.OUTLIER ||
|
|
72137
72088
|
metricMeasure === MetricMeasure.OUTLIER_TABLES ||
|
|
72138
72089
|
metricMeasure === MetricMeasure.OUTLIER_DB ||
|
|
72139
72090
|
isHistoricalQueryView) &&
|
|
72140
|
-
isNonEmptyArray(groupByOperations) && (jsx(Box$1,
|
|
72091
|
+
isNonEmptyArray(groupByOperations) && (jsx(Box$1, { ml: 1, mr: 1, children: jsx(YBSelect, { value: selectedGroupByOperation, className: classes.overrideMuiInput, menuProps: {
|
|
72141
72092
|
PaperProps: {
|
|
72142
72093
|
style: {
|
|
72143
72094
|
minHeight: '50px',
|
|
72144
72095
|
maxHeight: '250px'
|
|
72145
72096
|
}
|
|
72146
72097
|
}
|
|
72147
|
-
}, dataTestId: "GraphView-GroupBySelect"
|
|
72098
|
+
}, dataTestId: "GraphView-GroupBySelect", children: groupByOperations === null || groupByOperations === void 0 ? void 0 : groupByOperations.map(function (groupByOperation, operationIdx) {
|
|
72148
72099
|
var _a;
|
|
72149
|
-
return (jsx(MenuItem$1,
|
|
72100
|
+
return (jsx(MenuItem$1, { value: groupByOperation, onClick: function (event) {
|
|
72150
72101
|
loadDataByGroupByOperation(groupByOperation);
|
|
72151
72102
|
event.stopPropagation();
|
|
72152
|
-
}
|
|
72153
|
-
}) })
|
|
72154
|
-
(((_d = metricData === null || metricData === void 0 ? void 0 : metricData.layout) === null || _d === void 0 ? void 0 : _d.type) === ASH || (metricOperationsDisplayed === null || metricOperationsDisplayed === void 0 ? void 0 : metricOperationsDisplayed.length) > 1) && (jsx(Box$1,
|
|
72103
|
+
}, children: (_a = GROUP_BY_OPERATIONS_LABELS[groupByOperation]) !== null && _a !== void 0 ? _a : groupByOperation }, operationIdx));
|
|
72104
|
+
}) }) })), isNonEmptyArray(metricOperationsDisplayed) &&
|
|
72105
|
+
(((_d = metricData === null || metricData === void 0 ? void 0 : metricData.layout) === null || _d === void 0 ? void 0 : _d.type) === ASH || (metricOperationsDisplayed === null || metricOperationsDisplayed === void 0 ? void 0 : metricOperationsDisplayed.length) > 1) && (jsx(Box$1, { mr: 2, children: jsx(YBSelect, { value: selectedMetricOperation, className: classes.overrideMuiInput, dataTestId: "GraphView-MetricOperationSelect", menuProps: {
|
|
72155
72106
|
PaperProps: {
|
|
72156
72107
|
style: {
|
|
72157
72108
|
minHeight: '50px',
|
|
72158
72109
|
maxHeight: '250px'
|
|
72159
72110
|
}
|
|
72160
72111
|
}
|
|
72161
|
-
}
|
|
72112
|
+
}, children: metricOperationsDisplayed === null || metricOperationsDisplayed === void 0 ? void 0 : metricOperationsDisplayed.map(function (operation, idx) { return (jsx(MenuItem$1, { value: operation, onClick: function (event) {
|
|
72162
72113
|
loadDataByMetricOperation(operation);
|
|
72163
72114
|
event.stopPropagation();
|
|
72164
|
-
}
|
|
72115
|
+
}, children: operation }, "".concat(operation, "-").concat(idx))); }) }) }))] }), jsx("div", { ref: chartRef, id: chartId, style: {
|
|
72165
72116
|
overflow: 'hidden',
|
|
72166
72117
|
position: 'relative',
|
|
72167
72118
|
zIndex: 1,
|
|
72168
72119
|
minHeight: appName === AppName.WEB ? DEFAULT_HEIGHT : DEFAULT_HEIGHT_YBM,
|
|
72169
|
-
width: '100%',
|
|
72120
|
+
width: '100%', // fill the grid cell exactly
|
|
72170
72121
|
minWidth: 0 // prevent overflow inside the cell
|
|
72171
|
-
} })] }))
|
|
72122
|
+
} })] }));
|
|
72172
72123
|
});
|
|
72173
72124
|
|
|
72174
72125
|
var axios$3 = {exports: {}};
|
|
@@ -77261,9 +77212,9 @@ var AnomalyRCAGraphs = function (_a) {
|
|
|
77261
77212
|
});
|
|
77262
77213
|
var fetchAnomalyGraphsErrorMessage = (_d = (_c = (_b = fetchAnomalyGraphs === null || fetchAnomalyGraphs === void 0 ? void 0 : fetchAnomalyGraphs.error) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error;
|
|
77263
77214
|
var renderGraphs = function (graphResponseData, uniqueOperations, groupByOperations, graphType, index, graphTitle) {
|
|
77264
|
-
return (jsx(Box$1,
|
|
77215
|
+
return (jsx(Box$1, { mr: 8, children: jsx(GraphView, { metricData: graphResponseData, metricKey: graphResponseData.name, graphTitle: graphTitle, containerWidth: null, dateTimeRange: dateTimeRange, metricMeasure: metricMeasure, operations: uniqueOperations, groupByOperations: groupByOperations, registerChartInstance: function (instance) {
|
|
77265
77216
|
return registerChartInstance(instance, index);
|
|
77266
|
-
}, isRecommendationGraph: true, appName: appName, graphType: graphType, timezone: timezone, onSelectAshLabel: onSelectAshLabel, onEChartsDateSelect: onEChartsDateSelect }, "".concat(metricMeasure, "-").concat(graphResponseData.name)) }))
|
|
77217
|
+
}, isRecommendationGraph: true, appName: appName, graphType: graphType, timezone: timezone, onSelectAshLabel: onSelectAshLabel, onEChartsDateSelect: onEChartsDateSelect }, "".concat(metricMeasure, "-").concat(graphResponseData.name)) }));
|
|
77267
77218
|
};
|
|
77268
77219
|
var filteredRecommendationMetrics = formattedAnomalyRca === null || formattedAnomalyRca === void 0 ? void 0 : formattedAnomalyRca.filter(function (item) { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.length) > 0; });
|
|
77269
77220
|
// Reset chart instances on metricMeasure change
|
|
@@ -77283,21 +77234,21 @@ var AnomalyRCAGraphs = function (_a) {
|
|
|
77283
77234
|
disconnect(chartInstancesRef.current);
|
|
77284
77235
|
};
|
|
77285
77236
|
}, [fetchAnomalyGraphs.isSuccess, RCAGraphResponseData, selectedTab]);
|
|
77286
|
-
return (jsx(Box$1, { children: jsxs(Box$1, { children: [fetchAnomalyGraphs.isLoading && (jsx(Box$1,
|
|
77237
|
+
return (jsx(Box$1, { children: jsxs(Box$1, { children: [fetchAnomalyGraphs.isLoading && (jsx(Box$1, { mt: 2, className: classes.loadingBox, children: jsx(SvgLoading, { className: clsx(classes.icon, classes.inProgressIcon) }) })), fetchAnomalyGraphs.isError && (jsxs(Box$1, { mt: 4, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchAnomalyGraphsErrorMessage)
|
|
77287
77238
|
? fetchAnomalyGraphsErrorMessage
|
|
77288
77239
|
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchAnomalyGraphsErrorMessage)
|
|
77289
77240
|
? fetchAnomalyGraphsErrorMessage
|
|
77290
|
-
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR }))] }))
|
|
77291
|
-
isNonEmptyArray(filteredRecommendationMetrics) && (jsxs(Box$1, { children: [jsx(YBTabs,
|
|
77241
|
+
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR }))] })), fetchAnomalyGraphs.isSuccess && (jsx(Box$1, { children: isNonEmptyArray(RCAGraphResponseData) &&
|
|
77242
|
+
isNonEmptyArray(filteredRecommendationMetrics) && (jsxs(Box$1, { children: [jsx(YBTabs, { pill: true, value: selectedTab, onChange: handleTabChange, children: filteredRecommendationMetrics === null || filteredRecommendationMetrics === void 0 ? void 0 : filteredRecommendationMetrics.map(function (item, index) { return (jsx(YBStyledTab$4, { value: index, label: item.cause, className: classes.causeTabButton }, index)); }) }), filteredRecommendationMetrics === null || filteredRecommendationMetrics === void 0 ? void 0 : filteredRecommendationMetrics.map(function (item, recIndex) {
|
|
77292
77243
|
var _a, _b;
|
|
77293
|
-
return (jsx(Box$1,
|
|
77244
|
+
return (jsx(Box$1, { role: "tabpanel", hidden: selectedTab !== recIndex, id: "tabpanel-".concat(recIndex), "aria-labelledby": "tab-".concat(recIndex), style: {
|
|
77294
77245
|
border: '1px solid #E9EEF2',
|
|
77295
77246
|
borderRadius: '8px',
|
|
77296
77247
|
backgroundColor: '#FFFFFF',
|
|
77297
77248
|
padding: '16px'
|
|
77298
|
-
}
|
|
77249
|
+
}, children: selectedTab === recIndex && (jsxs(Box$1, { mt: 2, display: 'flex', flexDirection: 'column', children: [jsx("span", { className: classes.causeText, children: item.cause }), jsxs(Box$1, { mt: 1, children: [jsx("img", { src: UnderIcon, alt: "path" }), jsx("span", { className: classes.descriptionText, children: item.description })] }), jsx(Box$1, { mt: 2, className: ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.length) > 1
|
|
77299
77250
|
? clsx(classes.gridBox, classes.gridBoxDouble)
|
|
77300
|
-
: ''
|
|
77251
|
+
: '', children: (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.map(function (metricName, index) {
|
|
77301
77252
|
var _a, _b, _c;
|
|
77302
77253
|
var metricData = RCAGraphResponseData === null || RCAGraphResponseData === void 0 ? void 0 : RCAGraphResponseData.find(function (data, graphIdx) {
|
|
77303
77254
|
return (graphIdx > 0 &&
|
|
@@ -77311,15 +77262,15 @@ var AnomalyRCAGraphs = function (_a) {
|
|
|
77311
77262
|
}
|
|
77312
77263
|
else {
|
|
77313
77264
|
var operations = getOperations(metricMeasure, metricData, GraphType.MULTI_SUPPORTING, shouldShowGroupbyOperations, amomalyGraphRequestParams);
|
|
77314
|
-
return (jsx(Box$1,
|
|
77265
|
+
return (jsx(Box$1, { style: {
|
|
77315
77266
|
border: '1px solid #E9EEF2',
|
|
77316
77267
|
borderRadius: '8px',
|
|
77317
77268
|
marginRight: isOnlyReason ? '0px' : '16px'
|
|
77318
|
-
}
|
|
77269
|
+
}, children: renderGraphs(metricData, operations.uniqueOperations, operations.groupByOperations, isOnlyReason
|
|
77319
77270
|
? GraphType.SINGLE_SUPPORTING
|
|
77320
|
-
: GraphType.MULTI_SUPPORTING, recIndex + index, item.title) }))
|
|
77271
|
+
: GraphType.MULTI_SUPPORTING, recIndex + index, item.title) }));
|
|
77321
77272
|
}
|
|
77322
|
-
}) })
|
|
77273
|
+
}) })] })) }, recIndex));
|
|
77323
77274
|
})] })) }))] }) }));
|
|
77324
77275
|
};
|
|
77325
77276
|
|
|
@@ -77734,7 +77685,7 @@ var QueryEventsChart = function (_a) {
|
|
|
77734
77685
|
},
|
|
77735
77686
|
yAxis: {
|
|
77736
77687
|
type: 'category',
|
|
77737
|
-
data: [''],
|
|
77688
|
+
data: [''], // single row
|
|
77738
77689
|
show: false
|
|
77739
77690
|
},
|
|
77740
77691
|
series: series
|
|
@@ -77820,17 +77771,17 @@ var ColumnSelectorDrawer = function (_a) {
|
|
|
77820
77771
|
sessionStorage.setItem(visibleStorageKey, JSON.stringify(visibleMetadataColumns));
|
|
77821
77772
|
handleClose();
|
|
77822
77773
|
};
|
|
77823
|
-
return (jsx(YBModal,
|
|
77774
|
+
return (jsx(YBModal, { open: true, isSidePanel: true, title: 'Add and Remove Columns', onClose: handleClose, onSubmit: handleSubmit(onSubmit), enableBackdropDismiss: true, titleSeparator: true, dialogContentProps: {
|
|
77824
77775
|
style: {
|
|
77825
77776
|
padding: 0
|
|
77826
77777
|
}
|
|
77827
|
-
}, submitLabel: 'Apply', submitTestId: "btnApplyMetricsSelection", cancelLabel: 'Cancel', cancelTestId: "btnCloseMetricsSelection"
|
|
77778
|
+
}, submitLabel: 'Apply', submitTestId: "btnApplyMetricsSelection", cancelLabel: 'Cancel', cancelTestId: "btnCloseMetricsSelection", children: jsx(Box$1, { children: jsx(Box$1, { className: classes.itemsContainer, children: columns.map(function (column) {
|
|
77828
77779
|
var isHidden = hiddenColumns.includes(column.name);
|
|
77829
77780
|
if (isHidden) {
|
|
77830
77781
|
return null;
|
|
77831
77782
|
}
|
|
77832
|
-
return (jsx(Box$1,
|
|
77833
|
-
}) })
|
|
77783
|
+
return (jsx(Box$1, { className: classes.item, children: jsx(YBCheckboxField, { name: column.name, label: column.label, control: control, dataTestId: column.name, className: classes.checkbox }) }, column.name));
|
|
77784
|
+
}) }) }) }));
|
|
77834
77785
|
};
|
|
77835
77786
|
|
|
77836
77787
|
var img$b = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath opacity='0.5' fill-rule='evenodd' clip-rule='evenodd' d='M1.16699 6.99984C1.16699 3.77818 3.77866 1.1665 7.00033 1.1665C8.54742 1.1665 10.0312 1.78109 11.1251 2.87505C12.2191 3.96901 12.8337 5.45274 12.8337 6.99984C12.8337 10.2215 10.222 12.8332 7.00033 12.8332C3.77866 12.8332 1.16699 10.2215 1.16699 6.99984ZM6.41699 4.6665C6.41699 4.34434 6.67816 4.08317 7.00033 4.08317C7.32249 4.08317 7.58366 4.34434 7.58366 4.6665C7.58366 4.98867 7.32249 5.24984 7.00033 5.24984C6.67816 5.24984 6.41699 4.98867 6.41699 4.6665ZM6.41699 6.4165C6.41699 6.09434 6.67816 5.83317 7.00033 5.83317C7.32249 5.83317 7.58366 6.09434 7.58366 6.4165V9.33317C7.58366 9.65534 7.32249 9.9165 7.00033 9.9165C6.67816 9.9165 6.41699 9.65534 6.41699 9.33317V6.4165Z' fill='%2367666C'/%3e%3c/svg%3e";
|
|
@@ -78104,7 +78055,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78104
78055
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78105
78056
|
}); },
|
|
78106
78057
|
customHeadRender: function () {
|
|
78107
|
-
return (jsx(YBTooltip,
|
|
78058
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_EPS_RATIO_QUERY_LEVEL_TABLET_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.TOTAL_EPS_RATIO }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78108
78059
|
},
|
|
78109
78060
|
customBodyRender: function (value) {
|
|
78110
78061
|
return Number.isFinite(Number(value))
|
|
@@ -78128,7 +78079,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78128
78079
|
setCellProps: function () { return ({
|
|
78129
78080
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
78130
78081
|
}); },
|
|
78131
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78082
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ACTIVE_SESSIONS_PER_SECOND_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.EPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78132
78083
|
customBodyRender: function (value) {
|
|
78133
78084
|
return Number(value) ? Number(value).toLocaleString() : '0.0';
|
|
78134
78085
|
}
|
|
@@ -78159,7 +78110,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78159
78110
|
overflow: 'visible'
|
|
78160
78111
|
}
|
|
78161
78112
|
}); },
|
|
78162
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78113
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.WAIT_EVENT_TYPE_CHART_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.EVENTS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78163
78114
|
customBodyRender: function (value) { return (jsx(QueryEventsChart, { data: value !== null && value !== void 0 ? value : [], maxEPS: maxEPS, groupByOperation: WaitEventClassification.WAIT_EVENT_TYPE })); }
|
|
78164
78115
|
}
|
|
78165
78116
|
},
|
|
@@ -78170,7 +78121,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78170
78121
|
sort: false,
|
|
78171
78122
|
display: (_a = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(TABLETS_COLUMNS$1.DATABASE_NAME)) !== null && _a !== void 0 ? _a : false,
|
|
78172
78123
|
customHeadRender: function () {
|
|
78173
|
-
return (jsx(YBTooltip,
|
|
78124
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.DATABASE_NAME_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.DATABASE_NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78174
78125
|
},
|
|
78175
78126
|
setCellProps: function () { return ({
|
|
78176
78127
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
@@ -78193,7 +78144,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78193
78144
|
sort: true,
|
|
78194
78145
|
display: true,
|
|
78195
78146
|
customHeadRender: function () {
|
|
78196
|
-
return (jsx(YBTooltip,
|
|
78147
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TABLE_NAME_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.TABLE_NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78197
78148
|
},
|
|
78198
78149
|
setCellHeaderProps: function () { return ({
|
|
78199
78150
|
style: {
|
|
@@ -78216,7 +78167,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78216
78167
|
sort: false,
|
|
78217
78168
|
display: (_b = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(TABLETS_COLUMNS$1.SCHEMA_NAME)) !== null && _b !== void 0 ? _b : false,
|
|
78218
78169
|
customHeadRender: function () {
|
|
78219
|
-
return (jsx(YBTooltip,
|
|
78170
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.SCHEMA_NAME_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.SCHEMA_NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78220
78171
|
},
|
|
78221
78172
|
setCellHeaderProps: function () { return ({
|
|
78222
78173
|
style: {
|
|
@@ -78239,7 +78190,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78239
78190
|
sort: false,
|
|
78240
78191
|
display: true,
|
|
78241
78192
|
customHeadRender: function () {
|
|
78242
|
-
return (jsx(YBTooltip,
|
|
78193
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TABLET_ID_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.TABLET_ID }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78243
78194
|
},
|
|
78244
78195
|
setCellHeaderProps: function () { return ({
|
|
78245
78196
|
style: {
|
|
@@ -78256,16 +78207,16 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78256
78207
|
}
|
|
78257
78208
|
var maxLength = 20;
|
|
78258
78209
|
var displayText = value.length > maxLength ? "".concat(value.substring(0, maxLength), "...") : value;
|
|
78259
|
-
return (jsxs(Box$1,
|
|
78210
|
+
return (jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: "center", children: [jsx(YBTooltip, { title: value, placement: "top", arrow: true, children: jsx(Box$1, { component: "span", style: {
|
|
78260
78211
|
display: 'inline-block',
|
|
78261
78212
|
whiteSpace: 'nowrap',
|
|
78262
78213
|
overflow: 'hidden',
|
|
78263
78214
|
maxWidth: '100%'
|
|
78264
|
-
}
|
|
78215
|
+
}, children: displayText }) }), jsx(YBTooltip, { title: copied ? 'Copied' : 'Copy', open: copied ? true : undefined, children: jsx("img", { src: CopyIcon, alt: "Copy Icon", style: { marginLeft: '4px', cursor: 'pointer' }, onClick: function () {
|
|
78265
78216
|
navigator.clipboard.writeText(value);
|
|
78266
78217
|
setCopied(true);
|
|
78267
78218
|
setTimeout(function () { return setCopied(false); }, 2000);
|
|
78268
|
-
} }) })
|
|
78219
|
+
} }) })] }));
|
|
78269
78220
|
}
|
|
78270
78221
|
}
|
|
78271
78222
|
},
|
|
@@ -78282,7 +78233,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78282
78233
|
},
|
|
78283
78234
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78284
78235
|
}); },
|
|
78285
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78236
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.PARTITION_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: QUERY_LEVEL_TABLETS_METADATA_LABELS.PARTITION }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78286
78237
|
setCellProps: function () { return ({
|
|
78287
78238
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
78288
78239
|
}); },
|
|
@@ -78300,27 +78251,27 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78300
78251
|
TABLETS_COLUMNS$1.EVENTS,
|
|
78301
78252
|
TABLETS_COLUMNS$1.TABLE_NAME,
|
|
78302
78253
|
TABLETS_COLUMNS$1.TABLET_ID
|
|
78303
|
-
], columns: columns, isTabletsMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1,
|
|
78254
|
+
], columns: columns, isTabletsMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1, { className: clsx(helperClasses.mainContainer, helperClasses.mainContainerBorder), children: [jsx(Box$1, { className: helperClasses.headerContainer, children: jsx(Typography$1, { variant: "h5", children: 'Tables and Tablets Accessed' }) }), jsxs(Box$1, { className: helperClasses.metadataContainer, children: [jsxs(Box$1, { className: helperClasses.loadFilterContainer, children: [jsx(YBInput, { dataTestId: "AccessedTablets-SearchInput", placeholder: 'Filter Table', className: helperClasses.ybSearchInput, onChange: function (e) {
|
|
78304
78255
|
var value = e.target.value;
|
|
78305
78256
|
setSearchInputValue(value);
|
|
78306
78257
|
debouncedSearchHandlerRef.current(value);
|
|
78307
78258
|
}, value: searchInputValue, inputProps: {
|
|
78308
78259
|
'data-testid': 'AccessedTablets-SearchInput'
|
|
78309
78260
|
}, InputProps: {
|
|
78310
|
-
startAdornment: (jsx(InputAdornment,
|
|
78311
|
-
endAdornment: !!searchInputValue && (jsx(InputAdornment,
|
|
78261
|
+
startAdornment: (jsx(InputAdornment, { position: "start", children: jsx(SvgSearch, {}) })),
|
|
78262
|
+
endAdornment: !!searchInputValue && (jsx(InputAdornment, { position: "end", children: jsx(IconButton, { size: "small", onClick: function () {
|
|
78312
78263
|
debouncedSearchHandlerRef.current.cancel();
|
|
78313
78264
|
setSearchInput('');
|
|
78314
78265
|
setSearchInputValue('');
|
|
78315
78266
|
setCurrentTablePage(0);
|
|
78316
|
-
}, "data-testid": "AccessedTablets-ClearButton"
|
|
78317
|
-
} }), jsx(YBButton,
|
|
78267
|
+
}, "data-testid": "AccessedTablets-ClearButton", children: jsx(Clear, { fontSize: "small" }) }) }))
|
|
78268
|
+
} }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, { style: { marginBottom: '2px' } }), onClick: openSelectionModal, dataTestId: "AccessedTablets-AddFieldsButton", children: ADD_COLUMNS_BUTTON_TEXT })] }), jsx(Box$1, { children: jsxs(Box$1, { className: appName === AppName.YBM
|
|
78318
78269
|
? helperClasses.overrideMuiTableContainer
|
|
78319
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
78270
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [isTabletsDataFetchError && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_d = (_c = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error)
|
|
78320
78271
|
? (_f = (_e = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error
|
|
78321
78272
|
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_h = (_g = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error)
|
|
78322
78273
|
? (_k = (_j = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.error
|
|
78323
|
-
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR }))] }))
|
|
78274
|
+
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR }))] })), jsx(YBTable, { id: 'AccessedTablets', className: helperClasses.overrideMuiTable, data: tabletsData !== null && tabletsData !== void 0 ? tabletsData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isTabletsDataFetchLoading, options: {
|
|
78324
78275
|
sort: true,
|
|
78325
78276
|
filter: true,
|
|
78326
78277
|
count: totalSize,
|
|
@@ -78351,7 +78302,7 @@ var QueryLevelTabletMetadata = function (_a) {
|
|
|
78351
78302
|
customFooter: customFooter,
|
|
78352
78303
|
manualSorting: true,
|
|
78353
78304
|
state: tableState
|
|
78354
|
-
} }, "AccessedTablets-".concat(sortBy, "-").concat(sortDirection))] })
|
|
78305
|
+
} }, "AccessedTablets-".concat(sortBy, "-").concat(sortDirection))] }) })] })] })] }));
|
|
78355
78306
|
};
|
|
78356
78307
|
|
|
78357
78308
|
var YBStyledTab$3 = styled$1(YBTab)(function (_a) {
|
|
@@ -78502,11 +78453,11 @@ var SqlDrilldown = function (_a) {
|
|
|
78502
78453
|
}
|
|
78503
78454
|
setSqlDrilldownTab(newSqlDrilldownTab);
|
|
78504
78455
|
};
|
|
78505
|
-
return (jsxs(Fragment, { children: [jsxs(Box$1,
|
|
78456
|
+
return (jsxs(Fragment, { children: [jsxs(Box$1, { mt: 3, children: [fetchHistoricalQueryGraphs.isLoading && (jsx(Box$1, { mt: 2, className: classes.loadingBox, children: jsx(SvgLoading, { className: clsx(classes.icon, classes.inProgressIcon) }) })), fetchHistoricalQueryGraphs.isError && (jsxs(Box$1, { mt: 4, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchQueriesGraphsErrorMessage)
|
|
78506
78457
|
? fetchQueriesGraphsErrorMessage
|
|
78507
78458
|
: DEFAULT_ERROR_MESSAGES.QUERIES_GRAPHS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchQueriesGraphsErrorMessage)
|
|
78508
78459
|
? fetchQueriesGraphsErrorMessage
|
|
78509
|
-
: DEFAULT_ERROR_MESSAGES.QUERIES_GRAPHS_FETCH_ERROR }))] }))
|
|
78460
|
+
: DEFAULT_ERROR_MESSAGES.QUERIES_GRAPHS_FETCH_ERROR }))] })), fetchHistoricalQueryGraphs.isSuccess && sqlTab === SqlTabs.QUERY_OVERVIEW && (jsxs(Box$1, { children: [jsx(Box$1, { className: clsx(classes.gridBox, classes.gridBoxSingle), mb: 5, children: queryGraphData === null || queryGraphData === void 0 ? void 0 : queryGraphData.filter(function (data) { var _a; return (_a = data === null || data === void 0 ? void 0 : data.name) === null || _a === void 0 ? void 0 : _a.startsWith('active_session_history'); }).map(function (data, index) {
|
|
78510
78461
|
var _a, _b;
|
|
78511
78462
|
var operations = getOperations(metricMeasure, data, GraphType.SINGLE_SUPPORTING, true, historicalQueryRequestParams, true);
|
|
78512
78463
|
var isAshGraph = (_a = data === null || data === void 0 ? void 0 : data.name) === null || _a === void 0 ? void 0 : _a.startsWith('active_session_history');
|
|
@@ -78527,30 +78478,30 @@ var SqlDrilldown = function (_a) {
|
|
|
78527
78478
|
});
|
|
78528
78479
|
}
|
|
78529
78480
|
}
|
|
78530
|
-
return (jsx(Box$1,
|
|
78481
|
+
return (jsx(Box$1, { id: "HistoricalQueryView-ash-".concat(metricMeasure, "-").concat(index), children: jsx(Box$1, { style: {
|
|
78531
78482
|
border: '1px solid #E9EEF2',
|
|
78532
78483
|
borderRadius: '8px',
|
|
78533
78484
|
backgroundColor: '#FFFFFF'
|
|
78534
|
-
}
|
|
78485
|
+
}, children: jsx(GraphView, { metricData: data, metricKey: key, dateTimeRange: dateTimeRange, containerWidth: null, metricMeasure: metricMeasure, operations: metricMeasure === MetricMeasure.OVERALL
|
|
78535
78486
|
? []
|
|
78536
78487
|
: operations.uniqueOperations, registerChartInstance: function (instance) {
|
|
78537
78488
|
return registerChartInstance(instance, index);
|
|
78538
|
-
}, graphType: GraphType.MULTI_SUPPORTING, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, queryData: universeQueryStatsData, onSelectAshLabel: onSelectAshLabel, isHistoricalQueryView: true, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricMeasure, "-").concat(key)) })
|
|
78539
|
-
}) })
|
|
78489
|
+
}, graphType: GraphType.MULTI_SUPPORTING, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, queryData: universeQueryStatsData, onSelectAshLabel: onSelectAshLabel, isHistoricalQueryView: true, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricMeasure, "-").concat(key)) }) }, "HistoricalQueryView-ash-".concat(metricMeasure, "-").concat(index)));
|
|
78490
|
+
}) }), !anomalyData && (jsx(YBTabs, { pill: true, value: sqlDrilldownTab, onChange: handleSqlDrilldownTabChange, children: jsx(YBStyledTab$3, { value: SqlDrilldownTabs.PERFORMANCE_METRICS, label: SqlDrilldownTabs.PERFORMANCE_METRICS }) })), !anomalyData && sqlDrilldownTab === SqlDrilldownTabs.PERFORMANCE_METRICS && (jsx(Box$1, { className: clsx(classes.gridBox, classes.gridBoxThree), children: queryGraphData === null || queryGraphData === void 0 ? void 0 : queryGraphData.filter(function (data) { var _a; return !((_a = data === null || data === void 0 ? void 0 : data.name) === null || _a === void 0 ? void 0 : _a.startsWith('active_session_history')); }).map(function (data, index) {
|
|
78540
78491
|
var operations = getOperations(metricMeasure, data, GraphType.SINGLE_SUPPORTING, true, historicalQueryRequestParams, true);
|
|
78541
78492
|
var key = data.name;
|
|
78542
|
-
return (jsx(Box$1,
|
|
78493
|
+
return (jsx(Box$1, { id: "HistoricalQueryView-".concat(metricMeasure, "-").concat(index), children: jsx(Box$1, { style: {
|
|
78543
78494
|
border: '1px solid #E9EEF2',
|
|
78544
78495
|
borderRadius: '8px',
|
|
78545
78496
|
backgroundColor: '#FFFFFF',
|
|
78546
78497
|
marginTop: '16px',
|
|
78547
78498
|
marginBottom: '16px'
|
|
78548
|
-
}
|
|
78499
|
+
}, children: jsx(GraphView, { metricData: data, metricKey: key, dateTimeRange: dateTimeRange, containerWidth: null, metricMeasure: metricMeasure, operations: metricMeasure === MetricMeasure.OVERALL
|
|
78549
78500
|
? []
|
|
78550
78501
|
: operations.uniqueOperations, registerChartInstance: function (instance) {
|
|
78551
78502
|
return registerChartInstance(instance, index);
|
|
78552
|
-
}, graphType: GraphType.MULTI_SUPPORTING, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, queryData: universeQueryStatsData, onSelectAshLabel: onSelectAshLabel, isHistoricalQueryView: true, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricMeasure, "-").concat(key)) })
|
|
78553
|
-
}) }))
|
|
78503
|
+
}, graphType: GraphType.MULTI_SUPPORTING, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, queryData: universeQueryStatsData, onSelectAshLabel: onSelectAshLabel, isHistoricalQueryView: true, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricMeasure, "-").concat(key)) }) }, "HistoricalQueryView-".concat(metricMeasure, "-").concat(index)));
|
|
78504
|
+
}) }))] }))] }), jsx(Box$1, { children: jsx(QueryLevelTabletMetadata, { appName: appName, getClusterDetails: getClusterDetails, universeUuid: universeUuid, apiUrl: apiUrl, queryId: (_f = (_e = getSqlTabletsParams()) === null || _e === void 0 ? void 0 : _e.queryId) !== null && _f !== void 0 ? _f : null, dbId: (_h = (_g = getSqlTabletsParams()) === null || _g === void 0 ? void 0 : _g.dbId) !== null && _h !== void 0 ? _h : null, startTime: (_k = (_j = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _j === void 0 ? void 0 : _j.toISOString()) !== null && _k !== void 0 ? _k : null, endTime: (_m = (_l = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _l === void 0 ? void 0 : _l.toISOString()) !== null && _m !== void 0 ? _m : null }) }), anomalyData && (jsxs(Box$1, { mt: 2, children: [jsx(Typography$1, { variant: "h5", children: 'Possible Causes' }), jsx(Box$1, { mt: 1, children: jsx(AnomalyRCAGraphs, { appName: appName, timezone: timezone, startTime: (_p = (_o = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _o === void 0 ? void 0 : _o.toISOString()) !== null && _p !== void 0 ? _p : null, endTime: (_r = (_q = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _q === void 0 ? void 0 : _q.toISOString()) !== null && _r !== void 0 ? _r : null, anomalyData: anomalyData, getClusterDetails: getClusterDetails, apiUrl: apiUrl, dateTimeRange: dateTimeRange, metricMeasure: metricMeasure, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, onEChartsDateSelect: onEChartsDateSelect, urlParams: urlParams }) })] }))] }));
|
|
78554
78505
|
};
|
|
78555
78506
|
|
|
78556
78507
|
var DB_SELECTOR_OPTIONS = [
|
|
@@ -78591,7 +78542,7 @@ var DbLoadHeader = function (_a) {
|
|
|
78591
78542
|
dataTestId: "DbLoadHeader-DbSelector-".concat(dbOption.value)
|
|
78592
78543
|
}
|
|
78593
78544
|
}); });
|
|
78594
|
-
return (jsxs(Box$1,
|
|
78545
|
+
return (jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: 'center', children: [jsx(OutlierSelector, { outlierType: outlierType, metricOutlierSelectors: metricOutlierSelectors, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, selectedNumNodes: numNodes, showNumNodesInput: false, showNumNodesSelector: true }), jsx(Typography$1, { variant: "body2", style: { marginRight: '16px' }, children: isDbClusterLoadView ? 'databases' : 'nodes' }), jsxs(Box$1, { display: 'flex', flexDirection: "row", className: classes.dbSelectorBox, children: [jsx("img", { src: DividerIcon, alt: "Divider" }), jsx(YBButtonGroup, { divider: true, buttons: buttons, dataTestId: "DbLoadHeader-DbSelector", value: (_b = DB_SELECTOR_OPTIONS[active]) === null || _b === void 0 ? void 0 : _b.value })] })] }));
|
|
78595
78546
|
};
|
|
78596
78547
|
|
|
78597
78548
|
var _path$1;
|
|
@@ -78756,7 +78707,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78756
78707
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78757
78708
|
}); },
|
|
78758
78709
|
customHeadRender: function () {
|
|
78759
|
-
return (jsx(YBTooltip,
|
|
78710
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_EPS_RATIO_QUERY_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.TOTAL_EPS_RATIO }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
78760
78711
|
},
|
|
78761
78712
|
setCellProps: function () { return ({
|
|
78762
78713
|
className: helperClasses.queryLoadMetadataTableCell
|
|
@@ -78780,7 +78731,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78780
78731
|
},
|
|
78781
78732
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78782
78733
|
}); },
|
|
78783
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78734
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ACTIVE_SESSIONS_PER_SECOND_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.EPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78784
78735
|
setCellProps: function () { return ({
|
|
78785
78736
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78786
78737
|
}); },
|
|
@@ -78815,13 +78766,13 @@ var QueriesMetadata = function (_a) {
|
|
|
78815
78766
|
overflow: 'visible'
|
|
78816
78767
|
}
|
|
78817
78768
|
}); },
|
|
78818
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78769
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.EVENTS_QUERY_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.EVENTS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78819
78770
|
customBodyRender: function (value) {
|
|
78820
|
-
return (jsx(Box$1,
|
|
78771
|
+
return (jsx(Box$1, { onClick: function (event) {
|
|
78821
78772
|
event.stopPropagation();
|
|
78822
78773
|
event.preventDefault();
|
|
78823
78774
|
return false;
|
|
78824
|
-
}
|
|
78775
|
+
}, children: jsx(QueryEventsChart, { data: value, maxEPS: maxEPS, groupByOperation: groupByOperation }) }));
|
|
78825
78776
|
}
|
|
78826
78777
|
}
|
|
78827
78778
|
},
|
|
@@ -78847,10 +78798,10 @@ var QueriesMetadata = function (_a) {
|
|
|
78847
78798
|
return false;
|
|
78848
78799
|
}
|
|
78849
78800
|
}); },
|
|
78850
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78801
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.QUERY_TEXT_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.QUERY }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78851
78802
|
customBodyRender: function (value, tableMeta) {
|
|
78852
78803
|
var rowIndex = tableMeta.rowIndex;
|
|
78853
|
-
return (jsx(YBTooltip,
|
|
78804
|
+
return (jsx(YBTooltip, { title: value, placement: "top", arrow: true, children: jsx(Box$1, { onClick: handleCodeBlockClick, className: codeBlockClasses.queryCellBox, children: jsx(YBCodeBlock, { lang: "sql", text: value, maxWidth: 350, showBorder: true, showCopyButton: true, singleLineEllipsis: true, enabledExpandCollapse: false, preClassName: codeBlockClasses.preClassNameInTable, codeClassName: codeBlockClasses.codeClassNameInTable, containerClassName: codeBlockClasses.queryContainerCodeInTable }, "TableHelperQueries-".concat(name, "-").concat(rowIndex)) }) }));
|
|
78854
78805
|
}
|
|
78855
78806
|
}
|
|
78856
78807
|
},
|
|
@@ -78867,7 +78818,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78867
78818
|
},
|
|
78868
78819
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78869
78820
|
}); },
|
|
78870
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78821
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.DATABASE_NAME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.NAMESPACE_NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78871
78822
|
setCellProps: function () { return ({
|
|
78872
78823
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78873
78824
|
}); },
|
|
@@ -78886,7 +78837,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78886
78837
|
},
|
|
78887
78838
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78888
78839
|
}); },
|
|
78889
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78840
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.FIRST_ACTIVE_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.FIRST_ACTIVE_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78890
78841
|
setCellProps: function () { return ({
|
|
78891
78842
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78892
78843
|
}); },
|
|
@@ -78905,7 +78856,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78905
78856
|
},
|
|
78906
78857
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78907
78858
|
}); },
|
|
78908
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78859
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LAST_ACTIVE_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LAST_ACTIVE_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78909
78860
|
setCellProps: function () { return ({
|
|
78910
78861
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78911
78862
|
}); },
|
|
@@ -78924,7 +78875,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78924
78875
|
},
|
|
78925
78876
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78926
78877
|
}); },
|
|
78927
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78878
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.AVG_LATENCY_TOOLTIP, arrow: true, placement: "top", children: jsx(Box$1, { className: helperClasses.headerBox, children: jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.AVG_LATENCY }) }) })); },
|
|
78928
78879
|
setCellProps: function () { return ({
|
|
78929
78880
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78930
78881
|
}); },
|
|
@@ -78945,7 +78896,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78945
78896
|
},
|
|
78946
78897
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78947
78898
|
}); },
|
|
78948
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78899
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LATENCY_P90_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LATENCY_P90 }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78949
78900
|
setCellProps: function () { return ({
|
|
78950
78901
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78951
78902
|
}); },
|
|
@@ -78966,7 +78917,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78966
78917
|
},
|
|
78967
78918
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
78968
78919
|
}); },
|
|
78969
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78920
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LATENCY_P99_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LATENCY_P99 }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78970
78921
|
setCellProps: function () { return ({
|
|
78971
78922
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78972
78923
|
}); },
|
|
@@ -78995,7 +78946,7 @@ var QueriesMetadata = function (_a) {
|
|
|
78995
78946
|
setCellProps: function () { return ({
|
|
78996
78947
|
className: helperClasses.queryLoadMetadataTableCell
|
|
78997
78948
|
}); },
|
|
78998
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78949
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.QUERY_TYPE_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.QUERY_TYPE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
78999
78950
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
79000
78951
|
}
|
|
79001
78952
|
},
|
|
@@ -79012,7 +78963,7 @@ var QueriesMetadata = function (_a) {
|
|
|
79012
78963
|
},
|
|
79013
78964
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79014
78965
|
}); },
|
|
79015
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78966
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.TOTAL_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79016
78967
|
setCellProps: function () { return ({
|
|
79017
78968
|
className: helperClasses.queryLoadMetadataTableCell
|
|
79018
78969
|
}); },
|
|
@@ -79031,7 +78982,7 @@ var QueriesMetadata = function (_a) {
|
|
|
79031
78982
|
},
|
|
79032
78983
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79033
78984
|
}); },
|
|
79034
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
78985
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ROWS_AVG_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.ROWS_AVG }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79035
78986
|
setCellProps: function () { return ({
|
|
79036
78987
|
className: helperClasses.queryLoadMetadataTableCell
|
|
79037
78988
|
}); },
|
|
@@ -79052,7 +79003,7 @@ var QueriesMetadata = function (_a) {
|
|
|
79052
79003
|
},
|
|
79053
79004
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79054
79005
|
}); },
|
|
79055
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
79006
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.RPS_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.RPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79056
79007
|
setCellProps: function () { return ({
|
|
79057
79008
|
className: helperClasses.queryLoadMetadataTableCell
|
|
79058
79009
|
}); },
|
|
@@ -79129,31 +79080,31 @@ var QueriesMetadata = function (_a) {
|
|
|
79129
79080
|
YSQL_COLUMNS$1.QUERY_ID,
|
|
79130
79081
|
YSQL_COLUMNS$1.UNIVERSE_ID,
|
|
79131
79082
|
YSQL_COLUMNS$1.QUERY
|
|
79132
|
-
], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1,
|
|
79133
|
-
return (jsx(MenuItem$1,
|
|
79083
|
+
], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1, { mt: 1, mb: 2, className: isTabletLoadMetadata ? '' : helperClasses.dataBox, children: [jsxs(Box$1, { display: 'flex', flexDirection: 'column', children: [jsx(Box$1, { mb: 2 }), jsxs(Box$1, { className: helperClasses.filterContainer, children: [jsxs(Box$1, { className: helperClasses.filterLeftContainer, children: [isTabletLoadMetadata && (jsxs(Fragment, { children: [jsx(SvgGroup, {}), jsx(YBLabel, { style: { marginLeft: '8px', marginRight: '8px' }, children: 'Group By' }), jsx(YBSelect, { dataTestId: "TabletLevelQueryMetadata-GroupBySelect", value: groupByOperation, className: clsx(classes.selectBox, classes.overrideMuiInput), children: GROUP_BY_OPERATIONS === null || GROUP_BY_OPERATIONS === void 0 ? void 0 : GROUP_BY_OPERATIONS.map(function (groupByOperation, groupByIdx) {
|
|
79084
|
+
return (jsx(MenuItem$1, { value: groupByOperation, onClick: function (event) {
|
|
79134
79085
|
onSetGroupByOperation === null || onSetGroupByOperation === void 0 ? void 0 : onSetGroupByOperation(groupByOperation);
|
|
79135
79086
|
event.stopPropagation();
|
|
79136
|
-
}
|
|
79137
|
-
}) })
|
|
79087
|
+
}, children: GROUP_BY_OPERATIONS_LABELS[groupByOperation] }, "".concat(groupByOperation, "-").concat(groupByIdx)));
|
|
79088
|
+
}) })] })), jsx(YBInput, { dataTestId: "DbLoadQueriesMetadata-SearchInput", placeholder: 'Filter Queries', className: helperClasses.ybSearchInput, onChange: function (e) {
|
|
79138
79089
|
var value = e.target.value;
|
|
79139
79090
|
setSearchInputValue(value);
|
|
79140
79091
|
debouncedSearchHandlerRef.current(value);
|
|
79141
79092
|
}, value: searchInputValue, inputProps: {
|
|
79142
79093
|
'data-testid': 'DbLoadQueriesMetadata-SearchInput'
|
|
79143
79094
|
}, InputProps: {
|
|
79144
|
-
startAdornment: (jsx(InputAdornment,
|
|
79145
|
-
endAdornment: !!searchInputValue && (jsx(InputAdornment,
|
|
79095
|
+
startAdornment: (jsx(InputAdornment, { position: "start", children: jsx(SvgSearch, {}) })),
|
|
79096
|
+
endAdornment: !!searchInputValue && (jsx(InputAdornment, { position: "end", children: jsx(IconButton, { size: "small", onClick: function () {
|
|
79146
79097
|
debouncedSearchHandlerRef.current.cancel();
|
|
79147
79098
|
setSearchInput('');
|
|
79148
79099
|
setSearchInputValue('');
|
|
79149
|
-
}, "data-testid": "DbLoadQueriesMetadata-ClearButton"
|
|
79150
|
-
} })] })
|
|
79100
|
+
}, "data-testid": "DbLoadQueriesMetadata-ClearButton", children: jsx(Clear, { fontSize: "small" }) }) }))
|
|
79101
|
+
} })] }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, { style: { marginBottom: '2px' } }), onClick: openSelectionModal, dataTestId: "DbLoadQueriesMetadata-".concat(name, "-AddFieldsButton"), children: ADD_COLUMNS_BUTTON_TEXT })] })] }), jsxs(Box$1, { className: appName === AppName.YBM
|
|
79151
79102
|
? helperClasses.overrideMuiTableContainer
|
|
79152
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
79103
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [isQueryDataFetchError && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_c = (_b = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.error)
|
|
79153
79104
|
? (_e = (_d = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error
|
|
79154
79105
|
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_g = (_f = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.error)
|
|
79155
79106
|
? (_j = (_h = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.error
|
|
79156
|
-
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] }))
|
|
79107
|
+
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] })), jsx(YBTable, { id: "DbLoadQueriesMetadata-".concat(name), className: helperClasses.overrideMuiTable, data: historicalQueryData !== null && historicalQueryData !== void 0 ? historicalQueryData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isQueryCallLoading, options: {
|
|
79157
79108
|
sort: false,
|
|
79158
79109
|
filter: true,
|
|
79159
79110
|
count: (_k = historicalQueryData === null || historicalQueryData === void 0 ? void 0 : historicalQueryData.length) !== null && _k !== void 0 ? _k : PAGE_SIZE_LIMIT,
|
|
@@ -79186,7 +79137,7 @@ var QueriesMetadata = function (_a) {
|
|
|
79186
79137
|
onSortingChange: handleColumnSortChange,
|
|
79187
79138
|
manualSorting: true,
|
|
79188
79139
|
state: tableState
|
|
79189
|
-
} }, "DbLoadQueriesMetadata-".concat(name))] })
|
|
79140
|
+
} }, "DbLoadQueriesMetadata-".concat(name))] })] })] }));
|
|
79190
79141
|
};
|
|
79191
79142
|
|
|
79192
79143
|
var NODE_COLUMNS = {
|
|
@@ -79417,7 +79368,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79417
79368
|
sort: true,
|
|
79418
79369
|
display: true,
|
|
79419
79370
|
customHeadRender: function () {
|
|
79420
|
-
return (jsx(YBTooltip,
|
|
79371
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.NODE_NAME_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
79421
79372
|
},
|
|
79422
79373
|
setCellHeaderProps: function () { return ({
|
|
79423
79374
|
style: {
|
|
@@ -79433,12 +79384,12 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79433
79384
|
return '-';
|
|
79434
79385
|
var maxLength = 18;
|
|
79435
79386
|
var displayText = value.length > maxLength ? "...".concat(value.slice(-maxLength)) : value;
|
|
79436
|
-
return (jsx(YBTooltip,
|
|
79387
|
+
return (jsx(YBTooltip, { title: value, placement: "top", arrow: true, children: jsx(Box$1, { component: "span", style: {
|
|
79437
79388
|
display: 'inline-block',
|
|
79438
79389
|
whiteSpace: 'nowrap',
|
|
79439
79390
|
overflow: 'hidden',
|
|
79440
79391
|
maxWidth: '100%'
|
|
79441
|
-
}
|
|
79392
|
+
}, children: displayText }) }));
|
|
79442
79393
|
}
|
|
79443
79394
|
}
|
|
79444
79395
|
},
|
|
@@ -79449,7 +79400,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79449
79400
|
sort: false,
|
|
79450
79401
|
display: (_a = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(NODE_COLUMNS.NODE_REGION_ZONE)) !== null && _a !== void 0 ? _a : true,
|
|
79451
79402
|
customHeadRender: function () {
|
|
79452
|
-
return (jsx(YBTooltip,
|
|
79403
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.NODE_REGION_ZONE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.NODE_REGION_ZONE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
79453
79404
|
},
|
|
79454
79405
|
setCellHeaderProps: function () { return ({
|
|
79455
79406
|
style: {
|
|
@@ -79481,7 +79432,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79481
79432
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
79482
79433
|
}); },
|
|
79483
79434
|
customHeadRender: function () {
|
|
79484
|
-
return (jsx(YBTooltip,
|
|
79435
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.CONNECTIONS_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.CONNECTIONS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
79485
79436
|
},
|
|
79486
79437
|
customBodyRender: function (value) {
|
|
79487
79438
|
return Number(value)
|
|
@@ -79503,7 +79454,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79503
79454
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79504
79455
|
}); },
|
|
79505
79456
|
customHeadRender: function () {
|
|
79506
|
-
return (jsx(YBTooltip,
|
|
79457
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_EPS_RATIO_NODE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.TOTAL_EPS_RATIO }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
79507
79458
|
},
|
|
79508
79459
|
setCellProps: function () { return ({
|
|
79509
79460
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
@@ -79527,7 +79478,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79527
79478
|
},
|
|
79528
79479
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79529
79480
|
}); },
|
|
79530
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
79481
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.EPS_NODE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.EPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79531
79482
|
setCellProps: function () { return ({
|
|
79532
79483
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
79533
79484
|
}); },
|
|
@@ -79561,7 +79512,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79561
79512
|
overflow: 'visible'
|
|
79562
79513
|
}
|
|
79563
79514
|
}); },
|
|
79564
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
79515
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.EVENTS_NODE_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.EVENTS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79565
79516
|
customBodyRender: function (value) { return (jsx(QueryEventsChart, { data: value !== null && value !== void 0 ? value : [], maxEPS: maxEPS, groupByOperation: WaitEventClassification.WAIT_EVENT_TYPE })); }
|
|
79566
79517
|
}
|
|
79567
79518
|
},
|
|
@@ -79577,7 +79528,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79577
79528
|
},
|
|
79578
79529
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
79579
79530
|
}); },
|
|
79580
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
79531
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.RPS_NODE_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: NODE_LOAD_METADATA_LABELS.RPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
79581
79532
|
setCellProps: function () { return ({
|
|
79582
79533
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
79583
79534
|
}); },
|
|
@@ -79596,31 +79547,31 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79596
79547
|
NODE_COLUMNS.RPS,
|
|
79597
79548
|
NODE_COLUMNS.CONNECTIONS,
|
|
79598
79549
|
NODE_COLUMNS.NAME
|
|
79599
|
-
], columns: columns, isNodeLoadMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1,
|
|
79550
|
+
], columns: columns, isNodeLoadMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1, { mt: 2, className: clsx(helperClasses.mainContainer, helperClasses.mainContainerBorder), children: [jsx(Box$1, { className: helperClasses.headerContainer, children: jsx(Typography$1, { variant: "h5", children: "".concat(dbWaitEventType === ALL.toUpperCase()
|
|
79600
79551
|
? ''
|
|
79601
79552
|
: dbWaitEventType === CPU_TEXT
|
|
79602
79553
|
? CPU_TEXT
|
|
79603
|
-
: IO_TEXT, " Load By Node") })
|
|
79554
|
+
: IO_TEXT, " Load By Node") }) }), jsxs(Box$1, { className: helperClasses.metadataContainer, children: [jsxs(Box$1, { className: helperClasses.loadFilterContainer, children: [jsx(YBInput, { dataTestId: "NodeLoad-SearchInput", placeholder: 'Filter Table', className: helperClasses.ybSearchInput, onChange: function (e) {
|
|
79604
79555
|
var value = e.target.value;
|
|
79605
79556
|
setSearchInputValue(value);
|
|
79606
79557
|
debouncedSearchHandlerRef.current(value);
|
|
79607
79558
|
}, value: searchInputValue, inputProps: {
|
|
79608
79559
|
'data-testid': 'NodeLoad-SearchInput'
|
|
79609
79560
|
}, InputProps: {
|
|
79610
|
-
startAdornment: (jsx(InputAdornment,
|
|
79611
|
-
endAdornment: !!searchInputValue && (jsx(InputAdornment,
|
|
79561
|
+
startAdornment: (jsx(InputAdornment, { position: "start", children: jsx(SvgSearch, {}) })),
|
|
79562
|
+
endAdornment: !!searchInputValue && (jsx(InputAdornment, { position: "end", children: jsx(IconButton, { size: "small", onClick: function () {
|
|
79612
79563
|
debouncedSearchHandlerRef.current.cancel();
|
|
79613
79564
|
setSearchInput('');
|
|
79614
79565
|
setSearchInputValue('');
|
|
79615
79566
|
setCurrentTablePage(0);
|
|
79616
|
-
}, "data-testid": "NodeLoad-ClearButton"
|
|
79617
|
-
} }), jsx(YBButton,
|
|
79567
|
+
}, "data-testid": "NodeLoad-ClearButton", children: jsx(Clear, { fontSize: "small" }) }) }))
|
|
79568
|
+
} }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, { style: { marginBottom: '2px' } }), onClick: openSelectionModal, dataTestId: "NodeLoad-AddFieldsButton", children: ADD_COLUMNS_BUTTON_TEXT })] }), jsx(Box$1, { children: jsxs(Box$1, { className: appName === AppName.YBM
|
|
79618
79569
|
? helperClasses.overrideMuiTableContainer
|
|
79619
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
79570
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [isNodeLoadDataFetchError && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_d = (_c = nodeLoadDataError === null || nodeLoadDataError === void 0 ? void 0 : nodeLoadDataError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error)
|
|
79620
79571
|
? (_f = (_e = nodeLoadDataError === null || nodeLoadDataError === void 0 ? void 0 : nodeLoadDataError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error
|
|
79621
79572
|
: DEFAULT_ERROR_MESSAGES.NODE_LOAD_DATA_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_h = (_g = nodeLoadDataError === null || nodeLoadDataError === void 0 ? void 0 : nodeLoadDataError.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error)
|
|
79622
79573
|
? (_k = (_j = nodeLoadDataError === null || nodeLoadDataError === void 0 ? void 0 : nodeLoadDataError.response) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.error
|
|
79623
|
-
: DEFAULT_ERROR_MESSAGES.NODE_LOAD_DATA_FETCH_ERROR }))] }))
|
|
79574
|
+
: DEFAULT_ERROR_MESSAGES.NODE_LOAD_DATA_FETCH_ERROR }))] })), isNodeLoadDataFetchSuccess && (jsx(YBTable, { id: 'NodeLoad', className: helperClasses.overrideMuiTable, data: nodeLoadData !== null && nodeLoadData !== void 0 ? nodeLoadData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isNodeLoadDataFetchLoading, options: {
|
|
79624
79575
|
enableExpanding: true,
|
|
79625
79576
|
renderDetailPanel: function (_a) {
|
|
79626
79577
|
var row = _a.row;
|
|
@@ -79662,7 +79613,7 @@ var NodeLoadMetadata = function (_a) {
|
|
|
79662
79613
|
customFooter: customFooter,
|
|
79663
79614
|
manualSorting: true,
|
|
79664
79615
|
state: tableState
|
|
79665
|
-
} }, "NodeLoad-".concat(dbWaitEventType, "-").concat(sortBy, "-").concat(sortDirection)))] })
|
|
79616
|
+
} }, "NodeLoad-".concat(dbWaitEventType, "-").concat(sortBy, "-").concat(sortDirection)))] }) })] })] })] }));
|
|
79666
79617
|
};
|
|
79667
79618
|
|
|
79668
79619
|
var img$a = "data:image/svg+xml,%3csvg width='42' height='22' viewBox='0 0 42 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M41 1L25.2627 16.7373C24.4707 17.5293 24.0747 17.9253 23.618 18.0737C23.2163 18.2042 22.7837 18.2042 22.382 18.0737C21.9253 17.9253 21.5293 17.5293 20.7373 16.7373L15.2627 11.2627C14.4707 10.4707 14.0747 10.0747 13.618 9.92631C13.2163 9.7958 12.7837 9.7958 12.382 9.92631C11.9253 10.0747 11.5293 10.4707 10.7373 11.2627L1 21M41 1H27M41 1V15' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
@@ -79718,7 +79669,7 @@ var DOC_LINK = [
|
|
|
79718
79669
|
var ASHBanner = function (_a) {
|
|
79719
79670
|
var isAshSupported = _a.isAshSupported;
|
|
79720
79671
|
var classes = useStyles$e();
|
|
79721
|
-
return (jsxs(Box$1,
|
|
79672
|
+
return (jsxs(Box$1, { className: classes.messageBox, children: [jsx("img", { src: !isAshSupported ? ArrowLargeIcon : ArrowSmallIcon, alt: "Arrow" }), jsx("span", { className: classes.ashText, children: !isAshSupported ? UPGRADE_DB_FOR_ASH : ENABLE_ASH_MSG }), jsxs(Box$1, { display: "flex", flexDirection: 'row', children: [jsx("img", { src: DocsIcon, alt: "Docs" }), jsx("a", { className: classes.ashLink, href: !isAshSupported ? DOC_LINK[0].link : DOC_LINK[1].link, target: "_blank", rel: "noreferrer", children: !isAshSupported ? DOC_LINK[0].text : DOC_LINK[1].text })] })] }));
|
|
79722
79673
|
};
|
|
79723
79674
|
|
|
79724
79675
|
var MAX_NAME_LENGTH = 30;
|
|
@@ -79847,15 +79798,15 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
79847
79798
|
name: displayName,
|
|
79848
79799
|
type: 'line',
|
|
79849
79800
|
data: dataItem.x.map(function (x, j) { return [x, dataItem.y[j]]; }),
|
|
79850
|
-
showLegend: false,
|
|
79851
|
-
tooltip: { show: false },
|
|
79801
|
+
showLegend: false, // Hide the outline series from the legend
|
|
79802
|
+
tooltip: { show: false }, // This hides it from the tooltip
|
|
79852
79803
|
lineStyle: {
|
|
79853
79804
|
color: 'white',
|
|
79854
79805
|
width: 4,
|
|
79855
79806
|
type: 'solid'
|
|
79856
79807
|
},
|
|
79857
|
-
silent: true,
|
|
79858
|
-
symbol: 'none',
|
|
79808
|
+
silent: true, // Don't trigger hover events on this series
|
|
79809
|
+
symbol: 'none', // Remove the symbol/circle from the line
|
|
79859
79810
|
z: 1 // Set a low z-index for the background outline
|
|
79860
79811
|
});
|
|
79861
79812
|
// Add the main series on top
|
|
@@ -79875,7 +79826,7 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
79875
79826
|
// Basically there is circle by default that echarts adds to line chart, but we add transparent circle
|
|
79876
79827
|
// If we set symbol to 'none', the hover effect doesn't work when user tries to get value of data point.
|
|
79877
79828
|
symbol: 'circle',
|
|
79878
|
-
symbolSize: 6,
|
|
79829
|
+
symbolSize: 6, // or your preferred size for easier hover
|
|
79879
79830
|
itemStyle: {
|
|
79880
79831
|
color: 'transparent' // hide the circle visually
|
|
79881
79832
|
},
|
|
@@ -79906,7 +79857,7 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
79906
79857
|
: null
|
|
79907
79858
|
: chartType === ChartType.BAR
|
|
79908
79859
|
? 'total'
|
|
79909
|
-
: null,
|
|
79860
|
+
: null, // Set stack for bar charts
|
|
79910
79861
|
data: dataItem.x.map(function (x, j) { return [x, dataItem.y[j]]; }),
|
|
79911
79862
|
showLegend: i < MAX_LEGENDS_SIZE,
|
|
79912
79863
|
lineStyle: {
|
|
@@ -79919,9 +79870,9 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
79919
79870
|
? 'transparent'
|
|
79920
79871
|
: NAME_COLOR_MAPPING[name] || COLORS[i % COLORS.length]
|
|
79921
79872
|
},
|
|
79922
|
-
symbolSize: 6,
|
|
79923
|
-
symbol: isDbClusterLoadView || isNodeClusterLoadView ? 'none' : 'circle',
|
|
79924
|
-
z: 1,
|
|
79873
|
+
symbolSize: 6, // or your preferred size for easier hover
|
|
79874
|
+
symbol: isDbClusterLoadView || isNodeClusterLoadView ? 'none' : 'circle', // Remove the symbol/circle from the CPU Cores line
|
|
79875
|
+
z: 1, // Default z-index for other series
|
|
79925
79876
|
emphasis: {
|
|
79926
79877
|
lineStyle: {
|
|
79927
79878
|
color: name === CPU_CORES
|
|
@@ -80064,9 +80015,9 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80064
80015
|
},
|
|
80065
80016
|
legend: __assign(__assign({ type: 'scroll', orient: isDbClusterLoadView || isNodeClusterLoadView ? 'horizontal' : 'vertical', bottom: isDbClusterLoadView || isNodeClusterLoadView ? 4 : '10%' }, (!isDbClusterLoadView &&
|
|
80066
80017
|
!isNodeClusterLoadView && {
|
|
80067
|
-
left: '1%',
|
|
80018
|
+
left: '1%', // Set legend to the left side
|
|
80068
80019
|
top: '18%',
|
|
80069
|
-
width: '250px',
|
|
80020
|
+
width: '250px', // Set a fixed width for the legend
|
|
80070
80021
|
height: '220px'
|
|
80071
80022
|
})), {
|
|
80072
80023
|
// Controls the size (diameter) of the symbol (e.g., circle, square) used for each data point in the chart series
|
|
@@ -80102,7 +80053,7 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80102
80053
|
width: 24,
|
|
80103
80054
|
height: 0,
|
|
80104
80055
|
borderWidth: 1,
|
|
80105
|
-
borderColor: 'black',
|
|
80056
|
+
borderColor: 'black', // or your desired color for Queries
|
|
80106
80057
|
borderType: 'solid',
|
|
80107
80058
|
padding: [2, 4, 0, 0],
|
|
80108
80059
|
lineHeight: 14
|
|
@@ -80126,8 +80077,8 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80126
80077
|
} }),
|
|
80127
80078
|
grid: {
|
|
80128
80079
|
// left will ensure the chart starts from 270px (250px for legend + 20px for gap)
|
|
80129
|
-
left: isDbClusterLoadView || isNodeClusterLoadView ? '3%' : '270px',
|
|
80130
|
-
right: isDbClusterLoadView || isNodeClusterLoadView ? '4%' : '2%',
|
|
80080
|
+
left: isDbClusterLoadView || isNodeClusterLoadView ? '3%' : '270px', // Adjust grid to make space for the 250px-wide legend + margin )
|
|
80081
|
+
right: isDbClusterLoadView || isNodeClusterLoadView ? '4%' : '2%', // Ensure the chart stretches
|
|
80131
80082
|
top: '22%',
|
|
80132
80083
|
bottom: isDbClusterLoadView || isNodeClusterLoadView ? '20%' : '10%',
|
|
80133
80084
|
containLabel: true
|
|
@@ -80135,9 +80086,9 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80135
80086
|
xAxis: {
|
|
80136
80087
|
type: 'time',
|
|
80137
80088
|
axisLabel: {
|
|
80138
|
-
color: '#6D7C88',
|
|
80089
|
+
color: '#6D7C88', // Use a dark color for better contrast
|
|
80139
80090
|
textStyle: {
|
|
80140
|
-
fontFamily: METRIC_FONT,
|
|
80091
|
+
fontFamily: METRIC_FONT, // or your preferred font
|
|
80141
80092
|
fontSize: 11.5 // set desired font size
|
|
80142
80093
|
},
|
|
80143
80094
|
formatter: function (value) {
|
|
@@ -80176,9 +80127,9 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80176
80127
|
}
|
|
80177
80128
|
},
|
|
80178
80129
|
axisLabel: {
|
|
80179
|
-
color: '#6D7C88',
|
|
80130
|
+
color: '#6D7C88', // Use a dark color for better contrast
|
|
80180
80131
|
textStyle: {
|
|
80181
|
-
fontFamily: METRIC_FONT,
|
|
80132
|
+
fontFamily: METRIC_FONT, // or your preferred font
|
|
80182
80133
|
fontSize: 11.5 // set desired font size
|
|
80183
80134
|
},
|
|
80184
80135
|
precision: 0 // Enforce whole numbers for y-axis labels
|
|
@@ -80196,7 +80147,7 @@ var generateEChartsOptions = function (overallMetrics, dbWaitEventType, isDbClus
|
|
|
80196
80147
|
// }
|
|
80197
80148
|
},
|
|
80198
80149
|
brush: {
|
|
80199
|
-
toolbox: ['rect', 'polygon'],
|
|
80150
|
+
toolbox: ['rect', 'polygon'], // enable rectangular selection brush (box select)
|
|
80200
80151
|
xAxisIndex: 0,
|
|
80201
80152
|
yAxisIndex: 0
|
|
80202
80153
|
}
|
|
@@ -80556,18 +80507,18 @@ var PerfAdvisorClusterLoad = function (_a) {
|
|
|
80556
80507
|
window.removeEventListener('resize', handleResize);
|
|
80557
80508
|
};
|
|
80558
80509
|
}, []);
|
|
80559
|
-
return (jsxs(Fragment, { children: [!isDbClusterLoadView && !isNodeClusterLoadView && (jsxs(Box$1,
|
|
80560
|
-
return (jsx(MenuItem$1,
|
|
80510
|
+
return (jsxs(Fragment, { children: [!isDbClusterLoadView && !isNodeClusterLoadView && (jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: "center", className: classes.groupByContainerYBM, children: [jsx("img", { src: TreeIcon, alt: "Tree Icon" }), jsx(Typography$1, { variant: "body2", className: classes.groupByText, children: 'Group by' }), jsx(YBSelect, { dataTestId: "PerfAdvisorClusterLoad-GroupBySelect", value: groupByOperation, className: clsx(classes.groupByOperationDropdown, classes.overrideDefaultMuiSelect, classes.overrideDefaultMuiFormControl), children: GROUP_BY_OPERATIONS === null || GROUP_BY_OPERATIONS === void 0 ? void 0 : GROUP_BY_OPERATIONS.map(function (groupByOperation, groupByIdx) {
|
|
80511
|
+
return (jsx(MenuItem$1, { value: groupByOperation, onClick: function (event) {
|
|
80561
80512
|
onSetGroupByOperation(groupByOperation);
|
|
80562
80513
|
event.stopPropagation();
|
|
80563
|
-
}
|
|
80564
|
-
}) })
|
|
80514
|
+
}, children: GROUP_BY_OPERATIONS_LABELS[groupByOperation] }, "".concat(groupByOperation, "-").concat(groupByIdx)));
|
|
80515
|
+
}) })] })), jsx(Box$1, { mt: appName === AppName.WEB ? 2 : 0, className: clsx(appName === AppName.WEB ? undefined : classes.clusterLoadBoxYBM), children: jsxs(Box$1, { children: [fetchClusterLoadGraph.isLoading && (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) })), fetchClusterLoadGraph.isError && (jsxs(Box$1, { mt: 3, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchClusterLoadGraphErrorMessage)
|
|
80565
80516
|
? fetchClusterLoadGraphErrorMessage
|
|
80566
80517
|
: DEFAULT_ERROR_MESSAGES.CLUSTER_LOAD_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchClusterLoadGraphErrorMessage)
|
|
80567
80518
|
? fetchClusterLoadGraphErrorMessage
|
|
80568
|
-
: DEFAULT_ERROR_MESSAGES.CLUSTER_LOAD_FETCH_ERROR }))] }))
|
|
80519
|
+
: DEFAULT_ERROR_MESSAGES.CLUSTER_LOAD_FETCH_ERROR }))] })), jsxs(Box$1, { children: [fetchClusterLoadGraph.isSuccess && (jsxs(Box$1, { id: "".concat(metricKey, "-wrapper"), display: 'flex', flexDirection: 'row', className: clsx(appName === AppName.WEB ? classes.metricPanel : classes.metricPanelYBM), onClick: function (e) {
|
|
80569
80520
|
e.stopPropagation();
|
|
80570
|
-
}, width: "100%"
|
|
80521
|
+
}, width: "100%", children: [jsx("div", { ref: chartRef, id: metricKey, style: { flexGrow: 1, minWidth: 0 } }), isDbClusterLoadView && (jsx("div", { className: classes.groupByContainer, children: jsx(YBButtonGroup, { divider: true, value: chartType, buttons: chartTypeButtons, dataTestId: "PerfAdvisorClusterLoad-ChartTypeSelector" }) }))] })), !isAshEnabled && (jsx(Box$1, { mt: 2, mb: 1.5, children: jsx(ASHBanner, { isAshSupported: isAshSupported }) }))] })] }) })] }));
|
|
80571
80522
|
};
|
|
80572
80523
|
|
|
80573
80524
|
var NodeDrilldown = function (_a) {
|
|
@@ -80575,7 +80526,7 @@ var NodeDrilldown = function (_a) {
|
|
|
80575
80526
|
var appName = _a.appName, dbWaitEventType = _a.dbWaitEventType, timezone = _a.timezone, apiUrl = _a.apiUrl, anomalyData = _a.anomalyData, metricMeasure = _a.metricMeasure, amomalyGraphRequestParams = _a.amomalyGraphRequestParams, formattedAnomalyRca = _a.formattedAnomalyRca, urlParams = _a.urlParams, dateTimeRange = _a.dateTimeRange, groupByOperation = _a.groupByOperation, onFilterBarData = _a.onFilterBarData, onChangeDbWaitEventType = _a.onChangeDbWaitEventType, getClusterDetails = _a.getClusterDetails, onOutlierTypeSelected = _a.onOutlierTypeSelected, onNumNodesChanged = _a.onNumNodesChanged, onEChartsDateSelect = _a.onEChartsDateSelect, onSetGroupByOperation = _a.onSetGroupByOperation, onSelectedQuery = _a.onSelectedQuery, onNavigateToUrl = _a.onNavigateToUrl;
|
|
80576
80527
|
// State variables
|
|
80577
80528
|
var _p = getClusterDetails(), universeUuid = _p.universeUuid, numNodes = _p.numNodes, outlierType = _p.outlierType;
|
|
80578
|
-
return (jsxs(Fragment, { children: [jsx(DbLoadHeader, { outlierType: outlierType, numNodes: numNodes, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, onChangeDbWaitEventType: onChangeDbWaitEventType, waitEventType: dbWaitEventType, isDbClusterLoadView: false }), jsx(PerfAdvisorClusterLoad, { dbWaitEventType: dbWaitEventType, isDbClusterLoadView: false, isNodeClusterLoadView: true, startTime: (_c = (_b = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _b === void 0 ? void 0 : _b.toISOString()) !== null && _c !== void 0 ? _c : null, endTime: (_e = (_d = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _d === void 0 ? void 0 : _d.toISOString()) !== null && _e !== void 0 ? _e : null, apiUrl: apiUrl, universeUuid: universeUuid, appName: appName, metricKey: "node_drilldown_cluster_load", groupByOperation: groupByOperation, shouldAbbreviateTraceName: true, timezone: timezone, isAshEnabled: true, isAshSupported: true, onFilterBarData: onFilterBarData, onSetGroupByOperation: onSetGroupByOperation, onEChartsDateSelect: onEChartsDateSelect, getClusterDetails: getClusterDetails }), jsx(NodeLoadMetadata, { appName: appName, dbWaitEventType: dbWaitEventType, universeUuid: universeUuid, apiUrl: apiUrl, startTime: (_g = (_f = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _f === void 0 ? void 0 : _f.toISOString()) !== null && _g !== void 0 ? _g : null, endTime: (_j = (_h = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _h === void 0 ? void 0 : _h.toISOString()) !== null && _j !== void 0 ? _j : null, onSelectedQuery: onSelectedQuery, onNavigateToUrl: onNavigateToUrl }), jsxs(Box$1,
|
|
80529
|
+
return (jsxs(Fragment, { children: [jsx(DbLoadHeader, { outlierType: outlierType, numNodes: numNodes, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, onChangeDbWaitEventType: onChangeDbWaitEventType, waitEventType: dbWaitEventType, isDbClusterLoadView: false }), jsx(PerfAdvisorClusterLoad, { dbWaitEventType: dbWaitEventType, isDbClusterLoadView: false, isNodeClusterLoadView: true, startTime: (_c = (_b = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _b === void 0 ? void 0 : _b.toISOString()) !== null && _c !== void 0 ? _c : null, endTime: (_e = (_d = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _d === void 0 ? void 0 : _d.toISOString()) !== null && _e !== void 0 ? _e : null, apiUrl: apiUrl, universeUuid: universeUuid, appName: appName, metricKey: "node_drilldown_cluster_load", groupByOperation: groupByOperation, shouldAbbreviateTraceName: true, timezone: timezone, isAshEnabled: true, isAshSupported: true, onFilterBarData: onFilterBarData, onSetGroupByOperation: onSetGroupByOperation, onEChartsDateSelect: onEChartsDateSelect, getClusterDetails: getClusterDetails }), jsx(NodeLoadMetadata, { appName: appName, dbWaitEventType: dbWaitEventType, universeUuid: universeUuid, apiUrl: apiUrl, startTime: (_g = (_f = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _f === void 0 ? void 0 : _f.toISOString()) !== null && _g !== void 0 ? _g : null, endTime: (_j = (_h = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _h === void 0 ? void 0 : _h.toISOString()) !== null && _j !== void 0 ? _j : null, onSelectedQuery: onSelectedQuery, onNavigateToUrl: onNavigateToUrl }), jsxs(Box$1, { mt: 2, children: [jsx(Typography$1, { variant: "h5", children: 'Possible Causes' }), jsx(Box$1, { mt: 1, children: jsx(AnomalyRCAGraphs, { appName: appName, timezone: timezone, startTime: (_l = (_k = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _k === void 0 ? void 0 : _k.toISOString()) !== null && _l !== void 0 ? _l : null, endTime: (_o = (_m = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _m === void 0 ? void 0 : _m.toISOString()) !== null && _o !== void 0 ? _o : null, anomalyData: anomalyData, getClusterDetails: getClusterDetails, apiUrl: apiUrl, dateTimeRange: dateTimeRange, metricMeasure: metricMeasure, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, onEChartsDateSelect: onEChartsDateSelect, urlParams: urlParams }) })] })] }));
|
|
80579
80530
|
};
|
|
80580
80531
|
|
|
80581
80532
|
var PerfAdvisorGantChart = function (_a) {
|
|
@@ -80874,7 +80825,7 @@ var PerfAdvisorGantChart = function (_a) {
|
|
|
80874
80825
|
groups.push({
|
|
80875
80826
|
categoryLevel: 2,
|
|
80876
80827
|
id: secondLevelId,
|
|
80877
|
-
content: secondLevelName,
|
|
80828
|
+
content: secondLevelName, // No expand/collapse icon for background jobs level 2
|
|
80878
80829
|
parent: firstLevelCategory,
|
|
80879
80830
|
name: secondLevelName,
|
|
80880
80831
|
categoryCount: secondLevelData.totalCount || 0
|
|
@@ -80974,7 +80925,7 @@ var PerfAdvisorGantChart = function (_a) {
|
|
|
80974
80925
|
var updatedGroups_1 = groups;
|
|
80975
80926
|
if (showMoreOptions || isBackgroundJobs) {
|
|
80976
80927
|
var updatedGroups_2 = groups.map(function (group) {
|
|
80977
|
-
var _a, _b;
|
|
80928
|
+
var _a, _b, _c, _d;
|
|
80978
80929
|
// Check if the group has further descendants
|
|
80979
80930
|
var hasDescendants = ((_a = subCategoriesMap[group.id]) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
80980
80931
|
// For background jobs, level 2 groups are not expandable
|
|
@@ -81064,11 +81015,11 @@ var PerfAdvisorGantChart = function (_a) {
|
|
|
81064
81015
|
: group.content;
|
|
81065
81016
|
var groupContent = '';
|
|
81066
81017
|
if (isLevel2BgJob) {
|
|
81067
|
-
var name_1 = group.name
|
|
81018
|
+
var name_1 = (_c = group.name) !== null && _c !== void 0 ? _c : '';
|
|
81068
81019
|
groupContent = "<a title=\"".concat(name_1, "\">").concat(name_1, "</a>");
|
|
81069
81020
|
}
|
|
81070
81021
|
else if (hasDescendants) {
|
|
81071
|
-
var name_2 = group.name
|
|
81022
|
+
var name_2 = (_d = group.name) !== null && _d !== void 0 ? _d : '';
|
|
81072
81023
|
var displayName = '';
|
|
81073
81024
|
if (name_2 && name_2.length > MAX_CHARS) {
|
|
81074
81025
|
displayName =
|
|
@@ -81304,10 +81255,10 @@ var PerfAdvisorGantChart = function (_a) {
|
|
|
81304
81255
|
}
|
|
81305
81256
|
}
|
|
81306
81257
|
if (clickedGroup === null || clickedGroup === void 0 ? void 0 : clickedGroup.uuid) {
|
|
81307
|
-
if (appName === AppName.YBM) {
|
|
81258
|
+
if (appName === AppName.YBM || appName === AppName.YBA) {
|
|
81308
81259
|
routeToSecondary(clickedGroup.uuid);
|
|
81309
81260
|
}
|
|
81310
|
-
else if (appName === AppName.WEB
|
|
81261
|
+
else if (appName === AppName.WEB) {
|
|
81311
81262
|
handleRedirect(clickedGroup.uuid);
|
|
81312
81263
|
}
|
|
81313
81264
|
}
|
|
@@ -81419,9 +81370,9 @@ var PerfAdvisorGantChart = function (_a) {
|
|
|
81419
81370
|
return el;
|
|
81420
81371
|
}
|
|
81421
81372
|
}
|
|
81422
|
-
return (jsxs(Box$1,
|
|
81373
|
+
return (jsxs(Box$1, { id: name, children: [jsx("div", { ref: timelineRef, style: {
|
|
81423
81374
|
backgroundColor: '#FFFFFF'
|
|
81424
|
-
} }, name), jsx("style", { children: "\n .vis-foreground .vis-group {\n border-bottom: none;\n }\n .vis-foreground .vis-group.custom-group-row-1 {\n top: 8px;\n }\n .vis-foreground .vis-group.parent-category {\n border-top: 1px solid #E0E0E0 !important; /* Or whatever you want */\n }\n .vis-labelset .vis-label {\n border-right: 0px solid #ccc !important;\n border-bottom: none;\n border-top: none;\n }\n .vis-timeline {\n background-color: #FFFFFF !important;\n border: 0px solid #ccc !important;\n visibility: visible !important;\n }\n .vis-panel.vis-top {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-bottom {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-left {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-inner a {\n cursor: pointer;\n letter-spacing: 0.3px;\n text-decoration: none !important;\n outline: none !important;\n color: unset !important;\n &:focus {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n &:hover {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n }\n .vis-labelset .vis-label .vis-inner {\n padding: 0px;\n }\n .vis-inner span {\n padding: 2px 6px 2px 6px;\n height: 20px;\n width: fit-content;\n font-size: 11.5px;\n line-height: 16px;\n font-family: Inter;\n font-weight: 500;\n border-radius: 4px;\n }\n .vis-item.vis-range .vis-item-content {\n display: none;\n }\n .vis-item.vis-range {\n top: 10px !important;\n border-style: unset;\n border-radius: 8px;\n }\n .vis-labelset.my-custom-labelset-rca {\n width: 0px;\n }\n .vis-labelset {\n width: 250px;\n }\n .vis-inner {\n display: flex !important;\n justify-content: space-between;\n align-items: center;\n }\n .vis-time-axis .vis-grid.vis-vertical {\n border-left: 1px dashed !important;\n color: #D7DEE4;\n }\n .vis-time-axis .vis-grid.vis-horizontal {\n display: none !important;\n }\n .vis-panel.vis-center {\n border-left-style: dashed !important;\n border-right-style: dashed !important;\n border-top-color: #D7DEE4;\n top: 1px !important;\n margin-left: 8px;\n left: 254px !important;\n }\n .vis-panel.vis-center.my-custom-center-panel-rca {\n left: 0px !important;\n }\n .vis-time-axis .vis-grid.vis-major {\n border-color: #e5e5e5 !important;\n }\n .custom-group-separator-left {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n position: absolute;\n width: 100%;\n margin-top: 2px;\n }\n .custom-group-separator-right {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n position: absolute;\n width: 100%;\n }\n .custom-group-separator-bottom {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n content: '';\n }\n .custom-group-separator-top {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n content: '';\n }\n .item-separator {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n margin-top: 2px;\n }\n .item-separator-right {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n }\n .vis-label.custom-group-row-1 .vis-inner {\n padding-top: 16px;\n padding-bottom: 16px;\n }\n .vis-label.custom-group-row-2 .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-label.custom-group-row-3 .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-label.custom-group-row .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-foreground .vis-group.custom-group-row {\n border-bottom: 1px solid #D7DEE4;\n bottom: 3px;\n }\n .vis-label.custom-group-row .vis-inner .category-deeplink {\n text-decoration: underline !important;\n }\n .vis-label.custom-group-row-2 .vis-inner .category-badge-2 {\n margin-right: 40px;\n }\n .vis-label.custom-group-row-3 .vis-inner .category-badge-3 {\n margin-right: 44px;\n }\n .vis-label.custom-group-row-3 .vis-inner .category-deeplink {\n margin-left: 24px;\n text-decoration: underline !important;\n }\n .vis-label.db-background .vis-inner .db-inner-background {\n background-color: #E8E9FE !important;\n color: #30307F !important;\n }\n .vis-label.node-background .vis-inner .node-inner-background {\n background-color: #FFEEC8 !important;\n color: #9D6C00 !important;\n }\n .vis-label.sql-background .vis-inner .sql-inner-background {\n background-color: rgba(187, 66, 188, 0.15) !important;\n color: #7D2777 !important;\n }\n .vis-label.app-background .vis-inner .app-inner-background {\n background-color: #D7EFF4 !important;\n color: #2B59C3 !important;\n }\n .vis-label.infra-background .vis-inner .infra-inner-background {\n background-color: #c1ccec !important;\n color: #507ce1 !important;\n }\n .vis-label.bg-jobs-background .vis-inner .bg-jobs-inner-background {\n background-color: #E9EEF2 !important;\n color: #4E5F6D !important;\n }\n .vis-time-axis .vis-text {\n font-family: Inter;\n font-size: 11px;\n font-weight: 400;\n }\n " })] }
|
|
81375
|
+
} }, name), jsx("style", { children: "\n .vis-foreground .vis-group {\n border-bottom: none;\n }\n .vis-foreground .vis-group.custom-group-row-1 {\n top: 8px;\n }\n .vis-foreground .vis-group.parent-category {\n border-top: 1px solid #E0E0E0 !important; /* Or whatever you want */\n }\n .vis-labelset .vis-label {\n border-right: 0px solid #ccc !important;\n border-bottom: none;\n border-top: none;\n }\n .vis-timeline {\n background-color: #FFFFFF !important;\n border: 0px solid #ccc !important;\n visibility: visible !important;\n }\n .vis-panel.vis-top {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-bottom {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-left {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-inner a {\n cursor: pointer;\n letter-spacing: 0.3px;\n text-decoration: none !important;\n outline: none !important;\n color: unset !important;\n &:focus {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n &:hover {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n }\n .vis-labelset .vis-label .vis-inner {\n padding: 0px;\n }\n .vis-inner span {\n padding: 2px 6px 2px 6px;\n height: 20px;\n width: fit-content;\n font-size: 11.5px;\n line-height: 16px;\n font-family: Inter;\n font-weight: 500;\n border-radius: 4px;\n }\n .vis-item.vis-range .vis-item-content {\n display: none;\n }\n .vis-item.vis-range {\n top: 10px !important;\n border-style: unset;\n border-radius: 8px;\n }\n .vis-labelset.my-custom-labelset-rca {\n width: 0px;\n }\n .vis-labelset {\n width: 250px;\n }\n .vis-inner {\n display: flex !important;\n justify-content: space-between;\n align-items: center;\n }\n .vis-time-axis .vis-grid.vis-vertical {\n border-left: 1px dashed !important;\n color: #D7DEE4;\n }\n .vis-time-axis .vis-grid.vis-horizontal {\n display: none !important;\n }\n .vis-panel.vis-center {\n border-left-style: dashed !important;\n border-right-style: dashed !important;\n border-top-color: #D7DEE4;\n top: 1px !important;\n margin-left: 8px;\n left: 254px !important;\n }\n .vis-panel.vis-center.my-custom-center-panel-rca {\n left: 0px !important;\n }\n .vis-time-axis .vis-grid.vis-major {\n border-color: #e5e5e5 !important;\n }\n .custom-group-separator-left {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n position: absolute;\n width: 100%;\n margin-top: 2px;\n }\n .custom-group-separator-right {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n position: absolute;\n width: 100%;\n }\n .custom-group-separator-bottom {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n content: '';\n }\n .custom-group-separator-top {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n content: '';\n }\n .item-separator {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n margin-top: 2px;\n }\n .item-separator-right {\n height: 1px;\n background-color: #D7DEE4;\n margin: 0 0 0 0;\n display: block;\n width: 100%;\n }\n .vis-label.custom-group-row-1 .vis-inner {\n padding-top: 16px;\n padding-bottom: 16px;\n }\n .vis-label.custom-group-row-2 .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-label.custom-group-row-3 .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-label.custom-group-row .vis-inner {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .vis-foreground .vis-group.custom-group-row {\n border-bottom: 1px solid #D7DEE4;\n bottom: 3px;\n }\n .vis-label.custom-group-row .vis-inner .category-deeplink {\n text-decoration: underline !important;\n }\n .vis-label.custom-group-row-2 .vis-inner .category-badge-2 {\n margin-right: 40px;\n }\n .vis-label.custom-group-row-3 .vis-inner .category-badge-3 {\n margin-right: 44px;\n }\n .vis-label.custom-group-row-3 .vis-inner .category-deeplink {\n margin-left: 24px;\n text-decoration: underline !important;\n }\n .vis-label.db-background .vis-inner .db-inner-background {\n background-color: #E8E9FE !important;\n color: #30307F !important;\n }\n .vis-label.node-background .vis-inner .node-inner-background {\n background-color: #FFEEC8 !important;\n color: #9D6C00 !important;\n }\n .vis-label.sql-background .vis-inner .sql-inner-background {\n background-color: rgba(187, 66, 188, 0.15) !important;\n color: #7D2777 !important;\n }\n .vis-label.app-background .vis-inner .app-inner-background {\n background-color: #D7EFF4 !important;\n color: #2B59C3 !important;\n }\n .vis-label.infra-background .vis-inner .infra-inner-background {\n background-color: #c1ccec !important;\n color: #507ce1 !important;\n }\n .vis-label.bg-jobs-background .vis-inner .bg-jobs-inner-background {\n background-color: #E9EEF2 !important;\n color: #4E5F6D !important;\n }\n .vis-time-axis .vis-text {\n font-family: Inter;\n font-size: 11px;\n font-weight: 400;\n }\n " })] }, name));
|
|
81425
81376
|
};
|
|
81426
81377
|
|
|
81427
81378
|
var YBStyledTab$2 = styled$1(YBTab)(function (_a) {
|
|
@@ -81524,9 +81475,9 @@ var OtherDrilldown = function (_a) {
|
|
|
81524
81475
|
});
|
|
81525
81476
|
var fetchAnomalyGraphsErrorMessage = (_d = (_c = (_b = fetchAnomalyGraphs === null || fetchAnomalyGraphs === void 0 ? void 0 : fetchAnomalyGraphs.error) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error;
|
|
81526
81477
|
var renderGraphs = function (graphResponseData, uniqueOperations, groupByOperations, graphType, index, graphTitle) {
|
|
81527
|
-
return (jsx(Box$1,
|
|
81478
|
+
return (jsx(Box$1, { mr: 8, children: jsx(GraphView, { metricData: graphResponseData, metricKey: graphResponseData.name, graphTitle: graphTitle, containerWidth: null, dateTimeRange: dateTimeRange, metricMeasure: metricMeasure, operations: uniqueOperations, groupByOperations: groupByOperations, registerChartInstance: function (instance) {
|
|
81528
81479
|
return registerChartInstance(instance, index);
|
|
81529
|
-
}, appName: appName, graphType: graphType, timezone: timezone, queryData: universeQueryData, onSelectAshLabel: onSelectAshLabel, onEChartsDateSelect: onEChartsDateSelect }, "".concat(metricMeasure, "-").concat(graphResponseData.name)) }))
|
|
81480
|
+
}, appName: appName, graphType: graphType, timezone: timezone, queryData: universeQueryData, onSelectAshLabel: onSelectAshLabel, onEChartsDateSelect: onEChartsDateSelect }, "".concat(metricMeasure, "-").concat(graphResponseData.name)) }));
|
|
81530
81481
|
};
|
|
81531
81482
|
var filteredRecommendationMetrics = formattedAnomalyRca === null || formattedAnomalyRca === void 0 ? void 0 : formattedAnomalyRca.filter(function (item) { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.length) > 0; });
|
|
81532
81483
|
// Reset chart instances on metricMeasure change
|
|
@@ -81546,11 +81497,11 @@ var OtherDrilldown = function (_a) {
|
|
|
81546
81497
|
disconnect(chartInstancesRef.current);
|
|
81547
81498
|
};
|
|
81548
81499
|
}, [fetchAnomalyGraphs.isSuccess, RCAGraphResponseData, selectedTab]);
|
|
81549
|
-
return (jsx(Box$1,
|
|
81500
|
+
return (jsx(Box$1, { mt: 2, children: jsxs(Fragment, { children: [fetchAnomalyGraphs.isLoading && (jsx(Box$1, { mt: 2, className: classes.loadingBox, children: jsx(SvgLoading, { className: clsx(classes.icon, classes.inProgressIcon) }) })), fetchAnomalyGraphs.isError && (jsxs(Box$1, { mt: 4, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchAnomalyGraphsErrorMessage)
|
|
81550
81501
|
? fetchAnomalyGraphsErrorMessage
|
|
81551
81502
|
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchAnomalyGraphsErrorMessage)
|
|
81552
81503
|
? fetchAnomalyGraphsErrorMessage
|
|
81553
|
-
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR }))] }))
|
|
81504
|
+
: DEFAULT_ERROR_MESSAGES.RCA_GRAPHS_FETCH_ERROR }))] })), fetchAnomalyGraphs.isSuccess && (jsxs(Box$1, { children: [isNonEmptyArray(RCAGraphResponseData) &&
|
|
81554
81505
|
isNonEmptyArray((_e = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _e === void 0 ? void 0 : _e.mainGraphs) &&
|
|
81555
81506
|
((_f = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _f === void 0 ? void 0 : _f.mainGraphs.map(function (graph, mainGraphIdx) {
|
|
81556
81507
|
var _a, _b, _c;
|
|
@@ -81562,27 +81513,27 @@ var OtherDrilldown = function (_a) {
|
|
|
81562
81513
|
var operations = metricMeasure === MetricMeasure.OVERALL
|
|
81563
81514
|
? { uniqueOperations: [], groupByOperations: [] }
|
|
81564
81515
|
: getOperations(metricMeasure, metricData, GraphType.MAIN_RCA, shouldShowGroupbyOperations, amomalyGraphRequestParams);
|
|
81565
|
-
return (jsxs(Box$1,
|
|
81566
|
-
classes.restrictLines)
|
|
81567
|
-
) })
|
|
81568
|
-
})), jsxs(Box$1,
|
|
81516
|
+
return (jsxs(Box$1, { className: classes.mainGraphBox, children: [jsx(Box$1, { className: classes.mainGraphMetadataBox, children: jsxs(Box$1, { className: classes.anomalyMetadataOneBox, children: [jsx("span", { className: classes.headerTitle, children: ANOMALY_TAG }), jsx("span", { className: classes.metadataDetails, children: (_a = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _a === void 0 ? void 0 : _a.title }), jsx("span", { className: clsx(classes.regularMetadata, ((_b = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _b === void 0 ? void 0 : _b.category) === AnomalyCategory.SQL &&
|
|
81517
|
+
classes.restrictLines), children: (_c = anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.lastInstance) === null || _c === void 0 ? void 0 : _c.summary })] }) }), jsx(Box$1, { className: classes.boxContainer, children: renderGraphs(metricData, operations.uniqueOperations, operations.groupByOperations, GraphType.MAIN_RCA, mainGraphIdx + 10 // Using a arbitary index for main graph to avoid ECharts connect issues for legends syncing
|
|
81518
|
+
) })] }));
|
|
81519
|
+
})), jsxs(Box$1, { mt: 2, mb: 1, className: classes.ghantChartContainer, children: [gantChartData.isLoading && (jsx(Box$1, { mt: 2, className: classes.loadingBox, children: jsx(SvgLoading, { className: clsx(classes.icon, classes.inProgressIcon) }) })), gantChartData.isError && ((_h = (_g = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _g === void 0 ? void 0 : _g.response) === null || _h === void 0 ? void 0 : _h.status) !== 404 && (jsxs(Box$1, { mt: 2, children: [(appName === AppName.WEB || appName === AppName.YBA) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_l = (_k = (_j = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _j === void 0 ? void 0 : _j.response) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l.error)
|
|
81569
81520
|
? (_p = (_o = (_m = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _m === void 0 ? void 0 : _m.response) === null || _o === void 0 ? void 0 : _o.data) === null || _p === void 0 ? void 0 : _p.error
|
|
81570
81521
|
: DEFAULT_ERROR_MESSAGES.GANTCHART_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_s = (_r = (_q = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _q === void 0 ? void 0 : _q.response) === null || _r === void 0 ? void 0 : _r.data) === null || _s === void 0 ? void 0 : _s.error)
|
|
81571
81522
|
? (_v = (_u = (_t = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _t === void 0 ? void 0 : _t.response) === null || _u === void 0 ? void 0 : _u.data) === null || _v === void 0 ? void 0 : _v.error
|
|
81572
|
-
: DEFAULT_ERROR_MESSAGES.GANTCHART_FETCH_ERROR }))] }))
|
|
81523
|
+
: DEFAULT_ERROR_MESSAGES.GANTCHART_FETCH_ERROR }))] })), (gantChartData.isSuccess ||
|
|
81573
81524
|
(gantChartData.isError && ((_x = (_w = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _w === void 0 ? void 0 : _w.response) === null || _x === void 0 ? void 0 : _x.status) === 404)) &&
|
|
81574
|
-
(isNonEmptyObject(anomalyGantData) ? (jsx(Box$1,
|
|
81525
|
+
(isNonEmptyObject(anomalyGantData) ? (jsx(Box$1, { className: classes.rcaGantChartBox, children: jsx(PerfAdvisorGantChart, { sourceData: gantChartData.isError && ((_z = (_y = gantChartData === null || gantChartData === void 0 ? void 0 : gantChartData.error) === null || _y === void 0 ? void 0 : _y.response) === null || _z === void 0 ? void 0 : _z.status) === 404
|
|
81575
81526
|
? []
|
|
81576
|
-
: [anomalyGantData], name: RCA_GANT_CHART, showMoreOptions: false, expandAll: true, startTime: (_0 = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _0 === void 0 ? void 0 : _0.toISOString(), endTime: (_1 = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _1 === void 0 ? void 0 : _1.toISOString(), onSelectedIssue: onSelectedIssue, appName: appName, showMultiline: false }, RCA_GANT_CHART) }))
|
|
81577
|
-
isNonEmptyArray(filteredRecommendationMetrics) && (jsxs(Box$1,
|
|
81527
|
+
: [anomalyGantData], name: RCA_GANT_CHART, showMoreOptions: false, expandAll: true, startTime: (_0 = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _0 === void 0 ? void 0 : _0.toISOString(), endTime: (_1 = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _1 === void 0 ? void 0 : _1.toISOString(), onSelectedIssue: onSelectedIssue, appName: appName, showMultiline: false }, RCA_GANT_CHART) })) : (jsxs(Box$1, { mt: 2, children: [(appName === AppName.WEB || appName === AppName.YBA) && (jsx("span", { children: 'Failed to fetch anomaly data, please try again.' })), appName === AppName.YBM && (jsx(GenericFailure, { text: 'Failed to fetch anomaly data, please try again.' }))] })))] }), isNonEmptyArray(RCAGraphResponseData) &&
|
|
81528
|
+
isNonEmptyArray(filteredRecommendationMetrics) && (jsxs(Box$1, { mt: 2, children: [jsx(YBTabs, { pill: true, value: selectedTab, onChange: handleTabChange, children: filteredRecommendationMetrics === null || filteredRecommendationMetrics === void 0 ? void 0 : filteredRecommendationMetrics.map(function (item, index) { return (jsx(YBStyledTab$2, { value: index, label: item.cause, className: classes.causeTabButton }, index)); }) }), filteredRecommendationMetrics === null || filteredRecommendationMetrics === void 0 ? void 0 : filteredRecommendationMetrics.map(function (item, recIndex) {
|
|
81578
81529
|
var _a, _b;
|
|
81579
|
-
return (jsx(Box$1,
|
|
81530
|
+
return (jsx(Box$1, { role: "tabpanel", hidden: selectedTab !== recIndex, id: "tabpanel-".concat(recIndex), "aria-labelledby": "tab-".concat(recIndex), style: {
|
|
81580
81531
|
border: '1px solid #E9EEF2',
|
|
81581
81532
|
borderRadius: '8px',
|
|
81582
81533
|
padding: '16px'
|
|
81583
|
-
}
|
|
81534
|
+
}, children: selectedTab === recIndex && (jsxs(Box$1, { mt: 2, display: 'flex', flexDirection: 'column', children: [jsx("span", { className: classes.causeText, children: item.cause }), jsxs(Box$1, { children: [jsx("img", { src: UnderIcon, alt: "path" }), jsx("span", { className: classes.descriptionText, children: item.description })] }), jsx(Box$1, { mt: 2, className: ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.length) > 1
|
|
81584
81535
|
? clsx(classes.gridBox, classes.gridBoxDouble)
|
|
81585
|
-
: ''
|
|
81536
|
+
: '', children: (_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.map(function (metricName, index) {
|
|
81586
81537
|
var _a, _b, _c;
|
|
81587
81538
|
var metricData = RCAGraphResponseData === null || RCAGraphResponseData === void 0 ? void 0 : RCAGraphResponseData.find(function (data, graphIdx) {
|
|
81588
81539
|
return (graphIdx > 0 &&
|
|
@@ -81596,16 +81547,16 @@ var OtherDrilldown = function (_a) {
|
|
|
81596
81547
|
}
|
|
81597
81548
|
else {
|
|
81598
81549
|
var operations = getOperations(metricMeasure, metricData, GraphType.MULTI_SUPPORTING, shouldShowGroupbyOperations, amomalyGraphRequestParams);
|
|
81599
|
-
return (jsx(Box$1,
|
|
81550
|
+
return (jsx(Box$1, { style: {
|
|
81600
81551
|
border: '1px solid #E9EEF2',
|
|
81601
81552
|
borderRadius: '8px',
|
|
81602
81553
|
marginRight: isOnlyReason ? '0px' : '16px'
|
|
81603
|
-
}
|
|
81554
|
+
}, children: renderGraphs(metricData, operations.uniqueOperations, operations.groupByOperations, isOnlyReason
|
|
81604
81555
|
? GraphType.SINGLE_SUPPORTING
|
|
81605
|
-
: GraphType.MULTI_SUPPORTING, recIndex + index, item.title) }))
|
|
81556
|
+
: GraphType.MULTI_SUPPORTING, recIndex + index, item.title) }));
|
|
81606
81557
|
}
|
|
81607
|
-
}) })
|
|
81608
|
-
})] }))
|
|
81558
|
+
}) })] })) }, recIndex));
|
|
81559
|
+
})] }))] }))] }) }));
|
|
81609
81560
|
};
|
|
81610
81561
|
|
|
81611
81562
|
var useStyles$c = makeStyles$1(function (theme) { return ({
|
|
@@ -81673,11 +81624,11 @@ var TabletLevelQueryMetadata = function (_a) {
|
|
|
81673
81624
|
var onSetGroupByOperation = function (operation) {
|
|
81674
81625
|
setGroupByOperation(operation);
|
|
81675
81626
|
};
|
|
81676
|
-
return (jsxs(Box$1,
|
|
81627
|
+
return (jsxs(Box$1, { className: clsx(helperClasses.mainContainer, helperClasses.mainContainerBorder), p: 2, children: [jsx(Box$1, { className: classes.headerContainer, children: jsx(Typography$1, { variant: "h5", children: isHotTablet ? 'Hot Tablet Queries' : 'Large Tablet Queries' }) }), jsxs(Box$1, { className: helperClasses.mainContainer, p: 2, mt: 2, children: [jsxs(Box$1, { display: 'flex', flexDirection: 'column', children: [jsx(YBLabel, { children: TABLET_ID_TAG }), jsx(Typography$1, { variant: "h5", style: { marginTop: '4px' }, children: tabletId })] }), jsxs(Box$1, { className: classes.metadataContainer, mt: 3, children: [jsxs(Box$1, { className: classes.metadataItem, children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.WAIT_EVENT_TYPES }) }), jsx(Box$1, { className: classes.metadataValue, style: { minWidth: 0, maxWidth: '100%' }, children: jsx(QueryEventsChart, { data: events, maxEPS: 1, groupByOperation: WaitEventClassification.WAIT_EVENT_TYPE, isTabletAnomaly: true }) })] }), jsxs(Box$1, { className: classes.metadataItem, children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.TOTAL_LOAD }) }), jsx(Box$1, { className: classes.metadataValue, children: jsx(Typography$1, { variant: "body2", children: Number.isFinite(Number(totalEpsRatio))
|
|
81677
81628
|
? "".concat((Number(totalEpsRatio) * 100).toLocaleString(undefined, {
|
|
81678
81629
|
maximumFractionDigits: 2
|
|
81679
81630
|
}), "%")
|
|
81680
|
-
: '-' })
|
|
81631
|
+
: '-' }) })] }), jsxs(Box$1, { className: classes.metadataItem, children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.AAS }) }), jsx(Box$1, { className: classes.metadataValue, children: jsx(Typography$1, { variant: "body2", children: Number(eps) ? Number(eps).toLocaleString() : '0.0' }) })] }), jsxs(Box$1, { className: classes.metadataItem, children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.SIZE }) }), jsx(Box$1, { className: classes.metadataValue, children: jsx(Typography$1, { variant: "body2", children: formatBytes(size) }) })] }), jsxs(Box$1, { className: clsx(classes.metadataItem, classes.metadataItemWider), children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.TABLET_RANGE }) }), jsx(Box$1, { className: classes.metadataValue, children: isNonEmptyString(partition) ? (jsx(YBTooltip, { arrow: true, placement: "top", title: partition, children: jsx(Typography$1, { variant: "body2", className: classes.truncatedText, children: truncateText$1(partition, 25) }) })) : (jsx(Typography$1, { variant: "body2", children: "-" })) })] }), jsxs(Box$1, { className: clsx(classes.metadataItem, classes.metadataItemWider), children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.LEADER_NODE }) }), jsx(Box$1, { className: classes.metadataValue, children: !!leaderNode ? (jsx(YBTooltip, { title: leaderNode, placement: "top", arrow: true, children: jsx(Box$1, { className: classes.truncatedTagWrapper, children: jsx(YBTag, { variant: "light", size: 'medium', children: jsx("span", { className: classes.truncatedTagContent, children: truncateText$1(leaderNode, 20) }) }) }) })) : (jsx(Typography$1, { variant: "body2", children: "-" })) })] }), jsxs(Box$1, { className: clsx(classes.metadataItem, classes.metadataItemWider), children: [jsx(Box$1, { className: classes.metadataLabel, children: jsx(YBLabel, { children: METADATA_LABELS.FOLLOWER_NODES }) }), jsx(Box$1, { className: classes.metadataValue, flexWrap: "wrap", children: !!followerNodes && (followerNodes === null || followerNodes === void 0 ? void 0 : followerNodes.length) > 0 ? (jsx(YBTooltip, { arrow: true, placement: "top", title: followerNodes.join(',\n'), children: jsxs(Box$1, { display: "flex", alignItems: "center", flexWrap: "wrap", children: [jsx(Box$1, { className: classes.truncatedTagWrapper, children: jsx(YBTag, { variant: "light", size: 'medium', children: jsx("span", { className: classes.truncatedTagContent, children: truncateText$1(followerNodes[0], 20) }) }) }), followerNodes.length >= 2 && (jsx(YBTag, { customSx: { marginLeft: '4px' }, variant: "light", size: 'medium', children: jsx("span", { children: "+".concat(followerNodes.length - 1) }) }))] }) })) : (jsx(Typography$1, { variant: "body2", children: "-" })) })] })] }), jsx(Box$1, { children: jsx(QueriesMetadata, { groupByOperation: groupByOperation, dbWaitEventType: ALL.toUpperCase(), universeUuid: universeUuid, name: tabletId, apiUrl: apiUrl, appName: appName, startTime: startTime, endTime: endTime, onSelectedQuery: onSelectedQuery, isDbLoadMetadata: false, isNodeLoadMetadata: false, isTabletLoadMetadata: true, onSetGroupByOperation: onSetGroupByOperation, onNavigateToUrl: onNavigateToUrl }) })] })] }));
|
|
81681
81632
|
};
|
|
81682
81633
|
|
|
81683
81634
|
var TOP_MARGIN = 10;
|
|
@@ -81756,7 +81707,7 @@ var SizeBarChart = function (_a) {
|
|
|
81756
81707
|
},
|
|
81757
81708
|
yAxis: {
|
|
81758
81709
|
type: 'category',
|
|
81759
|
-
data: [''],
|
|
81710
|
+
data: [''], // single row
|
|
81760
81711
|
show: false
|
|
81761
81712
|
},
|
|
81762
81713
|
series: series
|
|
@@ -81781,22 +81732,22 @@ var SizeBarChart = function (_a) {
|
|
|
81781
81732
|
var sizeRatio = Math.min(size / maxSize, 1); // Cap at 1 for max size
|
|
81782
81733
|
// Use a percentage width based on the ratio, with a minimum width to ensure visibility
|
|
81783
81734
|
var containerWidthPercent = Math.max(sizeRatio * 100, 10); // At least 10% width
|
|
81784
|
-
return (jsxs(Box$1,
|
|
81735
|
+
return (jsxs(Box$1, { display: "flex", flexDirection: "row", alignItems: "center", style: {
|
|
81785
81736
|
width: '100%',
|
|
81786
81737
|
height: "".concat(barHeight, "px")
|
|
81787
|
-
}
|
|
81738
|
+
}, children: [jsx("div", { className: "size-bar-chart-container", ref: chartRef, style: {
|
|
81788
81739
|
height: "".concat(barHeight, "px"),
|
|
81789
81740
|
width: "".concat(containerWidthPercent, "%"),
|
|
81790
|
-
minWidth: '30px',
|
|
81741
|
+
minWidth: '30px', // Ensure minimum width for very small bars
|
|
81791
81742
|
display: 'flex',
|
|
81792
81743
|
alignItems: 'center',
|
|
81793
81744
|
justifyContent: 'flex-start'
|
|
81794
|
-
} }), jsx(Box$1,
|
|
81745
|
+
} }), jsx(Box$1, { style: {
|
|
81795
81746
|
marginLeft: '4px',
|
|
81796
81747
|
fontSize: '11.5px',
|
|
81797
81748
|
color: '#0B1117',
|
|
81798
81749
|
whiteSpace: 'nowrap'
|
|
81799
|
-
}
|
|
81750
|
+
}, children: formattedSize })] }));
|
|
81800
81751
|
};
|
|
81801
81752
|
|
|
81802
81753
|
var _path;
|
|
@@ -82031,7 +81982,7 @@ var TabletMetadata = function (_a) {
|
|
|
82031
81982
|
sort: false,
|
|
82032
81983
|
display: true,
|
|
82033
81984
|
customHeadRender: function () {
|
|
82034
|
-
return (jsx(YBTooltip,
|
|
81985
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TABLET_ID_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.TABLET_ID }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82035
81986
|
},
|
|
82036
81987
|
setCellHeaderProps: function () { return ({
|
|
82037
81988
|
style: {
|
|
@@ -82044,7 +81995,7 @@ var TabletMetadata = function (_a) {
|
|
|
82044
81995
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82045
81996
|
}); },
|
|
82046
81997
|
customBodyRender: function (value) {
|
|
82047
|
-
return (jsxs(Box$1,
|
|
81998
|
+
return (jsxs(Box$1, { display: "flex", flexDirection: 'row', alignItems: 'center', children: [jsx("span", { children: isNonEmptyString(value) ? value : '-' }), !isHotTablet && value === (anomalyTabletData === null || anomalyTabletData === void 0 ? void 0 : anomalyTabletData.tabletId) && (jsx(SvgAlertCircle, { style: { marginLeft: '4px' } }))] }));
|
|
82048
81999
|
}
|
|
82049
82000
|
}
|
|
82050
82001
|
},
|
|
@@ -82067,7 +82018,7 @@ var TabletMetadata = function (_a) {
|
|
|
82067
82018
|
overflow: 'visible'
|
|
82068
82019
|
}
|
|
82069
82020
|
}); },
|
|
82070
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82021
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.SIZE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.SIZE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82071
82022
|
customBodyRender: function (value) {
|
|
82072
82023
|
if (!isHotTablet) {
|
|
82073
82024
|
return jsx(SizeBarChart, { size: value, maxSize: tabletMaxSize });
|
|
@@ -82090,7 +82041,7 @@ var TabletMetadata = function (_a) {
|
|
|
82090
82041
|
},
|
|
82091
82042
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82092
82043
|
}); },
|
|
82093
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82044
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.PARTITION_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.PARTITION }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82094
82045
|
setCellProps: function () { return ({
|
|
82095
82046
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82096
82047
|
}); },
|
|
@@ -82106,7 +82057,7 @@ var TabletMetadata = function (_a) {
|
|
|
82106
82057
|
sort: false,
|
|
82107
82058
|
display: (_a = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(TABLETS_COLUMNS.LEADER_NODE)) !== null && _a !== void 0 ? _a : (isHotTablet ? false : true),
|
|
82108
82059
|
customHeadRender: function () {
|
|
82109
|
-
return (jsx(YBTooltip,
|
|
82060
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LEADER_NODE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.LEADER_NODE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82110
82061
|
},
|
|
82111
82062
|
setCellHeaderProps: function () { return ({
|
|
82112
82063
|
style: {
|
|
@@ -82119,7 +82070,7 @@ var TabletMetadata = function (_a) {
|
|
|
82119
82070
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82120
82071
|
}); },
|
|
82121
82072
|
customBodyRender: function (value) {
|
|
82122
|
-
return (jsx(YBTag,
|
|
82073
|
+
return (jsx(YBTag, { variant: "light", size: 'medium', children: value }));
|
|
82123
82074
|
}
|
|
82124
82075
|
}
|
|
82125
82076
|
},
|
|
@@ -82130,7 +82081,7 @@ var TabletMetadata = function (_a) {
|
|
|
82130
82081
|
sort: false,
|
|
82131
82082
|
display: (_b = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(TABLETS_COLUMNS.FOLLOWER_NODES)) !== null && _b !== void 0 ? _b : (isHotTablet ? false : true),
|
|
82132
82083
|
customHeadRender: function () {
|
|
82133
|
-
return (jsx(YBTooltip,
|
|
82084
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.FOLLOWER_NODES_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.FOLLOWER_NODES }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82134
82085
|
},
|
|
82135
82086
|
setCellHeaderProps: function () { return ({
|
|
82136
82087
|
style: {
|
|
@@ -82144,7 +82095,7 @@ var TabletMetadata = function (_a) {
|
|
|
82144
82095
|
}); },
|
|
82145
82096
|
customBodyRender: function (value) {
|
|
82146
82097
|
var _a, _b, _c;
|
|
82147
|
-
return (jsxs(Fragment, { children: [jsx(YBTag,
|
|
82098
|
+
return (jsxs(Fragment, { children: [jsx(YBTag, { variant: "light", size: 'medium', children: (_a = value === null || value === void 0 ? void 0 : value[0]) !== null && _a !== void 0 ? _a : '-' }), (value === null || value === void 0 ? void 0 : value.length) >= 2 && (jsx(YBTag, { customSx: { marginLeft: '4px' }, variant: "light", size: 'medium', children: jsx(YBTooltip, { title: (_c = (_b = value === null || value === void 0 ? void 0 : value.slice(1)) === null || _b === void 0 ? void 0 : _b.join('\n')) !== null && _c !== void 0 ? _c : '', placement: "top", arrow: true, children: jsx("span", { children: "+".concat(value.length - 1) }) }) }))] }));
|
|
82148
82099
|
}
|
|
82149
82100
|
}
|
|
82150
82101
|
},
|
|
@@ -82161,7 +82112,7 @@ var TabletMetadata = function (_a) {
|
|
|
82161
82112
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82162
82113
|
}); },
|
|
82163
82114
|
customHeadRender: function () {
|
|
82164
|
-
return (jsx(YBTooltip,
|
|
82115
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_EPS_RATIO_TABLET_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.TOTAL_EPS_RATIO }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82165
82116
|
},
|
|
82166
82117
|
setCellProps: function () { return ({
|
|
82167
82118
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
@@ -82185,7 +82136,7 @@ var TabletMetadata = function (_a) {
|
|
|
82185
82136
|
},
|
|
82186
82137
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82187
82138
|
}); },
|
|
82188
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82139
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ACTIVE_SESSIONS_PER_SECOND_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.EPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82189
82140
|
setCellProps: function () { return ({
|
|
82190
82141
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82191
82142
|
}); },
|
|
@@ -82219,7 +82170,7 @@ var TabletMetadata = function (_a) {
|
|
|
82219
82170
|
overflow: 'visible'
|
|
82220
82171
|
}
|
|
82221
82172
|
}); },
|
|
82222
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82173
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.WAIT_EVENT_TYPE_CHART_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.EVENTS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82223
82174
|
customBodyRender: function (value) { return (jsx(QueryEventsChart, { data: value !== null && value !== void 0 ? value : [], maxEPS: maxEPS, groupByOperation: WaitEventClassification.WAIT_EVENT_TYPE })); }
|
|
82224
82175
|
}
|
|
82225
82176
|
},
|
|
@@ -82235,7 +82186,7 @@ var TabletMetadata = function (_a) {
|
|
|
82235
82186
|
},
|
|
82236
82187
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82237
82188
|
}); },
|
|
82238
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82189
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.WAL_SIZE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.WAL_SIZE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82239
82190
|
setCellProps: function () { return ({
|
|
82240
82191
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82241
82192
|
}); },
|
|
@@ -82256,7 +82207,7 @@ var TabletMetadata = function (_a) {
|
|
|
82256
82207
|
},
|
|
82257
82208
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82258
82209
|
}); },
|
|
82259
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82210
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.SST_SIZE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.WAL_SIZE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82260
82211
|
setCellProps: function () { return ({
|
|
82261
82212
|
className: helperClasses.tabletNodeLoadMetadataTableCell
|
|
82262
82213
|
}); },
|
|
@@ -82272,7 +82223,7 @@ var TabletMetadata = function (_a) {
|
|
|
82272
82223
|
sort: false,
|
|
82273
82224
|
display: (_h = storedColumns === null || storedColumns === void 0 ? void 0 : storedColumns.includes(TABLETS_COLUMNS.DATABASE_TYPE)) !== null && _h !== void 0 ? _h : false,
|
|
82274
82225
|
customHeadRender: function () {
|
|
82275
|
-
return (jsx(YBTooltip,
|
|
82226
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.DATABASE_TYPE_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: TABLETS_METADATA_LABELS.DATABASE_TYPE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82276
82227
|
},
|
|
82277
82228
|
setCellHeaderProps: function () { return ({
|
|
82278
82229
|
style: {
|
|
@@ -82296,13 +82247,13 @@ var TabletMetadata = function (_a) {
|
|
|
82296
82247
|
// TABLETS_COLUMNS.LEADER_NODE,
|
|
82297
82248
|
// TABLETS_COLUMNS.FOLLOWER_NODES,
|
|
82298
82249
|
TABLETS_COLUMNS.PARTITION
|
|
82299
|
-
], columns: columns, isTabletsMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsx(Box$1,
|
|
82250
|
+
], columns: columns, isTabletsMetadataColumns: true, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsx(Box$1, { className: clsx(helperClasses.mainContainer, helperClasses.mainContainerBorder), mt: 2, p: 2, children: jsxs(Box$1, { style: { display: 'flex', flexDirection: 'column' }, children: [jsxs(Box$1, { className: helperClasses.loadFilterContainer, style: { alignItems: 'center' }, children: [jsx(Typography$1, { variant: "h5", children: 'Tablets' }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, { style: { marginBottom: '2px' } }), onClick: openSelectionModal, dataTestId: "TabletMetadata-AddFieldsButton", children: ADD_COLUMNS_BUTTON_TEXT })] }), jsx(Box$1, { children: jsxs(Box$1, { className: appName === AppName.YBM
|
|
82300
82251
|
? helperClasses.overrideMuiTableContainer
|
|
82301
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
82252
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [isTabletsDataFetchError && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_d = (_c = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error)
|
|
82302
82253
|
? (_f = (_e = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error
|
|
82303
82254
|
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_h = (_g = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error)
|
|
82304
82255
|
? (_k = (_j = tabletsDataError === null || tabletsDataError === void 0 ? void 0 : tabletsDataError.response) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.error
|
|
82305
|
-
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR }))] }))
|
|
82256
|
+
: DEFAULT_ERROR_MESSAGES.TABLETS_DATA_FETCH_ERROR }))] })), isTabletsDataFetchSuccess && (jsx(YBTable, { id: 'TabletMetadata', className: helperClasses.overrideMuiTable, data: tabletsData !== null && tabletsData !== void 0 ? tabletsData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isTabletsDataFetchLoading, options: {
|
|
82306
82257
|
sort: true,
|
|
82307
82258
|
filter: true,
|
|
82308
82259
|
count: totalSize,
|
|
@@ -82333,7 +82284,7 @@ var TabletMetadata = function (_a) {
|
|
|
82333
82284
|
customFooter: customFooter,
|
|
82334
82285
|
manualSorting: true,
|
|
82335
82286
|
state: tableState
|
|
82336
|
-
} }, "TabletMetadata-".concat(sortBy, "-").concat(sortDirection)))] })
|
|
82287
|
+
} }, "TabletMetadata-".concat(sortBy, "-").concat(sortDirection)))] }) })] }) }), jsx(Box$1, { mt: 3, children: anomalyTabletData && (jsx(TabletLevelQueryMetadata, { anomalyTabletData: anomalyTabletData, isHotTablet: isHotTablet, appName: appName, universeUuid: universeUuid, startTime: startTime, endTime: endTime, apiUrl: apiUrl, onSelectedQuery: onSelectedQuery, onNavigateToUrl: onNavigateToUrl })) }), jsxs(Box$1, { mt: 2, children: [jsx(Typography$1, { variant: "h5", children: 'Possible Causes' }), jsx(Box$1, { mt: 1, children: jsx(AnomalyRCAGraphs, { appName: appName, timezone: timezone, startTime: startTime, endTime: endTime, anomalyData: anomalyData, getClusterDetails: getClusterDetails, apiUrl: apiUrl, dateTimeRange: dateTimeRange, metricMeasure: metricMeasure, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, onEChartsDateSelect: onEChartsDateSelect, urlParams: urlParams }) })] })] }));
|
|
82337
82288
|
};
|
|
82338
82289
|
|
|
82339
82290
|
var TabletDrilldown = function (_a) {
|
|
@@ -82596,12 +82547,12 @@ var ProcessGraphData = React__default.memo(function (_a) {
|
|
|
82596
82547
|
enabled: isHistoricalQueryView || (anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.category) === AnomalyCategory.SQL
|
|
82597
82548
|
}), universeQueryStatsLoading = _4.isLoading, universeQueryStatsError = _4.isError;
|
|
82598
82549
|
if (universeQueryStatsLoading) {
|
|
82599
|
-
return (jsx(Box$1,
|
|
82550
|
+
return (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) }));
|
|
82600
82551
|
}
|
|
82601
82552
|
if (universeQueryStatsError &&
|
|
82602
82553
|
isHistoricalQueryView &&
|
|
82603
82554
|
(anomalyData === null || anomalyData === void 0 ? void 0 : anomalyData.category) === AnomalyCategory.SQL) {
|
|
82604
|
-
return (jsxs(Box$1,
|
|
82555
|
+
return (jsxs(Box$1, { mt: 3, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: DEFAULT_ERROR_MESSAGES.QUERY_STATS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: DEFAULT_ERROR_MESSAGES.QUERY_STATS_FETCH_ERROR }))] }));
|
|
82605
82556
|
}
|
|
82606
82557
|
var queryId = urlParams === null || urlParams === void 0 ? void 0 : urlParams.queryId;
|
|
82607
82558
|
var selectedQueryId = isHistoricalQueryView ? queryId : queryId === null || queryId === void 0 ? void 0 : queryId[0];
|
|
@@ -82610,19 +82561,19 @@ var ProcessGraphData = React__default.memo(function (_a) {
|
|
|
82610
82561
|
var queryObject = universeQueryStatsData === null || universeQueryStatsData === void 0 ? void 0 : universeQueryStatsData.find(function (data) {
|
|
82611
82562
|
return data.queryId === selectedQueryId;
|
|
82612
82563
|
});
|
|
82613
|
-
return (jsxs(Box$1,
|
|
82564
|
+
return (jsxs(Box$1, { style: { height: '100vh', display: 'flex', flexDirection: 'column' }, children: [jsx(BreadCrumbsHeader, { appName: appName, queryObject: queryObject,
|
|
82614
82565
|
// Refers to query view from Overall load queries not overall load ->anomalies -> sql ->query
|
|
82615
82566
|
isHistoricalQueryView: isHistoricalQueryView, anomalyData: isNonEmptyObject(anomalyGroupData) ? anomalyGroupData : null, onSelectedIssue: isNonEmptyObject(anomalyData) ? onSelectedIssue : undefined, onSelectedQuery: onSelectedQuery, showDetails: showDetails, onShowDetails: onShowDetails, onNavigateToUrl: onNavigateToUrl }), (((_c = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _c === void 0 ? void 0 : _c.category) === AnomalyCategory.SQL ||
|
|
82616
|
-
isHistoricalQueryView) && (jsx(YBTabs,
|
|
82567
|
+
isHistoricalQueryView) && (jsx(YBTabs, { value: sqlTab, onChange: handleSqlTabChange, children: jsx(YBStyledTab$1, { value: SqlTabs.QUERY_OVERVIEW, label: SqlTabs.QUERY_OVERVIEW }) })), ((_d = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _d === void 0 ? void 0 : _d.category) === AnomalyCategory.DB &&
|
|
82617
82568
|
!isHistoricalQueryView &&
|
|
82618
82569
|
(((_e = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _e === void 0 ? void 0 : _e.type) === AnomalyType.HOT_TABLET ||
|
|
82619
|
-
((_f = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _f === void 0 ? void 0 : _f.type) === AnomalyType.LARGE_TABLET) && (jsx(YBTabs,
|
|
82570
|
+
((_f = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _f === void 0 ? void 0 : _f.type) === AnomalyType.LARGE_TABLET) && (jsx(YBTabs, { value: tabletTab, onChange: handleTabletTabChange, children: jsx(YBStyledTab$1, { value: TabletTabs.TABLET_OVERVIEW, label: TabletTabs.TABLET_OVERVIEW }) })), jsx(MetadataHeader, { universeData: universeData, queryObject: queryObject, isHistoricalQueryView: isHistoricalQueryView, universeQueryStatsData: universeQueryStatsData, anomalyData: isNonEmptyObject(anomalyGroupData) ? anomalyGroupData : null, showDetails: showDetails, onShowDetails: onShowDetails }), jsx(Box$1, { className: clsx(appName === AppName.WEB ? helperClasses.stickyHeader : helperClasses.stickyHeaderYBM), children: jsx(DateSelectorHeader, { appName: appName, filterDuration: filterDuration, startDateTime: dateTimeRange.startDateTime, endDateTime: dateTimeRange.endDateTime, timezone: timezone, onSelectedFilterDuration: onSelectedFilterDuration, metricMeasure: metricMeasure, onStartDateChange: onStartDateChange, onEndDateChange: onEndDateChange, onRefresh: onRefresh }) }), jsxs(Box$1, { style: {
|
|
82620
82571
|
flex: 1,
|
|
82621
82572
|
overflow: 'auto'
|
|
82622
|
-
}
|
|
82573
|
+
}, children: [isHistoricalQueryView && (jsxs(Fragment, { children: [jsx(GenericHeader, { appName: appName, universeData: universeData, anomalyData: null, clusterRegionItem: clusterRegionItem, zoneNodeItem: zoneNodeItem, isPrimaryCluster: isPrimaryCluster, cluster: cluster, region: region, metricMeasure: metricMeasure, outlierType: outlierType, numNodes: numNodes, onZoneNodeSelected: onZoneNodeSelected, onClusterRegionSelected: onClusterRegionSelected, onOutlierTypeSelected: onOutlierTypeSelected, onSplitTypeSelected: onSplitTypeSelected, onNumNodesChanged: onNumNodesChanged }), jsx(SqlDrilldown, { urlParams: urlParams, anomalyData: null, getClusterDetails: getClusterDetails, metricMeasure: metricMeasure, apiUrl: apiUrl, appName: appName, timezone: timezone, sqlTab: sqlTab, dateTimeRange: dateTimeRange, universeQueryStatsData: universeQueryStatsData, amomalyGraphRequestParams: null, formattedAnomalyRca: null, onEChartsDateSelect: onEChartsDateSelect })] })), isNonEmptyObject(anomalyGroupData) && !isHistoricalQueryView && (jsxs(Fragment, { children: [!(((_g = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _g === void 0 ? void 0 : _g.category) === AnomalyCategory.APP ||
|
|
82623
82574
|
(((_h = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _h === void 0 ? void 0 : _h.category) === AnomalyCategory.NODE &&
|
|
82624
82575
|
((_j = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _j === void 0 ? void 0 : _j.type) !== AnomalyType.SLOW_DISKS)) && (jsx(GenericHeader, { appName: appName, universeData: universeData, anomalyData: anomalyGroupData, clusterRegionItem: clusterRegionItem, zoneNodeItem: zoneNodeItem, isPrimaryCluster: isPrimaryCluster, cluster: cluster, region: region, metricMeasure: metricMeasure, outlierType: outlierType, numNodes: numNodes, showSplitSelector: ((_k = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _k === void 0 ? void 0 : _k.type) !== AnomalyType.LARGE_TABLET &&
|
|
82625
|
-
((_l = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _l === void 0 ? void 0 : _l.type) !== AnomalyType.HOT_TABLET, onZoneNodeSelected: onZoneNodeSelected, onClusterRegionSelected: onClusterRegionSelected, onOutlierTypeSelected: onOutlierTypeSelected, onSplitTypeSelected: onSplitTypeSelected, onNumNodesChanged: onNumNodesChanged })), jsx(AnomalyRouter, { metricMeasure: metricMeasure, appName: appName, dateTimeRange: dateTimeRange, timezone: timezone, universeQueryStatsData: universeQueryStatsData, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, apiUrl: apiUrl, anomalyData: anomalyGroupData, gantChartData: gantChartData, tabletTab: tabletTab, sqlTab: sqlTab, onEChartsDateSelect: onEChartsDateSelect, onSelectedIssue: onSelectedIssue, onSelectedQuery: onSelectedQuery, urlParams: urlParams, getClusterDetails: getClusterDetails, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, onNavigateToUrl: onNavigateToUrl })] }))] })
|
|
82576
|
+
((_l = anomalyGroupData === null || anomalyGroupData === void 0 ? void 0 : anomalyGroupData.lastInstance) === null || _l === void 0 ? void 0 : _l.type) !== AnomalyType.HOT_TABLET, onZoneNodeSelected: onZoneNodeSelected, onClusterRegionSelected: onClusterRegionSelected, onOutlierTypeSelected: onOutlierTypeSelected, onSplitTypeSelected: onSplitTypeSelected, onNumNodesChanged: onNumNodesChanged })), jsx(AnomalyRouter, { metricMeasure: metricMeasure, appName: appName, dateTimeRange: dateTimeRange, timezone: timezone, universeQueryStatsData: universeQueryStatsData, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, apiUrl: apiUrl, anomalyData: anomalyGroupData, gantChartData: gantChartData, tabletTab: tabletTab, sqlTab: sqlTab, onEChartsDateSelect: onEChartsDateSelect, onSelectedIssue: onSelectedIssue, onSelectedQuery: onSelectedQuery, urlParams: urlParams, getClusterDetails: getClusterDetails, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, onNavigateToUrl: onNavigateToUrl })] }))] })] }));
|
|
82626
82577
|
});
|
|
82627
82578
|
|
|
82628
82579
|
var MetricsAnalysisEntry = function (_a) {
|
|
@@ -82666,16 +82617,16 @@ var MetricsAnalysisEntry = function (_a) {
|
|
|
82666
82617
|
enabled: isNonEmptyString(troubleshootUuid)
|
|
82667
82618
|
}), isLoading = _h.isLoading, isError = _h.isError, isIdle = _h.isIdle;
|
|
82668
82619
|
if (isLoading) {
|
|
82669
|
-
return (jsx(Box$1,
|
|
82620
|
+
return (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) }));
|
|
82670
82621
|
}
|
|
82671
82622
|
if (isError || universeDataFetchError || (isIdle && userSelectedAnomaly === undefined)) {
|
|
82672
|
-
return (jsxs(Box$1,
|
|
82623
|
+
return (jsxs(Box$1, { mt: 3, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isError
|
|
82673
82624
|
? DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR
|
|
82674
82625
|
: DEFAULT_ERROR_MESSAGES.QUERY_STATS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isError
|
|
82675
82626
|
? DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR
|
|
82676
|
-
: DEFAULT_ERROR_MESSAGES.QUERY_STATS_FETCH_ERROR }))] }))
|
|
82627
|
+
: DEFAULT_ERROR_MESSAGES.QUERY_STATS_FETCH_ERROR }))] }));
|
|
82677
82628
|
}
|
|
82678
|
-
return (jsx(YBThemeWrapper,
|
|
82629
|
+
return (jsx(YBThemeWrapper, { appName: appName, children: jsx(Box$1, { className: clsx(appName !== AppName.WEB && helperClasses.headerContainerYBM), children: (universeDataFetch === null || universeDataFetch === void 0 ? void 0 : universeDataFetch.data) && (jsx(ProcessGraphData, { apiUrl: apiUrl, troubleshootUuid: troubleshootUuid, anomalyData: userSelectedAnomaly, universeData: universeDataFetch === null || universeDataFetch === void 0 ? void 0 : universeDataFetch.data, universeUuid: universeUuid, appName: appName, timezone: timezone, isHistoricalQueryView: isHistoricalQueryView, amomalyGraphRequestParams: amomalyGraphRequestParams, formattedAnomalyRca: formattedAnomalyRca, dbIdParam: dbIdParam, queryIdParam: queryIdParam, onSelectedIssue: onSelectedIssue, onSelectedQuery: onSelectedQuery, onNavigateToUrl: onNavigateToUrl })) }) }));
|
|
82679
82630
|
};
|
|
82680
82631
|
|
|
82681
82632
|
var YSQL_COLUMNS = {
|
|
@@ -82893,7 +82844,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
82893
82844
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82894
82845
|
}); },
|
|
82895
82846
|
customHeadRender: function () {
|
|
82896
|
-
return (jsx(YBTooltip,
|
|
82847
|
+
return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_EPS_RATIO_QUERY_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.TOTAL_EPS_RATIO }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
82897
82848
|
},
|
|
82898
82849
|
customBodyRender: function (value) {
|
|
82899
82850
|
return Number.isFinite(Number(value))
|
|
@@ -82914,7 +82865,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
82914
82865
|
},
|
|
82915
82866
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82916
82867
|
}); },
|
|
82917
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82868
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ACTIVE_SESSIONS_PER_SECOND_QUERY_TOOLTIP, placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.EPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82918
82869
|
customBodyRender: function (value) {
|
|
82919
82870
|
return Number(value) ? Number(value).toLocaleString() : '0.0';
|
|
82920
82871
|
}
|
|
@@ -82946,7 +82897,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
82946
82897
|
overflow: 'visible'
|
|
82947
82898
|
}
|
|
82948
82899
|
}); },
|
|
82949
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82900
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.EVENTS_QUERY_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.EVENTS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82950
82901
|
customBodyRender: function (value) { return (jsx(QueryEventsChart, { data: value !== null && value !== void 0 ? value : [], maxEPS: maxEPS, groupByOperation: groupByOperation })); }
|
|
82951
82902
|
}
|
|
82952
82903
|
},
|
|
@@ -82969,10 +82920,10 @@ var HistoricalQueryData = function (_a) {
|
|
|
82969
82920
|
return false;
|
|
82970
82921
|
}
|
|
82971
82922
|
}); },
|
|
82972
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82923
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.QUERY_TEXT_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.QUERY }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82973
82924
|
customBodyRender: function (value, tableMeta) {
|
|
82974
82925
|
var rowIndex = tableMeta.rowIndex;
|
|
82975
|
-
return (jsx(YBTooltip,
|
|
82926
|
+
return (jsx(YBTooltip, { title: value, placement: "top", arrow: true, children: jsx(Box$1, { onClick: handleCodeBlockClick, className: codeBlockClasses.queryCellBox, children: jsx(YBCodeBlock, { lang: "sql", text: value, maxWidth: 500, showBorder: true, showCopyButton: true, singleLineEllipsis: true, enabledExpandCollapse: false, preClassName: codeBlockClasses.preClassNameInTable, codeClassName: codeBlockClasses.codeClassNameInTable, containerClassName: codeBlockClasses.queryContainerCodeInTable }, "TableHelperQueries-".concat(currentTablePage, "-").concat(rowIndex)) }) }));
|
|
82976
82927
|
}
|
|
82977
82928
|
}
|
|
82978
82929
|
},
|
|
@@ -82989,7 +82940,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
82989
82940
|
},
|
|
82990
82941
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
82991
82942
|
}); },
|
|
82992
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82943
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.DATABASE_NAME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.NAMESPACE_NAME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
82993
82944
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
82994
82945
|
}
|
|
82995
82946
|
},
|
|
@@ -83005,7 +82956,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83005
82956
|
},
|
|
83006
82957
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83007
82958
|
}); },
|
|
83008
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82959
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.FIRST_ACTIVE_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.FIRST_ACTIVE_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83009
82960
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
83010
82961
|
}
|
|
83011
82962
|
},
|
|
@@ -83021,7 +82972,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83021
82972
|
},
|
|
83022
82973
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83023
82974
|
}); },
|
|
83024
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82975
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LAST_ACTIVE_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LAST_ACTIVE_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83025
82976
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
83026
82977
|
}
|
|
83027
82978
|
},
|
|
@@ -83037,7 +82988,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83037
82988
|
},
|
|
83038
82989
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83039
82990
|
}); },
|
|
83040
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
82991
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.AVG_LATENCY_TOOLTIP, arrow: true, placement: "top", children: jsx(Box$1, { className: helperClasses.headerBox, children: jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.AVG_LATENCY }) }) })); },
|
|
83041
82992
|
customBodyRender: function (value) {
|
|
83042
82993
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
83043
82994
|
}
|
|
@@ -83055,7 +83006,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83055
83006
|
},
|
|
83056
83007
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83057
83008
|
}); },
|
|
83058
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83009
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LATENCY_P90_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LATENCY_P90 }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83059
83010
|
customBodyRender: function (value) {
|
|
83060
83011
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
83061
83012
|
}
|
|
@@ -83073,7 +83024,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83073
83024
|
},
|
|
83074
83025
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83075
83026
|
}); },
|
|
83076
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83027
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.LATENCY_P99_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.LATENCY_P99 }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83077
83028
|
customBodyRender: function (value) {
|
|
83078
83029
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
83079
83030
|
}
|
|
@@ -83096,7 +83047,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83096
83047
|
return false;
|
|
83097
83048
|
}
|
|
83098
83049
|
}); },
|
|
83099
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83050
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.QUERY_TYPE_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.QUERY_TYPE }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83100
83051
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
83101
83052
|
}
|
|
83102
83053
|
},
|
|
@@ -83113,7 +83064,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83113
83064
|
},
|
|
83114
83065
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83115
83066
|
}); },
|
|
83116
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83067
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.TOTAL_TIME_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.TOTAL_TIME }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83117
83068
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
83118
83069
|
}
|
|
83119
83070
|
},
|
|
@@ -83129,7 +83080,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83129
83080
|
},
|
|
83130
83081
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83131
83082
|
}); },
|
|
83132
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83083
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.ROWS_AVG_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.ROWS_AVG }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83133
83084
|
customBodyRender: function (value) {
|
|
83134
83085
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
83135
83086
|
}
|
|
@@ -83147,7 +83098,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83147
83098
|
},
|
|
83148
83099
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
83149
83100
|
}); },
|
|
83150
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
83101
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.RPS_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: HISTORICAL_QUERY_DATA_LABELS.RPS }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
83151
83102
|
customBodyRender: function (value) {
|
|
83152
83103
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
83153
83104
|
}
|
|
@@ -83227,10 +83178,10 @@ var HistoricalQueryData = function (_a) {
|
|
|
83227
83178
|
YSQL_COLUMNS.QUERY_ID,
|
|
83228
83179
|
YSQL_COLUMNS.UNIVERSE_ID,
|
|
83229
83180
|
YSQL_COLUMNS.QUERY
|
|
83230
|
-
], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1,
|
|
83181
|
+
], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal })), jsxs(Box$1, { mt: 1, mb: 2, className: helperClasses.dataBox, children: [jsxs(Box$1, { display: 'flex', flexDirection: 'column', children: [jsx(Box$1, { mb: 2, children: jsx(Typography$1, { variant: "h5", children: 'Queries' }) }), jsxs(Box$1, { className: helperClasses.filterContainer, children: [jsxs(Box$1, { className: helperClasses.filterLeftContainer, children: [jsxs(YBSelect, { label: "", value: database, dataTestId: "HistoricalQueryData-DatabaseSelect", className: helperClasses.ybOverrideMuiSelect, onChange: function (e) {
|
|
83231
83182
|
setCurrentTablePage(0);
|
|
83232
83183
|
setDatabase(e.target.value);
|
|
83233
|
-
}, menuProps: { PaperProps: { style: { maxHeight: '300px' } } }
|
|
83184
|
+
}, menuProps: { PaperProps: { style: { maxHeight: '300px' } } }, children: [jsx(MenuItem$1, { value: ALL, "data-testid": "HistoricalQueryData-".concat(ALL), children: jsx("span", { children: MetricConsts.ALL_DATABASES }) }, ALL), databaseList.map(function (dbName) { return (jsx(MenuItem$1, { value: dbName, "data-testid": "HistoricalQueryData-".concat(dbName), children: jsx("span", { children: dbName }) }, dbName)); })] }), jsx(YBSelect, { label: "", value: queryTypeFilter, dataTestId: "HistoricalQueryData-QueryTypeSelect", className: helperClasses.ybOverrideMuiSelect, onChange: function (e) {
|
|
83234
83185
|
setCurrentTablePage(0);
|
|
83235
83186
|
if (e.target.value === QUERY_FILTER_OPTIONS.SHOW_ALL) {
|
|
83236
83187
|
setQueryType(null);
|
|
@@ -83245,30 +83196,30 @@ var HistoricalQueryData = function (_a) {
|
|
|
83245
83196
|
setQueryType(QueryType.BACKGROUND);
|
|
83246
83197
|
}
|
|
83247
83198
|
setQueryTypeFilter(e.target.value);
|
|
83248
|
-
}, menuProps: { PaperProps: { style: { maxHeight: '300px' } } }
|
|
83199
|
+
}, menuProps: { PaperProps: { style: { maxHeight: '300px' } } }, children: Object.entries(QUERY_FILTER_OPTIONS).map(function (_a) {
|
|
83249
83200
|
var key = _a[0], value = _a[1];
|
|
83250
|
-
return (jsx(MenuItem$1,
|
|
83251
|
-
}) })
|
|
83201
|
+
return (jsx(MenuItem$1, { value: value, "data-testid": "HistoricalQueryData-".concat(value), children: jsx("span", { children: value }) }, key));
|
|
83202
|
+
}) }), jsx(YBInput, { dataTestId: "HistoricalQueryData-SearchInput", placeholder: 'Filter Queries', className: helperClasses.ybSearchInput, onChange: function (e) {
|
|
83252
83203
|
var value = e.target.value;
|
|
83253
83204
|
setSearchInputValue(value);
|
|
83254
83205
|
debouncedSearchHandlerRef.current(value);
|
|
83255
83206
|
}, value: searchInputValue, inputProps: {
|
|
83256
83207
|
'data-testid': 'HistoricalQueryData-SearchInput'
|
|
83257
83208
|
}, InputProps: {
|
|
83258
|
-
startAdornment: (jsx(InputAdornment,
|
|
83259
|
-
endAdornment: !!searchInputValue && (jsx(InputAdornment,
|
|
83209
|
+
startAdornment: (jsx(InputAdornment, { position: "start", children: jsx(SvgSearch, {}) })),
|
|
83210
|
+
endAdornment: !!searchInputValue && (jsx(InputAdornment, { position: "end", children: jsx(IconButton, { size: "small", onClick: function () {
|
|
83260
83211
|
debouncedSearchHandlerRef.current.cancel();
|
|
83261
83212
|
setSearchInput('');
|
|
83262
83213
|
setSearchInputValue('');
|
|
83263
83214
|
setCurrentTablePage(0);
|
|
83264
|
-
}, "data-testid": "HistoricalQueryData-ClearButton"
|
|
83265
|
-
} })] })
|
|
83215
|
+
}, "data-testid": "HistoricalQueryData-ClearButton", children: jsx(Clear, { fontSize: "small" }) }) }))
|
|
83216
|
+
} })] }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, { style: { marginBottom: '2px' } }), onClick: openSelectionModal, dataTestId: "HistoricalQueryData-AddFieldsButton", children: ADD_COLUMNS_BUTTON_TEXT })] })] }), jsxs(Box$1, { className: appName === AppName.YBM
|
|
83266
83217
|
? helperClasses.overrideMuiTableContainer
|
|
83267
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
83218
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [(isQueryDataFetchError || isDBFetchError) && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_d = (_c = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error)
|
|
83268
83219
|
? (_f = (_e = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error
|
|
83269
83220
|
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_h = (_g = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error)
|
|
83270
83221
|
? (_k = (_j = historicalQueryDataError === null || historicalQueryDataError === void 0 ? void 0 : historicalQueryDataError.response) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.error
|
|
83271
|
-
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] }))
|
|
83222
|
+
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] })), jsx(YBTable, { id: 'HistoricalQueryData', className: helperClasses.overrideMuiTable, data: historicalQueryData !== null && historicalQueryData !== void 0 ? historicalQueryData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isQueryCallLoading, options: {
|
|
83272
83223
|
sort: true,
|
|
83273
83224
|
filter: true,
|
|
83274
83225
|
count: totalSize,
|
|
@@ -83310,7 +83261,7 @@ var HistoricalQueryData = function (_a) {
|
|
|
83310
83261
|
customFooter: customFooter,
|
|
83311
83262
|
manualSorting: true,
|
|
83312
83263
|
state: tableState
|
|
83313
|
-
} }, "HistoricalQueryData-".concat(sortBy, "-").concat(sortDirection))] })
|
|
83264
|
+
} }, "HistoricalQueryData-".concat(sortBy, "-").concat(sortDirection))] })] })] }));
|
|
83314
83265
|
};
|
|
83315
83266
|
|
|
83316
83267
|
var useStyles$b = makeStyles$1(function (theme) { return ({
|
|
@@ -83458,21 +83409,21 @@ var MetricsSelectorDrawer = function (_a) {
|
|
|
83458
83409
|
onSubmit(selectedMetrics);
|
|
83459
83410
|
onClose();
|
|
83460
83411
|
};
|
|
83461
|
-
return (jsx(YBModal,
|
|
83412
|
+
return (jsx(YBModal, { open: open, isSidePanel: true, title: 'Add and Remove Charts', onClose: onClose, enableBackdropDismiss: true, titleSeparator: true, dialogContentProps: {
|
|
83462
83413
|
style: {
|
|
83463
83414
|
padding: 0
|
|
83464
83415
|
}
|
|
83465
|
-
}, onSubmit: handleApply, submitLabel: 'Apply', submitTestId: "btnApplyMetricsSelection", cancelLabel: 'Cancel', cancelTestId: "btnCloseMetricsSelection"
|
|
83466
|
-
startAdornment: (jsx(InputAdornment,
|
|
83416
|
+
}, onSubmit: handleApply, submitLabel: 'Apply', submitTestId: "btnApplyMetricsSelection", cancelLabel: 'Cancel', cancelTestId: "btnCloseMetricsSelection", children: jsxs(Box$1, { children: [jsx(Box$1, { className: classes.search, children: jsx(YBInput, { fullWidth: true, placeholder: 'Search', value: searchInput, InputProps: {
|
|
83417
|
+
startAdornment: (jsx(InputAdornment, { position: "end", children: jsx(SvgSearch, {}) }))
|
|
83467
83418
|
}, onChange: function (event) {
|
|
83468
83419
|
setSearchInput(event.target.value);
|
|
83469
|
-
}, dataTestId: "MetricsSelectionSearch", className: classes.searchInput }) })
|
|
83420
|
+
}, dataTestId: "MetricsSelectionSearch", className: classes.searchInput }) }), noResult ? (jsx(Box$1, { textAlign: "center", mt: 3, "data-testid": "MetricsSelectionNoResult", children: jsx(Typography$1, { variant: "body2", children: 'No results returned' }) })) : (jsx(Box$1, { className: classes.container, children: filteredResources.map(function (filteredMetricResource) {
|
|
83470
83421
|
if (!filteredMetricResource.metrics.length)
|
|
83471
83422
|
return null;
|
|
83472
83423
|
var isExpanded = expandedGroups[filteredMetricResource.name] || !!searchInput;
|
|
83473
|
-
return (jsxs(Box$1,
|
|
83474
|
-
filteredMetric, dataTestId: "MetricsSelectionCheckbox-".concat(filteredMetric), checked: !!selectedMetrics[filteredMetric], onChange: function () { return handleCheckboxChange(filteredMetric); }, className: classes.checkbox }) }
|
|
83475
|
-
}) }))
|
|
83424
|
+
return (jsxs(Box$1, { className: classes.group, children: [jsxs(Box$1, { className: classes.groupHeader, onClick: function () { return toggleGroup(filteredMetricResource.name); }, children: [jsx(Box$1, { display: "flex", alignItems: "center", children: jsx(Typography$1, { variant: "body1", children: filteredMetricResource.title }) }), jsx(ExpandMoreIcon, { className: clsx(isExpanded && classes.iconRotate) })] }), jsx(Collapse, { in: isExpanded, children: jsx(Box$1, { className: classes.itemsContainer, children: filteredMetricResource.metrics.map(function (filteredMetric) { return (jsx(Box$1, { className: clsx(classes.item), children: jsx(YBCheckbox, { name: "".concat(filteredMetricResource.name, ".").concat(filteredMetric), label: METRIC_NAMES[filteredMetric] ||
|
|
83425
|
+
filteredMetric, dataTestId: "MetricsSelectionCheckbox-".concat(filteredMetric), checked: !!selectedMetrics[filteredMetric], onChange: function () { return handleCheckboxChange(filteredMetric); }, className: classes.checkbox }) }, filteredMetric)); }) }) })] }, filteredMetricResource.name));
|
|
83426
|
+
}) }))] }) }));
|
|
83476
83427
|
};
|
|
83477
83428
|
|
|
83478
83429
|
var METRICS_TAB_URL_PARAM = 'metricsTab';
|
|
@@ -83620,9 +83571,9 @@ var TopKMetricsView = function (_a) {
|
|
|
83620
83571
|
disconnect(chartInstancesRef.current);
|
|
83621
83572
|
};
|
|
83622
83573
|
}, [fetchMetricsData.isSuccess, metricsResponseData]);
|
|
83623
|
-
return (jsxs(Box$1,
|
|
83574
|
+
return (jsxs(Box$1, { mt: 2, mb: 2, className: classes.metricsBox, children: [jsx(Box$1, { display: "flex", alignItems: "center", children: jsxs(YBTabs, { value: metricsTab, onChange: handleTabChange, "aria-label": "metric tabs", indicatorColor: "primary", textColor: "primary", variant: "scrollable" // Makes tabs scrollable
|
|
83624
83575
|
, scrollButtons: "auto" // Automatically shows scroll buttons when needed
|
|
83625
|
-
, className: classes.ybTabs
|
|
83576
|
+
, className: classes.ybTabs, children: [(metricMeasure === MetricMeasure.OVERALL || metricMeasure === MetricMeasure.OUTLIER) &&
|
|
83626
83577
|
METRIC_TABS.map(function (tab, index) {
|
|
83627
83578
|
var _a;
|
|
83628
83579
|
return (jsx(YBTab, { value: index, label: (_a = METRIC_RESOURCES_WITH_GRAPHS === null || METRIC_RESOURCES_WITH_GRAPHS === void 0 ? void 0 : METRIC_RESOURCES_WITH_GRAPHS.find(function (metric) { return tab === metric.name; })) === null || _a === void 0 ? void 0 : _a.title, className: classes.causeTabButton }, tab));
|
|
@@ -83634,29 +83585,29 @@ var TopKMetricsView = function (_a) {
|
|
|
83634
83585
|
METRIC_TABS_DATABASES.map(function (tab, index) {
|
|
83635
83586
|
var _a;
|
|
83636
83587
|
return (jsx(YBTab, { value: index, label: (_a = METRIC_DB_RESOURCES_WITH_GRAPHS === null || METRIC_DB_RESOURCES_WITH_GRAPHS === void 0 ? void 0 : METRIC_DB_RESOURCES_WITH_GRAPHS.find(function (metric) { return tab === metric.name; })) === null || _a === void 0 ? void 0 : _a.title, className: classes.causeTabButton }, tab));
|
|
83637
|
-
})] })
|
|
83588
|
+
})] }) }), jsx(Box$1, { className: classes.secondRow, children: jsx(YBButton, { variant: 'ghost', startIcon: jsx(SvgPlus, {}), size: "medium", onClick: openSelectionModal, dataTestId: "GenericHeader-AddChartsButton", children: 'Add and Remove Charts' }) }), fetchMetricsData.isLoading && (jsx(Box$1, { mt: 2, className: classes.loadingBox, children: jsx(SvgLoading, { className: clsx(classes.icon, classes.inProgressIcon) }) })), fetchMetricsData.isError && (jsxs(Box$1, { mt: 4, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchMetricsGraphsErrorMessage)
|
|
83638
83589
|
? fetchMetricsGraphsErrorMessage
|
|
83639
83590
|
: DEFAULT_ERROR_MESSAGES.METRICS_GRAPHS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchMetricsGraphsErrorMessage)
|
|
83640
83591
|
? fetchMetricsGraphsErrorMessage
|
|
83641
|
-
: DEFAULT_ERROR_MESSAGES.METRICS_GRAPHS_FETCH_ERROR }))] }))
|
|
83592
|
+
: DEFAULT_ERROR_MESSAGES.METRICS_GRAPHS_FETCH_ERROR }))] })), fetchMetricsData.isSuccess && (jsx(Box$1, { className: clsx(classes.gridBox, classes.gridBoxDouble), children: metricsResponseData === null || metricsResponseData === void 0 ? void 0 : metricsResponseData.map(function (metricData, index) {
|
|
83642
83593
|
if (isNonEmptyString(metricData === null || metricData === void 0 ? void 0 : metricData.errorMessage)) {
|
|
83643
83594
|
return jsx(Box$1, {});
|
|
83644
83595
|
}
|
|
83645
83596
|
else {
|
|
83646
83597
|
var operations = getOperations(metricMeasure, metricData, GraphType.MULTI_SUPPORTING, true, [], true);
|
|
83647
|
-
return (jsx(Box$1,
|
|
83598
|
+
return (jsx(Box$1, { style: {
|
|
83648
83599
|
border: '1px solid #E9EEF2',
|
|
83649
83600
|
borderRadius: '8px'
|
|
83650
|
-
}
|
|
83601
|
+
}, children: jsx(Box$1, { children: jsx(GraphView, { metricData: metricData, metricKey: metricData.name, containerWidth: null, metricMeasure: metricMeasure, operations: metricMeasure === MetricMeasure.OVERALL ? [] : operations.uniqueOperations, registerChartInstance: function (instance) {
|
|
83651
83602
|
return registerChartInstance(instance, index);
|
|
83652
|
-
}, graphType: GraphType.MULTI_SUPPORTING, dateTimeRange: dateTimeRange, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, isHistoricalQueryView: false, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricData.name, "-").concat(metricMeasure)) }, "TopKMetricsView-".concat(index)) }))
|
|
83603
|
+
}, graphType: GraphType.MULTI_SUPPORTING, dateTimeRange: dateTimeRange, groupByOperations: operations.groupByOperations, appName: appName, timezone: timezone, isHistoricalQueryView: false, onEChartsDateSelect: onEChartsDateSelect, showTitle: true }, "".concat(metricData.name, "-").concat(metricMeasure)) }, "TopKMetricsView-".concat(index)) }));
|
|
83653
83604
|
}
|
|
83654
|
-
}) }))
|
|
83605
|
+
}) })), isMetricsDrawerOpen && (jsx(MetricsSelectorDrawer, { onSubmit: handleFilterMetrics, metricResources: metricMeasure === MetricMeasure.OUTLIER_TABLES ||
|
|
83655
83606
|
metricMeasure === MetricMeasure.OUTLIER_DB
|
|
83656
83607
|
? metricMeasure === MetricMeasure.OUTLIER_TABLES
|
|
83657
83608
|
? METRIC_TABLES_RESOURCES_WITH_GRAPHS
|
|
83658
83609
|
: METRIC_DB_RESOURCES_WITH_GRAPHS
|
|
83659
|
-
: METRIC_RESOURCES_WITH_GRAPHS, open: isMetricsDrawerOpen, onClose: closeSelectionModal, selectedTabIndex: metricsTab, metricMeasure: metricMeasure }))] }))
|
|
83610
|
+
: METRIC_RESOURCES_WITH_GRAPHS, open: isMetricsDrawerOpen, onClose: closeSelectionModal, selectedTabIndex: metricsTab, metricMeasure: metricMeasure }))] }));
|
|
83660
83611
|
};
|
|
83661
83612
|
|
|
83662
83613
|
var ProcessTopKData = React__default.memo(function (_a) {
|
|
@@ -85096,16 +85047,16 @@ var DetectedAnomalies = function (_a) {
|
|
|
85096
85047
|
var handleAccordionChange = function (_event, expanded) {
|
|
85097
85048
|
setIsAccordionExpanded(expanded);
|
|
85098
85049
|
};
|
|
85099
|
-
return (jsxs(Accordion,
|
|
85050
|
+
return (jsxs(Accordion, { expanded: isAccordionExpanded, className: classes.accordion, onChange: handleAccordionChange, children: [jsx(AccordionSummary, { className: clsx(classes.accordionSummary, !isAccordionExpanded && classes.accordionSummaryCollapsed), expandIcon: jsx("img", { src: ArrowDownwardIcon, className: classes.expandIcon, alt: isAccordionExpanded ? 'Collapse' : 'Expand' }), children: jsx(Typography$1, { variant: "body2", className: classes.headerTitle, children: currentTab === InsightsTabs.INSIGHTS ? 'Insights' : 'Detected Anomalies' }) }), jsxs(AccordionDetails, { className: classes.accordionDetails, children: [jsxs(Box$1, { className: classes.runDetectionButtonContainer, children: [jsx(YBButton, { variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx("img", { src: !expandAll ? ExpandIcon : CollapseIcon, alt: "Expand Icon" }), onClick: handleExpandAll, dataTestId: "expand-all-button", children: jsx("span", { className: classes.expandAllButton, children: !expandAll ? 'Expand All' : 'Collapse All' }) }), jsx(YBButton, { variant: "primary", size: 'medium', dataTestId: "run-detection-button", onClick: function () {
|
|
85100
85051
|
scheduleAnomalyDetectionStatus.mutate();
|
|
85101
85052
|
}, disabled: anomalyDetectionStatus === AnomalyDetectionStatusText.SCHEDULED ||
|
|
85102
85053
|
anomalyDetectionStatus === AnomalyDetectionStatusText.IN_PROGRESS, showSpinner: anomalyDetectionStatus === AnomalyDetectionStatusText.SCHEDULED ||
|
|
85103
|
-
anomalyDetectionStatus === AnomalyDetectionStatusText.IN_PROGRESS, startIcon: jsx("img", { src: ScanIcon, alt: "Detection Icon" })
|
|
85054
|
+
anomalyDetectionStatus === AnomalyDetectionStatusText.IN_PROGRESS, startIcon: jsx("img", { src: ScanIcon, alt: "Detection Icon" }), children: 'Run Detection' })] }), fetchAnomalyGroups.isLoading && (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) })), fetchAnomalyGroups.isError && (jsxs(Box$1, { mt: 2, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: anomalyGroupsFetchError && isNonEmptyString(anomalyGroupsFetchError)
|
|
85104
85055
|
? anomalyGroupsFetchError
|
|
85105
85056
|
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: anomalyGroupsFetchError && isNonEmptyString(anomalyGroupsFetchError)
|
|
85106
85057
|
? anomalyGroupsFetchError
|
|
85107
|
-
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR }))] }))
|
|
85108
|
-
(isNonEmptyObject(anomalyGroups === null || anomalyGroups === void 0 ? void 0 : anomalyGroups.groups) ? (jsx(PerfAdvisorGantChart, { name: "gant-chart-insights", sourceData: anomalyGroups !== null && anomalyGroups !== void 0 ? anomalyGroups : [], expandAll: expandAll, showMoreOptions: true, onClickShowMoreAnomalies: onClickShowMoreAnomalies, startTime: (_b = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _b !== void 0 ? _b : null, endTime: (_c = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _c !== void 0 ? _c : null, onSelectedIssue: onSelectedIssue, appName: appName, currentTab: currentTab, isInsightsTab: currentTab === InsightsTabs.INSIGHTS, onNavigateToUrl: onNavigateToUrl }, "gant-chart-insights")) : (jsx(Box$1,
|
|
85058
|
+
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR }))] })), fetchAnomalyGroups.isSuccess &&
|
|
85059
|
+
(isNonEmptyObject(anomalyGroups === null || anomalyGroups === void 0 ? void 0 : anomalyGroups.groups) ? (jsx(PerfAdvisorGantChart, { name: "gant-chart-insights", sourceData: anomalyGroups !== null && anomalyGroups !== void 0 ? anomalyGroups : [], expandAll: expandAll, showMoreOptions: true, onClickShowMoreAnomalies: onClickShowMoreAnomalies, startTime: (_b = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _b !== void 0 ? _b : null, endTime: (_c = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _c !== void 0 ? _c : null, onSelectedIssue: onSelectedIssue, appName: appName, currentTab: currentTab, isInsightsTab: currentTab === InsightsTabs.INSIGHTS, onNavigateToUrl: onNavigateToUrl }, "gant-chart-insights")) : (jsx(Box$1, { mt: 2, children: 'No Anomalies were detected' })))] })] }));
|
|
85109
85060
|
};
|
|
85110
85061
|
|
|
85111
85062
|
var useStyles$9 = makeStyles$1(function (theme) { return ({
|
|
@@ -85360,7 +85311,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85360
85311
|
sort: true,
|
|
85361
85312
|
display: true,
|
|
85362
85313
|
customHeadRender: function () {
|
|
85363
|
-
return (jsx(YBTooltip,
|
|
85314
|
+
return (jsx(YBTooltip, { title: 'Name of the database', placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: 'Database' }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
85364
85315
|
},
|
|
85365
85316
|
setCellHeaderProps: function () { return ({
|
|
85366
85317
|
style: {
|
|
@@ -85400,7 +85351,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85400
85351
|
}
|
|
85401
85352
|
}); },
|
|
85402
85353
|
customHeadRender: function () {
|
|
85403
|
-
return (jsx(YBTooltip,
|
|
85354
|
+
return (jsx(YBTooltip, { title: 'The ASH events per second (AAS) filtered for that database.', placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: '# of Connections' }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
85404
85355
|
},
|
|
85405
85356
|
customBodyRender: function (value) {
|
|
85406
85357
|
return Number(value)
|
|
@@ -85434,7 +85385,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85434
85385
|
overflow: 'visible'
|
|
85435
85386
|
}
|
|
85436
85387
|
}); },
|
|
85437
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
85388
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: TOOLTIP_TEXT.WAIT_EVENT_TYPE_CHART_TOOLTIP, arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: "Events" }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
85438
85389
|
customBodyRender: function (value) {
|
|
85439
85390
|
return isNonEmptyArray(value) ? (jsx(QueryEventsChart, { data: value, maxEPS: maxEPS, groupByOperation: WaitEventClassification.WAIT_EVENT_TYPE })) : ('-');
|
|
85440
85391
|
}
|
|
@@ -85457,7 +85408,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85457
85408
|
return false;
|
|
85458
85409
|
}
|
|
85459
85410
|
}); },
|
|
85460
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
85411
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: "Type of database (SQL, CQL or System Level DB)", arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: "Type" }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
85461
85412
|
customBodyRender: function (value) { return (value ? value : '-'); }
|
|
85462
85413
|
}
|
|
85463
85414
|
},
|
|
@@ -85474,7 +85425,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85474
85425
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
85475
85426
|
}); },
|
|
85476
85427
|
customHeadRender: function () {
|
|
85477
|
-
return (jsx(YBTooltip,
|
|
85428
|
+
return (jsx(YBTooltip, { title: 'Rate of CPU active events divided by number of vCPUs', placement: "top", arrow: true, children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: 'CPU %' }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) }));
|
|
85478
85429
|
},
|
|
85479
85430
|
customBodyRender: function (value) {
|
|
85480
85431
|
return Number.isFinite(Number(value))
|
|
@@ -85495,7 +85446,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85495
85446
|
},
|
|
85496
85447
|
className: clsx(helperClasses.tableHeaderCell, appName === AppName.WEB && helperClasses.tableBorder)
|
|
85497
85448
|
}); },
|
|
85498
|
-
customHeadRender: function () { return (jsx(YBTooltip,
|
|
85449
|
+
customHeadRender: function () { return (jsx(YBTooltip, { title: "Sum of calls per second for queries executed in this database", arrow: true, placement: "top", children: jsxs(Box$1, { className: helperClasses.headerBox, children: [jsx(Typography$1, { variant: "body2", className: helperClasses.headerText, children: 'Calls/Sec' }), jsx("img", { src: InfoMessageIcon, alt: "info", className: helperClasses.infoIcon })] }) })); },
|
|
85499
85450
|
customBodyRender: function (value) {
|
|
85500
85451
|
return Number(value) ? Number(value).toLocaleString() : '-';
|
|
85501
85452
|
}
|
|
@@ -85503,7 +85454,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85503
85454
|
}
|
|
85504
85455
|
]);
|
|
85505
85456
|
}, [dbLoadData, maxEPS]);
|
|
85506
|
-
return (jsxs(Fragment, { children: [isDbLoadDataOptionsModalOpen && (jsx(ColumnSelectorDrawer, { appName: appName, hiddenColumns: [DB_METADATA_COLUMNS.UNIVERSE_ID], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal, isDbLoadMetadataColumns: true })), jsxs(Box$1,
|
|
85457
|
+
return (jsxs(Fragment, { children: [isDbLoadDataOptionsModalOpen && (jsx(ColumnSelectorDrawer, { appName: appName, hiddenColumns: [DB_METADATA_COLUMNS.UNIVERSE_ID], columns: columns, onColumnVisibilityChange: handleColumnVisibilityChange, close: closeSelectionModal, isDbLoadMetadataColumns: true })), jsxs(Box$1, { mt: 3, p: 2, className: classes.dbLoadDataContainer, children: [jsx(Box$1, { children: jsx(Typography$1, { variant: "h5", children: "".concat(dbWaitEventType === 'ALL' ? 'Events' : dbWaitEventType, " Load By Database") }) }), jsxs(Box$1, { className: helperClasses.filterContainer, mt: 2, children: [jsxs(Box$1, { className: helperClasses.filterLeftContainer, children: [jsx(YBAutoComplete, { dataTestId: "DbLoadMetadata-DatabaseSelect", size: "medium", className: clsx(helperClasses.ybOverrideMuiSelect), onChange: function (e, option) {
|
|
85507
85458
|
// Handle clear (X icon) - option will be null
|
|
85508
85459
|
if (!option) {
|
|
85509
85460
|
setDatabase(ALL);
|
|
@@ -85539,20 +85490,20 @@ var DbLoadMetadata = function (_a) {
|
|
|
85539
85490
|
}, value: searchInputValue, inputProps: {
|
|
85540
85491
|
'data-testid': 'DbLoadMetadata-SearchInput'
|
|
85541
85492
|
}, InputProps: {
|
|
85542
|
-
startAdornment: (jsx(InputAdornment,
|
|
85543
|
-
endAdornment: !!searchInputValue && (jsx(InputAdornment,
|
|
85493
|
+
startAdornment: (jsx(InputAdornment, { position: "start", children: jsx(SvgSearch, {}) })),
|
|
85494
|
+
endAdornment: !!searchInputValue && (jsx(InputAdornment, { position: "end", children: jsx(IconButton, { size: "small", onClick: function () {
|
|
85544
85495
|
debouncedSearchHandlerRef.current.cancel();
|
|
85545
85496
|
setSearchInput('');
|
|
85546
85497
|
setSearchInputValue('');
|
|
85547
85498
|
setCurrentTablePage(0);
|
|
85548
|
-
}, "data-testid": "DbLoadMetadata-ClearButton"
|
|
85549
|
-
} })] })
|
|
85499
|
+
}, "data-testid": "DbLoadMetadata-ClearButton", children: jsx(Clear, { fontSize: "small" }) }) }))
|
|
85500
|
+
} })] }), jsx(YBButton, { size: 'medium', variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx(SvgPlus, {}), onClick: openSelectionModal, dataTestId: "DbLoadMetadata-AddFieldsButton", children: ADD_COLUMNS_BUTTON_TEXT })] }), jsxs(Box$1, { className: appName === AppName.YBM
|
|
85550
85501
|
? helperClasses.overrideMuiTableContainer
|
|
85551
|
-
: helperClasses.overrideMuiTableContainerWeb
|
|
85502
|
+
: helperClasses.overrideMuiTableContainerWeb, children: [(isDbLoadDataFetchError || isDBFetchError) && (jsxs(Box$1, { mt: 3, className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString((_d = (_c = dbLoadDataError === null || dbLoadDataError === void 0 ? void 0 : dbLoadDataError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error)
|
|
85552
85503
|
? (_f = (_e = dbLoadDataError === null || dbLoadDataError === void 0 ? void 0 : dbLoadDataError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error
|
|
85553
85504
|
: DEFAULT_ERROR_MESSAGES.DB_STATS_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString((_h = (_g = dbLoadDataError === null || dbLoadDataError === void 0 ? void 0 : dbLoadDataError.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error)
|
|
85554
85505
|
? (_k = (_j = dbLoadDataError === null || dbLoadDataError === void 0 ? void 0 : dbLoadDataError.response) === null || _j === void 0 ? void 0 : _j.data) === null || _k === void 0 ? void 0 : _k.error
|
|
85555
|
-
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] }))
|
|
85506
|
+
: DEFAULT_ERROR_MESSAGES.HISTORICAL_QUERY_DATA_FETCH_ERROR }))] })), isDbLoadDataFetchSuccess && (jsx(YBTable, { id: 'DbLoadMetadata', className: helperClasses.overrideMuiTable, data: dbLoadData !== null && dbLoadData !== void 0 ? dbLoadData : [], columns: columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return (_a = column === null || column === void 0 ? void 0 : column.options) === null || _a === void 0 ? void 0 : _a.display; }), isLoading: isDbLoadDataFetching, options: {
|
|
85556
85507
|
enableExpanding: true,
|
|
85557
85508
|
renderDetailPanel: function (_a) {
|
|
85558
85509
|
var row = _a.row;
|
|
@@ -85589,7 +85540,7 @@ var DbLoadMetadata = function (_a) {
|
|
|
85589
85540
|
customFooter: customFooter,
|
|
85590
85541
|
manualSorting: true,
|
|
85591
85542
|
state: tableState
|
|
85592
|
-
} }, "DbLoadMetadata-".concat(dbWaitEventType, "-").concat(sortBy, "-").concat(sortDirection)))] })
|
|
85543
|
+
} }, "DbLoadMetadata-".concat(dbWaitEventType, "-").concat(sortBy, "-").concat(sortDirection)))] })] })] }));
|
|
85593
85544
|
};
|
|
85594
85545
|
|
|
85595
85546
|
var useStyles$8 = makeStyles$1(function (theme) { return ({
|
|
@@ -85692,12 +85643,12 @@ var BackgroundJobs = function (_a) {
|
|
|
85692
85643
|
var totalBackgroundTasksCount = (backgroundTasks === null || backgroundTasks === void 0 ? void 0 : backgroundTasks.groups)
|
|
85693
85644
|
? Object.values(backgroundTasks.groups).reduce(function (total, categoryGroups) { return total + Object.keys(categoryGroups !== null && categoryGroups !== void 0 ? categoryGroups : {}).length; }, 0)
|
|
85694
85645
|
: 0;
|
|
85695
|
-
return (jsxs(Accordion,
|
|
85646
|
+
return (jsxs(Accordion, { expanded: isAccordionExpanded, className: classes.accordion, onChange: handleAccordionChange, children: [jsx(AccordionSummary, { className: clsx(classes.accordionSummary, !isAccordionExpanded && classes.accordionSummaryCollapsed), expandIcon: jsx("img", { src: ArrowDownwardIcon, className: classes.expandIcon, alt: isAccordionExpanded ? 'Collapse' : 'Expand' }), children: jsxs(Box$1, { className: classes.headerTitleContainer, children: [jsx(Typography$1, { variant: "body2", className: classes.headerTitle, children: "Background Jobs" }), !isAccordionExpanded && (jsx(Box$1, { className: classes.countTextContainer, children: jsx(Typography$1, { variant: "body2", className: classes.countText, children: totalBackgroundTasksCount }) }))] }) }), jsxs(AccordionDetails, { className: classes.accordionDetails, children: [jsx(Box$1, { className: classes.expandChartButtonContainer, children: jsx(YBButton, { onClick: handleExpandChart, dataTestId: "BackgroundJobs-ExpandAllBtn", variant: appName === AppName.YBM ? 'ghost' : 'secondary', startIcon: jsx("img", { src: !expandChart ? ExpandIcon : CollapseIcon, alt: "Expand Icon" }), children: !expandChart ? 'Expand All' : 'Collapse All' }) }), fetchBackgroundTasks.isLoading && (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) })), fetchBackgroundTasks.isError && (jsxs(Box$1, { mt: 2, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: backgroundTasksFetchError && isNonEmptyString(backgroundTasksFetchError)
|
|
85696
85647
|
? backgroundTasksFetchError
|
|
85697
85648
|
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: backgroundTasksFetchError && isNonEmptyString(backgroundTasksFetchError)
|
|
85698
85649
|
? backgroundTasksFetchError
|
|
85699
|
-
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR }))] }))
|
|
85700
|
-
(!!backgroundTasks && isNonEmptyObject(backgroundTasks) ? (jsx(PerfAdvisorGantChart, { appName: appName, endTime: endTime, isInsightsTab: false, startTime: startTime, currentTab: currentTab, expandAll: expandChart, isBackgroundJobs: true, sourceData: backgroundTasks, onSelectedIssue: onSelectedIssue, name: "gant-chart-background-jobs", onClickShowMoreAnomalies: onClickShowMoreAnomalies }, "gant-chart-background-jobs")) : (jsx(Box$1,
|
|
85650
|
+
: DEFAULT_ERROR_MESSAGES.ANOMALIES_FETCH_ERROR }))] })), fetchBackgroundTasks.isSuccess &&
|
|
85651
|
+
(!!backgroundTasks && isNonEmptyObject(backgroundTasks) ? (jsx(PerfAdvisorGantChart, { appName: appName, endTime: endTime, isInsightsTab: false, startTime: startTime, currentTab: currentTab, expandAll: expandChart, isBackgroundJobs: true, sourceData: backgroundTasks, onSelectedIssue: onSelectedIssue, name: "gant-chart-background-jobs", onClickShowMoreAnomalies: onClickShowMoreAnomalies }, "gant-chart-background-jobs")) : (jsx(Box$1, { mt: 2, children: jsx(Typography$1, { variant: "body2", children: "No Background Jobs detected" }) })))] })] }));
|
|
85701
85652
|
};
|
|
85702
85653
|
|
|
85703
85654
|
var img$1 = "data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.5 4.5C4.237 4.5 3.214 5.523 3.214 6.786V11.357L1 12.5L3.214 13.643V18.214C3.214 19.477 4.237 20.5 5.5 20.5' stroke='%230B1117' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M18.4995 4.47221C19.7625 4.47221 20.7855 5.49521 20.7855 6.75821V11.3292L22.9995 12.4722L20.7855 13.6152V18.1862C20.7855 19.4492 19.7625 20.4722 18.4995 20.4722' stroke='%230B1117' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3crect x='7' y='14.5' width='2' height='3' rx='0.5' fill='%230B1117'/%3e%3crect x='11' y='11.5' width='2' height='6' rx='0.5' fill='%230B1117'/%3e%3crect x='15' y='7.5' width='2' height='10' rx='0.5' fill='%230B1117'/%3e%3c/svg%3e";
|
|
@@ -85775,17 +85726,17 @@ var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
|
85775
85726
|
}); });
|
|
85776
85727
|
var PerfAdvisorTabs = function (_a) {
|
|
85777
85728
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
85778
|
-
var startTime = _a.startTime, endTime = _a.endTime, universeUuid = _a.universeUuid, appName = _a.appName, timezone = _a.timezone, filterDuration = _a.filterDuration, apiUrl = _a.apiUrl, universeData = _a.universeData, isAshEnabled = _a.isAshEnabled, isAshSupported = _a.isAshSupported, onClickShowMoreAnomalies = _a.onClickShowMoreAnomalies, onEChartsDateSelect = _a.onEChartsDateSelect, onSelectedIssue = _a.onSelectedIssue, onSelectedQuery = _a.onSelectedQuery, notifyTabChange = _a.notifyTabChange, onStartDateChange = _a.onStartDateChange, onEndDateChange = _a.onEndDateChange, onRefresh = _a.onRefresh, onSelectedFilterDuration = _a.onSelectedFilterDuration, onNavigateToUrl = _a.onNavigateToUrl;
|
|
85729
|
+
var startTime = _a.startTime, endTime = _a.endTime, universeUuid = _a.universeUuid, appName = _a.appName, timezone = _a.timezone, filterDuration = _a.filterDuration, apiUrl = _a.apiUrl, universeData = _a.universeData, isAshEnabled = _a.isAshEnabled, isAshSupported = _a.isAshSupported, showStandaloneAnomalies = _a.showStandaloneAnomalies, onClickShowMoreAnomalies = _a.onClickShowMoreAnomalies, onEChartsDateSelect = _a.onEChartsDateSelect, onSelectedIssue = _a.onSelectedIssue, onSelectedQuery = _a.onSelectedQuery, notifyTabChange = _a.notifyTabChange, onStartDateChange = _a.onStartDateChange, onEndDateChange = _a.onEndDateChange, onRefresh = _a.onRefresh, onSelectedFilterDuration = _a.onSelectedFilterDuration, onNavigateToUrl = _a.onNavigateToUrl;
|
|
85779
85730
|
var classes = useStyles$7();
|
|
85780
85731
|
var helperClasses = useHelperStyles();
|
|
85781
|
-
var getCurrentTab = function () { return parseUrlState(
|
|
85732
|
+
var getCurrentTab = function () { return parseUrlState().currentTab; };
|
|
85782
85733
|
// State variables
|
|
85783
85734
|
var _q = useState([]), filteredLegends = _q[0], setFilteredLegends = _q[1];
|
|
85784
85735
|
var _r = useState(null), anomalyGroups = _r[0], setAnomalyGroups = _r[1];
|
|
85785
85736
|
var _s = useState(getCurrentTab()), currentTab = _s[0], setCurrentTab = _s[1];
|
|
85786
85737
|
var _t = useState(Object.values(InsightsTabs)), filteredTabs = _t[0], setFilteredTabs = _t[1];
|
|
85787
85738
|
var _u = useState(GROUP_BY_OPERATIONS[0]), groupByOperation = _u[0], setGroupByOperation = _u[1];
|
|
85788
|
-
var _v = useState(ClusterLoadOverallTabs.
|
|
85739
|
+
var _v = useState(ClusterLoadOverallTabs.QUERIES), clusterLoadOverallSubTab = _v[0], setClusterLoadOverallSubTab = _v[1];
|
|
85789
85740
|
var _w = useState(ClusterLoadSubTabs.OVERALL_LOAD), clusterLoadSubTab = _w[0], setClusterLoadSubTab = _w[1];
|
|
85790
85741
|
// TODO: Check with Min if we need to print the time for anomalyDetectionStatusTime
|
|
85791
85742
|
var _x = useState(AnomalyDetectionStatusText.EMPTY), anomalyDetectionStatus = _x[0]; _x[1];
|
|
@@ -85857,13 +85808,17 @@ var PerfAdvisorTabs = function (_a) {
|
|
|
85857
85808
|
// Avoid unnecessary API calls when the component mounts if the tab is METRICS
|
|
85858
85809
|
if ((currentTab === InsightsTabs.CLUSTER_LOAD &&
|
|
85859
85810
|
clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES) ||
|
|
85860
|
-
currentTab === InsightsTabs.INSIGHTS
|
|
85811
|
+
currentTab === InsightsTabs.INSIGHTS ||
|
|
85812
|
+
showStandaloneAnomalies) {
|
|
85861
85813
|
fetchAnomalyGroups.refetch();
|
|
85862
85814
|
}
|
|
85863
85815
|
}, [startTime === null || startTime === void 0 ? void 0 : startTime.toISOString(), endTime === null || endTime === void 0 ? void 0 : endTime.toISOString(), currentTab, cluster, region, zone, node]);
|
|
85864
85816
|
// Initialize state from URL on component mount
|
|
85865
85817
|
useEffect(function () {
|
|
85866
|
-
|
|
85818
|
+
if (showStandaloneAnomalies) {
|
|
85819
|
+
return;
|
|
85820
|
+
}
|
|
85821
|
+
var urlState = parseUrlState();
|
|
85867
85822
|
setCurrentTab(urlState.currentTab);
|
|
85868
85823
|
setClusterLoadSubTab(urlState.clusterLoadSubTab);
|
|
85869
85824
|
setClusterLoadOverallSubTab(urlState.clusterLoadOverallSubTab);
|
|
@@ -85881,7 +85836,7 @@ var PerfAdvisorTabs = function (_a) {
|
|
|
85881
85836
|
// Default fallback: redirect to ANOMALIES
|
|
85882
85837
|
var urlParams = new URLSearchParams(window.location.search);
|
|
85883
85838
|
var queryString = urlParams.toString();
|
|
85884
|
-
var newPath = "".concat(window.location.pathname, "/").concat(URL_TAB_PATH.
|
|
85839
|
+
var newPath = "".concat(window.location.pathname, "/").concat(URL_TAB_PATH.QUERIES).concat(queryString ? "?".concat(queryString) : '');
|
|
85885
85840
|
window.history.replaceState(null, '', newPath);
|
|
85886
85841
|
}
|
|
85887
85842
|
}, []);
|
|
@@ -85913,7 +85868,7 @@ var PerfAdvisorTabs = function (_a) {
|
|
|
85913
85868
|
};
|
|
85914
85869
|
// Sync URL when Cluster Load sub-tabs change
|
|
85915
85870
|
useEffect(function () {
|
|
85916
|
-
if (currentTab === InsightsTabs.CLUSTER_LOAD) {
|
|
85871
|
+
if (currentTab === InsightsTabs.CLUSTER_LOAD && !showStandaloneAnomalies) {
|
|
85917
85872
|
updateUrl(appName, currentTab, clusterLoadSubTab, clusterLoadOverallSubTab);
|
|
85918
85873
|
}
|
|
85919
85874
|
}, [clusterLoadOverallSubTab, clusterLoadSubTab, currentTab]);
|
|
@@ -85924,7 +85879,7 @@ var PerfAdvisorTabs = function (_a) {
|
|
|
85924
85879
|
case InsightsTabs.INSIGHTS:
|
|
85925
85880
|
return jsx(Box$1, { mt: 0.5 });
|
|
85926
85881
|
case InsightsTabs.CLUSTER_LOAD:
|
|
85927
|
-
return (jsx(Box$1,
|
|
85882
|
+
return (jsx(Box$1, { ml: appName === AppName.WEB ? 2 : 0, children: jsx(Box$1, { display: "flex", alignItems: "center", className: classes.tabsContainer, children: jsx(YBTabs, { value: clusterLoadSubTab, className: classes.ybTabs, onChange: handleClusterLoadSubTabChange, children: Object.values(ClusterLoadSubTabs).map(function (tab, index) { return (jsx(YBStyledTab, { "data-testid": "".concat(tab, "ClusterLoadSubTab"), value: tab, label: tab }, index)); }) }) }) }));
|
|
85928
85883
|
default:
|
|
85929
85884
|
return null;
|
|
85930
85885
|
}
|
|
@@ -85994,16 +85949,25 @@ var PerfAdvisorTabs = function (_a) {
|
|
|
85994
85949
|
var onQueryTypeSelected = function (selectedOption) {
|
|
85995
85950
|
setQueryType(selectedOption);
|
|
85996
85951
|
};
|
|
85952
|
+
var renderHeaderComponent = function () {
|
|
85953
|
+
return (jsxs(Box$1, { children: [jsx(Box$1, { mt: 2.5, mb: 2.5, children: jsx(DateSelectorHeader, { appName: appName, filterDuration: filterDuration, startDateTime: startTime, endDateTime: endTime, timezone: timezone, isDrilldownView: false, currentTab: currentTab, clusterLoadSubTab: currentTab === InsightsTabs.CLUSTER_LOAD ? clusterLoadSubTab : null, isClusterLoadView: currentTab === InsightsTabs.CLUSTER_LOAD, isTopKMetricsView: currentTab === InsightsTabs.METRICS, onSelectedFilterDuration: onSelectedFilterDuration, metricMeasure: metricMeasure, onStartDateChange: onStartDateChange, onEndDateChange: onEndDateChange, onRefresh: onRefresh }) }), clusterLoadSubTab !== ClusterLoadSubTabs.LOAD_BY_DATABASE && (jsx(Box$1, { mt: 2, ml: appName === AppName.WEB && currentTab === InsightsTabs.CLUSTER_LOAD ? 2 : 0, children: jsx(GenericHeader, { appName: appName, universeData: universeData, clusterRegionItem: clusterRegionItem, zoneNodeItem: zoneNodeItem, isPrimaryCluster: isPrimaryCluster, cluster: cluster, region: region, metricMeasure: metricMeasure, outlierType: outlierType, numNodes: numNodes, isDrilldownView: false, anomalyData: null, queryType: queryType,
|
|
85954
|
+
// Do not show Overall and Outlier selectors in standalone anomalies view
|
|
85955
|
+
showSplitSelector: showStandaloneAnomalies ? false : showSplitSelector, showQueryTypeSelector: showQueryTypeSelector, onZoneNodeSelected: onZoneNodeSelected, onClusterRegionSelected: onClusterRegionSelected, onOutlierTypeSelected: onOutlierTypeSelected, onSplitTypeSelected: onSplitTypeSelected, onNumNodesChanged: onNumNodesChanged, onQueryTypeSelected: onQueryTypeSelected }) }))] }));
|
|
85956
|
+
};
|
|
85957
|
+
if (showStandaloneAnomalies) {
|
|
85958
|
+
return (jsxs(Box$1, { mt: 2, children: [renderHeaderComponent(), jsx(DetectedAnomalies, { apiUrl: apiUrl, appName: appName, endTime: endTime, startTime: startTime, currentTab: currentTab, universeUuid: universeUuid, anomalyGroups: anomalyGroups, onSelectedIssue: onSelectedIssue, fetchAnomalyGroups: fetchAnomalyGroups, anomalyGroupsFetchError: anomalyGroupsFetchError, onClickShowMoreAnomalies: onClickShowMoreAnomalies, onNavigateToUrl: onNavigateToUrl })] }));
|
|
85959
|
+
}
|
|
85960
|
+
console.warn('appName', appName);
|
|
85997
85961
|
var showSplitSelector = currentTab === InsightsTabs.METRICS;
|
|
85998
85962
|
var showQueryTypeSelector = currentTab !== InsightsTabs.METRICS;
|
|
85999
|
-
return (jsxs(Box$1,
|
|
86000
|
-
clusterLoadSubTab === ClusterLoadSubTabs.LOAD_BY_DATABASE && (jsxs(Box$1,
|
|
86001
|
-
clusterLoadSubTab === ClusterLoadSubTabs.OVERALL_LOAD && (jsxs(Box$1,
|
|
85963
|
+
return (jsxs(Box$1, { className: clsx(appName === AppName.WEB ? classes.tabBox : undefined), children: [appName === AppName.WEB && (jsx(Box$1, { children: jsxs(TabContext, { value: currentTab, children: [jsx(Box$1, { display: "flex", alignItems: "center", className: classes.tabsContainer, children: jsx(YBTabs, { value: currentTab, onChange: handleTabChange, children: filteredTabs.map(function (tab, index) { return (jsx(YBTab, { "data-testid": "".concat(tab, "Tab"), value: tab, label: tab, className: classes.tabButton }, index)); }) }) }), jsx(TabPanel, { className: helperClasses.tabPanelPrimary, value: InsightsTabs.METRICS, children: renderComponent(InsightsTabs.METRICS) }), jsx(TabPanel, { className: helperClasses.tabPanelPrimary, value: InsightsTabs.CLUSTER_LOAD, children: renderComponent(InsightsTabs.CLUSTER_LOAD) })] }) })), (appName === AppName.YBM || appName === AppName.YBA) && jsx(Fragment, { children: renderComponent(currentTab) }), renderHeaderComponent(), currentTab === InsightsTabs.METRICS && (jsx(ProcessTopKData, { universeUuid: universeUuid, appName: appName, timezone: timezone, apiUrl: apiUrl, onEChartsDateSelect: onEChartsDateSelect, getClusterDetails: getClusterDetails })), currentTab === InsightsTabs.CLUSTER_LOAD &&
|
|
85964
|
+
clusterLoadSubTab === ClusterLoadSubTabs.LOAD_BY_DATABASE && (jsxs(Box$1, { mt: 2, ml: appName === AppName.WEB ? 2 : 0, children: [clusterLoadSubTab === ClusterLoadSubTabs.LOAD_BY_DATABASE && (jsx(DbLoadHeader, { outlierType: outlierType, waitEventType: dbWaitEventType, numNodes: numNodes, onOutlierTypeSelected: onOutlierTypeSelected, onNumNodesChanged: onNumNodesChanged, onChangeDbWaitEventType: onChangeDbWaitEventType })), jsx(PerfAdvisorClusterLoad, { dbWaitEventType: dbWaitEventType, isDbClusterLoadView: true, startTime: (_e = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _e !== void 0 ? _e : null, endTime: (_f = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _f !== void 0 ? _f : null, apiUrl: apiUrl, universeUuid: universeUuid, appName: appName, metricKey: "cluster_load", groupByOperation: groupByOperation, shouldAbbreviateTraceName: true, timezone: timezone, isAshEnabled: isAshEnabled, isAshSupported: isAshSupported, onFilterBarData: onFilterBarData, onSetGroupByOperation: onSetGroupByOperation, onEChartsDateSelect: onEChartsDateSelect, getClusterDetails: getClusterDetails }), jsx(DbLoadMetadata, { appName: appName, universeUuid: universeUuid, apiUrl: apiUrl, dbWaitEventType: dbWaitEventType, startTime: (_g = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _g !== void 0 ? _g : null, endTime: (_h = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _h !== void 0 ? _h : null, onSelectedQuery: onSelectedQuery, onNavigateToUrl: onNavigateToUrl })] })), currentTab === InsightsTabs.CLUSTER_LOAD &&
|
|
85965
|
+
clusterLoadSubTab === ClusterLoadSubTabs.OVERALL_LOAD && (jsxs(Box$1, { ml: appName === AppName.WEB ? 2 : 0, children: [jsx(PerfAdvisorClusterLoad, { dbWaitEventType: dbWaitEventType, isDbClusterLoadView: false, startTime: (_j = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _j !== void 0 ? _j : null, endTime: (_k = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _k !== void 0 ? _k : null, apiUrl: apiUrl, universeUuid: universeUuid, appName: appName, metricKey: "cluster_load", groupByOperation: groupByOperation, shouldAbbreviateTraceName: true, timezone: timezone, isAshEnabled: isAshEnabled, isAshSupported: isAshSupported, onFilterBarData: onFilterBarData, onSetGroupByOperation: onSetGroupByOperation, onEChartsDateSelect: onEChartsDateSelect, getClusterDetails: getClusterDetails }), appName === AppName.WEB && (jsx(Box$1, { display: "flex", alignItems: "center", className: classes.tabsContainer, mt: 5, children: jsxs(YBTabs, { pill: true, value: clusterLoadOverallSubTab, onChange: handleClusterLoadOverallSubTabChange, children: [jsx(YBStyledTab, { icon: jsx("img", { src: AnomaliesIcon, alt: "Anomalies Icon", style: { marginRight: '8px' } }), value: ClusterLoadOverallTabs.ANOMALIES, label: ClusterLoadOverallTabs.ANOMALIES }), jsx(YBStyledTab, { icon: jsx("img", { src: QueriesIcon, alt: "Queries Icon", style: { marginRight: '8px' } }), value: ClusterLoadOverallTabs.QUERIES, label: ClusterLoadOverallTabs.QUERIES })] }) })), clusterLoadOverallSubTab === ClusterLoadOverallTabs.QUERIES && (jsx(Box$1, { children: jsx(HistoricalQueryData, { universeUuid: universeUuid, groupByOperation: groupByOperation, apiUrl: apiUrl, startTime: (_l = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _l !== void 0 ? _l : null, endTime: (_m = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _m !== void 0 ? _m : null, appName: appName, filteredLegends: filteredLegends, queryType: queryType, onSelectedQuery: onSelectedQuery, getClusterDetails: getClusterDetails, onNavigateToUrl: onNavigateToUrl }) })), clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES && (jsx(Box$1, { className: helperClasses.noteTextContainer, children: jsxs(Typography$1, { variant: "body2", className: helperClasses.noteText, children: [jsx(Typography$1, { variant: "body2", className: clsx(helperClasses.noteText, helperClasses.noteTextBold), children: "Note!" }), "Only the time window filter applies to this view."] }) }))] })), currentTab === InsightsTabs.CLUSTER_LOAD &&
|
|
86002
85966
|
clusterLoadSubTab === ClusterLoadSubTabs.OVERALL_LOAD &&
|
|
86003
|
-
clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES && (jsx(Box$1,
|
|
85967
|
+
clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES && (jsx(Box$1, { mt: 2, ml: appName === AppName.WEB && currentTab === InsightsTabs.CLUSTER_LOAD ? 2 : 0, children: jsx(BackgroundJobs, { apiUrl: apiUrl, appName: appName, currentTab: currentTab, universeUuid: universeUuid, onSelectedIssue: onSelectedIssue, endTime: (_o = endTime === null || endTime === void 0 ? void 0 : endTime.toISOString()) !== null && _o !== void 0 ? _o : null, startTime: (_p = startTime === null || startTime === void 0 ? void 0 : startTime.toISOString()) !== null && _p !== void 0 ? _p : null, onClickShowMoreAnomalies: onClickShowMoreAnomalies }) })), (currentTab === InsightsTabs.INSIGHTS ||
|
|
86004
85968
|
(currentTab === InsightsTabs.CLUSTER_LOAD &&
|
|
86005
85969
|
clusterLoadSubTab === ClusterLoadSubTabs.OVERALL_LOAD &&
|
|
86006
|
-
clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES)) && (jsx(Box$1,
|
|
85970
|
+
clusterLoadOverallSubTab === ClusterLoadOverallTabs.ANOMALIES)) && (jsx(Box$1, { mt: 2, mb: appName === AppName.WEB ? 4 : 0, ml: appName === AppName.WEB && currentTab === InsightsTabs.CLUSTER_LOAD ? 2 : 0, children: jsx(DetectedAnomalies, { apiUrl: apiUrl, appName: appName, endTime: endTime, startTime: startTime, currentTab: currentTab, universeUuid: universeUuid, anomalyGroups: anomalyGroups, onSelectedIssue: onSelectedIssue, fetchAnomalyGroups: fetchAnomalyGroups, anomalyGroupsFetchError: anomalyGroupsFetchError, onClickShowMoreAnomalies: onClickShowMoreAnomalies, onNavigateToUrl: onNavigateToUrl }) }))] }));
|
|
86007
85971
|
};
|
|
86008
85972
|
|
|
86009
85973
|
/**
|
|
@@ -92295,26 +92259,26 @@ var ShowMoreAnomalies = function (_a) {
|
|
|
92295
92259
|
}
|
|
92296
92260
|
});
|
|
92297
92261
|
var anomalyGroupsFetchError = (_d = (_c = (_b = fetchAnomalyGroupsByType === null || fetchAnomalyGroupsByType === void 0 ? void 0 : fetchAnomalyGroupsByType.error) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error;
|
|
92298
|
-
return (jsxs(Box$1,
|
|
92262
|
+
return (jsxs(Box$1, { className: classes.tabBox, children: [jsxs(Breadcrumbs, { className: helperClasses.breadCrumb, separator: jsx(Typography$1, { variant: "body2", children: "/" }), "aria-label": "breadcrumb", "data-testid": "PrimaryDashboardBreadcrumb", children: [jsx(Link$1, { className: helperClasses.breadcrumbColor, component: Link, variant: "h5", onClick: function () {
|
|
92299
92263
|
onClickShowMoreAnomalies(null);
|
|
92300
92264
|
window.history.pushState({}, '', window.location.href);
|
|
92301
|
-
}, to: "#"
|
|
92302
|
-
"".concat(ANOMALY_TYPE_TO_NAME_MAP[showMoreAnomalyCategory]) })
|
|
92265
|
+
}, to: "#", children: jsx("span", { className: helperClasses.breadCrumbText, children: selectedTab === InsightsTabs.CLUSTER_LOAD ? 'Anomalies' : 'Insights' }) }), jsx(Typography$1, { variant: "h5", children: jsx("span", { className: clsx(helperClasses.breadCrumbText, helperClasses.anomalyCategoryText), children: "".concat((_f = (_e = anomalyGroups === null || anomalyGroups === void 0 ? void 0 : anomalyGroups[0]) === null || _e === void 0 ? void 0 : _e.lastInstance) === null || _f === void 0 ? void 0 : _f.title) ||
|
|
92266
|
+
"".concat(ANOMALY_TYPE_TO_NAME_MAP[showMoreAnomalyCategory]) }) })] }), jsxs(Box$1, { mt: 3, children: [fetchAnomalyGroupsByType.isLoading && (jsx(Box$1, { children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) })), fetchAnomalyGroupsByType.isError && (jsxs(Box$1, { mt: 3, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(anomalyGroupsFetchError)
|
|
92303
92267
|
? anomalyGroupsFetchError
|
|
92304
92268
|
: DEFAULT_ERROR_MESSAGES.SHOW_MORE_ANOMALIES_FETCH_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(anomalyGroupsFetchError)
|
|
92305
92269
|
? anomalyGroupsFetchError
|
|
92306
|
-
: DEFAULT_ERROR_MESSAGES.SHOW_MORE_ANOMALIES_FETCH_ERROR }))] }))
|
|
92307
|
-
(isNonEmptyArray(anomalyGroups) ? (jsxs(Box$1, { children: [jsxs(Box$1,
|
|
92270
|
+
: DEFAULT_ERROR_MESSAGES.SHOW_MORE_ANOMALIES_FETCH_ERROR }))] })), fetchAnomalyGroupsByType.isSuccess &&
|
|
92271
|
+
(isNonEmptyArray(anomalyGroups) ? (jsxs(Box$1, { children: [jsxs(Box$1, { display: "flex", alignItems: "center", mb: 2, style: { marginLeft: '12px' }, onClick: function () {
|
|
92308
92272
|
if (isNonEmptyArray(anomalyGroups)) {
|
|
92309
92273
|
var names = anomalyGroups === null || anomalyGroups === void 0 ? void 0 : anomalyGroups.map(function (group) { var _a; return (_a = group.lastInstance) === null || _a === void 0 ? void 0 : _a.entityDisplayName; }).filter(Boolean).join('\n');
|
|
92310
92274
|
navigator.clipboard.writeText(names);
|
|
92311
92275
|
}
|
|
92312
|
-
}
|
|
92276
|
+
}, children: [jsx(FileCopy, { style: { cursor: 'pointer', height: 16, width: 16 } }), jsx(Typography$1, { variant: "body2", style: { marginLeft: 8, textDecoration: 'underline', cursor: 'pointer' }, children: "Copy all entities" })] }), jsx(PerfAdvisorGantChart, { name: 'gant-chart-show-more-anomalies', sourceData: anomalyGroups !== null && anomalyGroups !== void 0 ? anomalyGroups : [], showMoreOptions: false, expandAll: true, startTime: startTime, endTime: endTime, onSelectedIssue: onSelectedIssue, appName: appName, viewAllAnomalies: true }, "gant-chart-show-more-anomalies")] })) : (jsx(Box$1, { children: 'No Anomalies were detected' })))] })] }));
|
|
92313
92277
|
};
|
|
92314
92278
|
|
|
92315
92279
|
var PerfAdvisorEntry = function (_a) {
|
|
92316
92280
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
92317
|
-
var timezone = _a.timezone, universeUuid = _a.universeUuid, appName = _a.appName, apiUrl = _a.apiUrl, onSelectedIssue = _a.onSelectedIssue, onSelectedQuery = _a.onSelectedQuery, onNavigateToUrl = _a.onNavigateToUrl;
|
|
92281
|
+
var timezone = _a.timezone, universeUuid = _a.universeUuid, appName = _a.appName, apiUrl = _a.apiUrl, _m = _a.showStandaloneAnomalies, showStandaloneAnomalies = _m === void 0 ? false : _m, onSelectedIssue = _a.onSelectedIssue, onSelectedQuery = _a.onSelectedQuery, onNavigateToUrl = _a.onNavigateToUrl;
|
|
92318
92282
|
var helperClasses = useHelperStyles();
|
|
92319
92283
|
var searchParams = new URLSearchParams(window.location.search);
|
|
92320
92284
|
var end = searchParams === null || searchParams === void 0 ? void 0 : searchParams.get('endTime');
|
|
@@ -92333,13 +92297,13 @@ var PerfAdvisorEntry = function (_a) {
|
|
|
92333
92297
|
var durationParam = searchParams === null || searchParams === void 0 ? void 0 : searchParams.get('duration');
|
|
92334
92298
|
// If its Anomaly view, then set the default filter duration to custom as anomaly has graphStartTime and graphEndTime
|
|
92335
92299
|
// If its not Anomaly view, then set the value passed in query parameter, if thats empty then set default filter duration to 1 day
|
|
92336
|
-
var
|
|
92337
|
-
var
|
|
92300
|
+
var _o = useState(durationParam !== null && durationParam !== void 0 ? durationParam : ANOMALY_FILTER_DURATION_OPTIONS[0].value), filterDuration = _o[0], setFilterDuration = _o[1];
|
|
92301
|
+
var _p = useState(function () { return initializeDateTimeRange(filterDuration, today, previousDate); }), dateTimeRange = _p[0], setDateTimeRange = _p[1];
|
|
92338
92302
|
useEffect(function () {
|
|
92339
92303
|
localStorage.setItem('appName', appName);
|
|
92340
92304
|
}, []);
|
|
92341
|
-
var
|
|
92342
|
-
var
|
|
92305
|
+
var _q = useState(null), showMoreAnomalyCategory = _q[0], setShowMoreAnomalyCategory = _q[1];
|
|
92306
|
+
var _r = useState(InsightsTabs.CLUSTER_LOAD), selectedTab = _r[0], setSelectedTab = _r[1];
|
|
92343
92307
|
var universeDataFetch = useQuery(QUERY_KEY.fetchUniverseById, function () {
|
|
92344
92308
|
return PerfAdvisorAPI.fetchUniverseById(universeUuid, apiUrl);
|
|
92345
92309
|
});
|
|
@@ -92431,9 +92395,10 @@ var PerfAdvisorEntry = function (_a) {
|
|
|
92431
92395
|
urlParams.set('endTime', (_a = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _a === void 0 ? void 0 : _a.toISOString());
|
|
92432
92396
|
window.history.pushState({}, '', "".concat(window.location.pathname, "?").concat(urlParams.toString()));
|
|
92433
92397
|
};
|
|
92434
|
-
|
|
92435
|
-
|
|
92436
|
-
(universeDataFetch.
|
|
92398
|
+
console.warn('universeTPStatusFetch', universeTPStatusFetch);
|
|
92399
|
+
return (jsx(YBThemeWrapper, { appName: appName, children: jsxs(Box$1, { children: [universeTPStatusFetch.isLoading ||
|
|
92400
|
+
(universeDataFetch.isLoading && (jsx(Box$1, { mt: 2, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) }))), universeTPStatusFetch.isError ||
|
|
92401
|
+
(universeDataFetch.isError && (jsxs(Box$1, { mt: 2, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: universeTPStatusFetch.isError
|
|
92437
92402
|
? isNonEmptyString(universeTPStatusFetchError)
|
|
92438
92403
|
? universeTPStatusFetchError
|
|
92439
92404
|
: DEFAULT_ERROR_MESSAGES.UNIVERSE_PA_STATUS_ERROR
|
|
@@ -92445,7 +92410,7 @@ var PerfAdvisorEntry = function (_a) {
|
|
|
92445
92410
|
: DEFAULT_ERROR_MESSAGES.UNIVERSE_PA_STATUS_ERROR
|
|
92446
92411
|
: isNonEmptyString(universeDataFetchError)
|
|
92447
92412
|
? universeDataFetchError
|
|
92448
|
-
: DEFAULT_ERROR_MESSAGES.UNIVERSE_DETAILS_ERROR }))] })))
|
|
92413
|
+
: DEFAULT_ERROR_MESSAGES.UNIVERSE_DETAILS_ERROR }))] }))), universeDataFetch.isSuccess && (jsx(Fragment, { children: jsxs(Box$1, { children: [!showMoreAnomalyCategory && (jsx(Box$1, { children: jsx(PerfAdvisorTabs, { startTime: dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime, endTime: dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime, filterDuration: filterDuration, universeUuid: universeUuid, universeData: universeDataFetch === null || universeDataFetch === void 0 ? void 0 : universeDataFetch.data, appName: appName, timezone: timezone, isAshEnabled: !!isAshEnabled, isAshSupported: !!isAshSupported, apiUrl: apiUrl, showStandaloneAnomalies: showStandaloneAnomalies, onClickShowMoreAnomalies: onClickShowMoreAnomalies, onEChartsDateSelect: onEChartsDateSelect, onSelectedIssue: onSelectedIssue, onSelectedQuery: onSelectedQuery, notifyTabChange: notifyTabChange, onStartDateChange: onStartDateChange, onEndDateChange: onEndDateChange, onRefresh: onRefresh, onSelectedFilterDuration: onSelectedFilterDuration, onNavigateToUrl: onNavigateToUrl }) })), isNonEmptyString(showMoreAnomalyCategory) && (jsx(ShowMoreAnomalies, { onClickShowMoreAnomalies: onClickShowMoreAnomalies, selectedTab: selectedTab, showMoreAnomalyCategory: showMoreAnomalyCategory, startTime: (_k = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.startDateTime) === null || _k === void 0 ? void 0 : _k.toISOString(), endTime: (_l = dateTimeRange === null || dateTimeRange === void 0 ? void 0 : dateTimeRange.endDateTime) === null || _l === void 0 ? void 0 : _l.toISOString(), universeUuid: universeUuid, appName: appName, apiUrl: apiUrl, onSelectedIssue: onSelectedIssue }))] }) }))] }) }));
|
|
92449
92414
|
};
|
|
92450
92415
|
|
|
92451
92416
|
var useStyles$5 = makeStyles(function (theme) { return ({
|
|
@@ -92478,10 +92443,10 @@ var RemoveUniverseMetadata = function (_a) {
|
|
|
92478
92443
|
return [2 /*return*/];
|
|
92479
92444
|
});
|
|
92480
92445
|
}); };
|
|
92481
|
-
return (jsx(YBModal,
|
|
92446
|
+
return (jsx(YBModal, { open: open, onClose: onClose, title: 'Remove Universe', onSubmit: handleSubmit, cancelLabel: 'Cancel', submitLabel: 'Remove', size: "sm", titleSeparator: true, enableBackdropDismiss: true, dialogContentProps: {
|
|
92482
92447
|
className: helperClasses.root,
|
|
92483
92448
|
dividers: true
|
|
92484
|
-
}
|
|
92449
|
+
}, children: jsx(Box$1, { mt: 2, children: jsx(Typography$1, { variant: "body2", children: "Are you sure you want to disable the universe ".concat(data.name, " from Performance Monitoring service ?") }) }) }));
|
|
92485
92450
|
};
|
|
92486
92451
|
|
|
92487
92452
|
var AppStatus;
|
|
@@ -92540,7 +92505,7 @@ var UniverseListMetadata = function (_a) {
|
|
|
92540
92505
|
var _e = useState(''), searchInput = _e[0], setSearchInput = _e[1];
|
|
92541
92506
|
var _f = useState(0), currentTablePage = _f[0], setCurrentTablePage = _f[1];
|
|
92542
92507
|
var _g = useState(null), selectedMetadata = _g[0], setSelectedMetadata = _g[1];
|
|
92543
|
-
var _h = useState(
|
|
92508
|
+
var _h = useState(null), metadataWithUniverseDetails = _h[0], setMetadataWithUniverseDetails = _h[1];
|
|
92544
92509
|
var onDeleteMetadataDialogClose = function () {
|
|
92545
92510
|
setShowDeleteMetadataDialog(false);
|
|
92546
92511
|
};
|
|
@@ -92549,100 +92514,108 @@ var UniverseListMetadata = function (_a) {
|
|
|
92549
92514
|
setShowDeleteMetadataDialog(true);
|
|
92550
92515
|
};
|
|
92551
92516
|
useEffect(function () {
|
|
92552
|
-
var mergeData = metadata.map(function (
|
|
92517
|
+
var mergeData = metadata === null || metadata === void 0 ? void 0 : metadata.map(function (matchedMetadata) {
|
|
92553
92518
|
var _a;
|
|
92554
|
-
var selectedUniverse = universeList.find(
|
|
92519
|
+
var selectedUniverse = universeList === null || universeList === void 0 ? void 0 : universeList.find(
|
|
92555
92520
|
// TODO: Request Aleks to send customer UUID in universe_details API inside TS service
|
|
92556
|
-
function (universe) { return
|
|
92557
|
-
|
|
92558
|
-
|
|
92559
|
-
|
|
92521
|
+
function (universe) { return matchedMetadata.id === universe.universeUUID; });
|
|
92522
|
+
matchedMetadata.name = (_a = selectedUniverse === null || selectedUniverse === void 0 ? void 0 : selectedUniverse.name) !== null && _a !== void 0 ? _a : '';
|
|
92523
|
+
matchedMetadata.lastSyncError = selectedUniverse === null || selectedUniverse === void 0 ? void 0 : selectedUniverse.lastSyncError;
|
|
92524
|
+
matchedMetadata.status = !!(selectedUniverse === null || selectedUniverse === void 0 ? void 0 : selectedUniverse.lastSyncStatus);
|
|
92525
|
+
matchedMetadata.actions = 'Unregister';
|
|
92526
|
+
return matchedMetadata;
|
|
92560
92527
|
});
|
|
92561
|
-
setMetadataWithUniverseDetails(mergeData);
|
|
92528
|
+
setMetadataWithUniverseDetails(mergeData !== null && mergeData !== void 0 ? mergeData : []);
|
|
92562
92529
|
}, [universeList, metadata]);
|
|
92563
92530
|
useEffect(function () {
|
|
92564
|
-
|
|
92565
|
-
|
|
92566
|
-
|
|
92567
|
-
|
|
92568
|
-
|
|
92569
|
-
|
|
92570
|
-
|
|
92571
|
-
|
|
92572
|
-
},
|
|
92573
|
-
{
|
|
92574
|
-
name: 'name',
|
|
92575
|
-
label: 'Universe Name',
|
|
92576
|
-
options: {
|
|
92577
|
-
sort: true,
|
|
92578
|
-
display: true,
|
|
92579
|
-
setCellHeaderProps: function () { return ({
|
|
92580
|
-
style: { width: '160px' },
|
|
92581
|
-
className: clsx(helperClasses.tableHeaderCell)
|
|
92582
|
-
}); },
|
|
92583
|
-
customBodyRender: function (name, tableMeta) {
|
|
92584
|
-
var rowIndex = tableMeta.rowIndex;
|
|
92585
|
-
var rowData = metadataWithUniverseDetails[rowIndex];
|
|
92586
|
-
var universeUuid = rowData === null || rowData === void 0 ? void 0 : rowData.id;
|
|
92587
|
-
return (jsx("a", __assign({ href: "/universes/".concat(universeUuid, "/perfAdvisor?tab=").concat(URL_TAB_PATH.ANOMALIES) }, { children: name })));
|
|
92531
|
+
if (metadataWithUniverseDetails) {
|
|
92532
|
+
setColumns([
|
|
92533
|
+
{
|
|
92534
|
+
name: 'id',
|
|
92535
|
+
label: 'Universe UUID',
|
|
92536
|
+
options: {
|
|
92537
|
+
sort: true,
|
|
92538
|
+
display: true
|
|
92588
92539
|
}
|
|
92589
|
-
}
|
|
92590
|
-
|
|
92591
|
-
|
|
92592
|
-
|
|
92593
|
-
|
|
92594
|
-
|
|
92595
|
-
|
|
92596
|
-
|
|
92597
|
-
|
|
92598
|
-
|
|
92599
|
-
|
|
92600
|
-
|
|
92601
|
-
|
|
92602
|
-
|
|
92603
|
-
|
|
92604
|
-
|
|
92605
|
-
|
|
92606
|
-
options: {
|
|
92607
|
-
sort: false,
|
|
92608
|
-
display: true
|
|
92609
|
-
}
|
|
92610
|
-
},
|
|
92611
|
-
{
|
|
92612
|
-
name: 'lastSyncError',
|
|
92613
|
-
label: 'Status',
|
|
92614
|
-
options: {
|
|
92615
|
-
sort: false,
|
|
92616
|
-
display: true,
|
|
92617
|
-
setCellHeaderProps: function () { return ({
|
|
92618
|
-
style: { width: '120px' },
|
|
92619
|
-
className: clsx(helperClasses.tableHeaderCell)
|
|
92620
|
-
}); },
|
|
92621
|
-
customBodyRender: function (syncStatus) {
|
|
92622
|
-
return (jsx(Fragment, { children: syncStatus ? (jsxs(Box$1, __assign({ className: classes.flexColumn }, { children: [jsx(Box$1, __assign({ className: clsx(classes.tagRed, classes.statusBox) }, { children: jsx("span", __assign({ className: clsx(classes.tagTextRed, classes.statusText) }, { children: AppStatus.INACTIVE })) })), jsx(Tooltip, __assign({ title: syncStatus, arrow: true, placement: "top", className: classes.tooltip }, { children: jsx("img", { src: InfoMessageIcon, alt: "info" }) }))] }))) : (jsx(Box$1, __assign({ className: clsx(classes.tagGreen, classes.statusBox) }, { children: jsx("span", __assign({ className: clsx(classes.tagTextGreen, classes.statusText) }, { children: AppStatus.ACTIVE })) }))) }));
|
|
92540
|
+
},
|
|
92541
|
+
{
|
|
92542
|
+
name: 'name',
|
|
92543
|
+
label: 'Universe Name',
|
|
92544
|
+
options: {
|
|
92545
|
+
sort: true,
|
|
92546
|
+
display: true,
|
|
92547
|
+
setCellHeaderProps: function () { return ({
|
|
92548
|
+
style: { width: '160px' },
|
|
92549
|
+
className: clsx(helperClasses.tableHeaderCell)
|
|
92550
|
+
}); },
|
|
92551
|
+
customBodyRender: function (name, tableMeta) {
|
|
92552
|
+
var rowIndex = tableMeta.rowIndex;
|
|
92553
|
+
var rowData = metadataWithUniverseDetails[rowIndex];
|
|
92554
|
+
var universeUuid = rowData === null || rowData === void 0 ? void 0 : rowData.id;
|
|
92555
|
+
return (jsx("a", { href: "/universes/".concat(universeUuid), children: name }));
|
|
92556
|
+
}
|
|
92623
92557
|
}
|
|
92624
|
-
}
|
|
92625
|
-
|
|
92626
|
-
|
|
92627
|
-
|
|
92628
|
-
|
|
92629
|
-
|
|
92630
|
-
|
|
92631
|
-
|
|
92632
|
-
|
|
92633
|
-
|
|
92634
|
-
|
|
92635
|
-
}
|
|
92636
|
-
|
|
92637
|
-
|
|
92638
|
-
|
|
92558
|
+
},
|
|
92559
|
+
{
|
|
92560
|
+
name: 'dataMountPoints',
|
|
92561
|
+
label: 'Data Mount Points',
|
|
92562
|
+
options: {
|
|
92563
|
+
sort: false,
|
|
92564
|
+
display: true,
|
|
92565
|
+
setCellHeaderProps: function () { return ({
|
|
92566
|
+
style: { width: '120px' },
|
|
92567
|
+
className: clsx(helperClasses.tableHeaderCell)
|
|
92568
|
+
}); }
|
|
92569
|
+
}
|
|
92570
|
+
},
|
|
92571
|
+
{
|
|
92572
|
+
name: 'otherMountPoints',
|
|
92573
|
+
label: 'Other Mount Points',
|
|
92574
|
+
options: {
|
|
92575
|
+
sort: false,
|
|
92576
|
+
display: true
|
|
92577
|
+
}
|
|
92578
|
+
},
|
|
92579
|
+
{
|
|
92580
|
+
name: 'status',
|
|
92581
|
+
label: 'Status',
|
|
92582
|
+
options: {
|
|
92583
|
+
sort: false,
|
|
92584
|
+
display: true,
|
|
92585
|
+
setCellHeaderProps: function () { return ({
|
|
92586
|
+
style: { width: '120px' },
|
|
92587
|
+
className: clsx(helperClasses.tableHeaderCell)
|
|
92588
|
+
}); },
|
|
92589
|
+
customBodyRender: function (name, tableMeta) {
|
|
92590
|
+
var rowIndex = tableMeta.rowIndex;
|
|
92591
|
+
var rowData = metadataWithUniverseDetails[rowIndex];
|
|
92592
|
+
var rowStatus = rowData === null || rowData === void 0 ? void 0 : rowData.status;
|
|
92593
|
+
var rowLastSyncError = rowData === null || rowData === void 0 ? void 0 : rowData.lastSyncError;
|
|
92594
|
+
return (jsx(Fragment, { children: rowStatus ? (jsx(Box$1, { className: clsx(classes.tagGreen, classes.statusBox), children: jsx("span", { className: clsx(classes.tagTextGreen, classes.statusText), children: AppStatus.ACTIVE }) })) : (jsxs(Box$1, { className: classes.flexColumn, children: [jsx(Box$1, { className: clsx(classes.tagRed, classes.statusBox), children: jsx("span", { className: clsx(classes.tagTextRed, classes.statusText), children: AppStatus.INACTIVE }) }), jsx(Tooltip, { title: rowLastSyncError, arrow: true, placement: "top", className: classes.tooltip, children: jsx("img", { src: InfoMessageIcon, alt: "info" }) })] })) }));
|
|
92595
|
+
}
|
|
92596
|
+
}
|
|
92597
|
+
},
|
|
92598
|
+
{
|
|
92599
|
+
name: 'actions',
|
|
92600
|
+
label: 'Actions',
|
|
92601
|
+
options: {
|
|
92602
|
+
sort: false,
|
|
92603
|
+
display: true,
|
|
92604
|
+
setCellHeaderProps: function () { return ({
|
|
92605
|
+
style: { width: '180px' },
|
|
92606
|
+
className: clsx(helperClasses.tableHeaderCell)
|
|
92607
|
+
}); },
|
|
92608
|
+
customBodyRender: function (_value, tableMeta) {
|
|
92609
|
+
var rowIndex = tableMeta.rowIndex;
|
|
92610
|
+
return (jsx(Box$1, { children: jsx(YBButton, { size: "medium", variant: "ghost", dataTestId: "UniverseListMetadata-unregisterButton", onClick: function () { return onDeleteMetadataButtonClick(metadataWithUniverseDetails[rowIndex]); }, children: 'Unregister' }) }));
|
|
92611
|
+
}
|
|
92639
92612
|
}
|
|
92640
92613
|
}
|
|
92641
|
-
|
|
92642
|
-
|
|
92614
|
+
]);
|
|
92615
|
+
}
|
|
92643
92616
|
}, [metadataWithUniverseDetails]);
|
|
92644
|
-
return (jsxs(Box$1,
|
|
92645
|
-
filter: true,
|
|
92617
|
+
return (jsxs(Box$1, { mt: 2, className: classes.overrideMuiTableContainer, children: [isNonEmptyArray(metadataWithUniverseDetails) && isNonEmptyArray(columns) && (jsx(Box$1, { mt: 2, children: jsx(YBTable, { title: 'Universe Metadata', className: helperClasses.overrideMuiTable, dataTestId: "UniverseListMetadata-Table", data: metadataWithUniverseDetails, columns: columns, options: {
|
|
92618
|
+
// filter: true,
|
|
92646
92619
|
search: true,
|
|
92647
92620
|
selectableRowsOnClick: false,
|
|
92648
92621
|
rowHover: true,
|
|
@@ -92662,7 +92635,7 @@ var UniverseListMetadata = function (_a) {
|
|
|
92662
92635
|
}
|
|
92663
92636
|
},
|
|
92664
92637
|
onGlobalFilterChange: setSearchInput
|
|
92665
|
-
} }) }))
|
|
92638
|
+
} }) })), showDeleteMetadataDialog && selectedMetadata && (jsx(RemoveUniverseMetadata, { onActionPerformed: onActionPerformed, open: showDeleteMetadataDialog, onClose: onDeleteMetadataDialogClose, data: selectedMetadata, apiUrl: apiUrl }))] }));
|
|
92666
92639
|
};
|
|
92667
92640
|
|
|
92668
92641
|
var useStyles$3 = makeStyles(function (theme) { return ({
|
|
@@ -92703,7 +92676,7 @@ var ConfigureUniverseMetadata = function (_a) {
|
|
|
92703
92676
|
isFetchUniverseLoading ||
|
|
92704
92677
|
(isFetchMetadataIdle && metadata === undefined) ||
|
|
92705
92678
|
(isFetchUniverseIdle && universeList === undefined)) {
|
|
92706
|
-
return (jsx(Box$1,
|
|
92679
|
+
return (jsx(Box$1, { mt: 4, className: helperClasses.loadingBox, children: jsx(SvgLoading, { className: clsx(helperClasses.icon, helperClasses.inProgressIcon) }) }));
|
|
92707
92680
|
}
|
|
92708
92681
|
var onActionPerformed = function () {
|
|
92709
92682
|
var getLatestMetadata = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -92724,11 +92697,11 @@ var ConfigureUniverseMetadata = function (_a) {
|
|
|
92724
92697
|
}); };
|
|
92725
92698
|
getLatestMetadata();
|
|
92726
92699
|
};
|
|
92727
|
-
return (jsx(YBPanelItem, { body: jsxs(Box$1,
|
|
92700
|
+
return (jsx(YBPanelItem, { body: jsxs(Box$1, { ml: 1, mr: 1, mt: 1, className: classes.flexColumn, children: [jsx(YBButton, { variant: "secondary", size: "medium", onClick: function () {
|
|
92728
92701
|
onActionPerformed();
|
|
92729
|
-
}, className: classes.refreshButton, dataTestId: "ConfigureUniverseMetadata-
|
|
92730
|
-
? 'Currently, there are no universes attached to
|
|
92731
|
-
: 'Customer is not registered with
|
|
92702
|
+
}, className: classes.refreshButton, dataTestId: "ConfigureUniverseMetadata-RefreshButton", children: 'Refresh' }), isNonEmptyString(apiUrl) && metadata.length > 0 ? (jsx(Fragment, { children: jsx(Box$1, { mt: 2, children: jsx(UniverseListMetadata, { apiUrl: apiUrl, customerUuid: customerUuid, metadata: metadata, universeList: universeList, onActionPerformed: onActionPerformed }) }) })) : (jsx(Box$1, { className: classes.noUniverses, children: isNonEmptyString(apiUrl)
|
|
92703
|
+
? 'Currently, there are no universes attached to Performance Monitoring service'
|
|
92704
|
+
: 'Customer is not registered with Performance Monitoring service. Please register and then enable Performance Monitoring for universes.' }))] }) }));
|
|
92732
92705
|
};
|
|
92733
92706
|
|
|
92734
92707
|
var useStyles$2 = makeStyles$1(function (theme) { return ({
|
|
@@ -92761,10 +92734,10 @@ var ResetRuntimeConfig = function (_a) {
|
|
|
92761
92734
|
return [2 /*return*/];
|
|
92762
92735
|
});
|
|
92763
92736
|
}); };
|
|
92764
|
-
return (jsx(YBModal,
|
|
92737
|
+
return (jsx(YBModal, { open: open, onClose: onClose, title: 'Reset Runtime Configuration', onSubmit: handleSubmit, cancelLabel: 'Cancel', submitLabel: 'Reset', overrideHeight: "250px", size: "sm", titleSeparator: true, enableBackdropDismiss: true, dialogContentProps: {
|
|
92765
92738
|
className: helperClasses.root,
|
|
92766
92739
|
dividers: true
|
|
92767
|
-
}
|
|
92740
|
+
}, children: jsx(Box$1, { mt: 2, children: jsx(Typography$1, { variant: "body2", children: "Are you sure you want to reset the runtime configuration for the following key ".concat(data.path, " ?") }) }) }));
|
|
92768
92741
|
};
|
|
92769
92742
|
|
|
92770
92743
|
var useStyles$1 = makeStyles$1(function (theme) { return ({
|
|
@@ -92807,10 +92780,10 @@ var UpdateRuntimeConfig = function (_a) {
|
|
|
92807
92780
|
payload.configValue = formValues.configValue;
|
|
92808
92781
|
updateRuntimeConfigKey.mutate(payload);
|
|
92809
92782
|
});
|
|
92810
|
-
return (jsx(YBModal,
|
|
92783
|
+
return (jsx(YBModal, { open: open, onClose: onClose, title: 'Update Runtime Configuration', onSubmit: handleFormSubmit, cancelLabel: 'Cancel', submitLabel: 'Update', size: "sm", titleSeparator: true, enableBackdropDismiss: true, dialogContentProps: {
|
|
92811
92784
|
className: helperClasses.root,
|
|
92812
92785
|
dividers: true
|
|
92813
|
-
}
|
|
92786
|
+
}, children: jsx(FormProvider, __assign({}, formMethods, { children: jsxs(Box$1, { mt: 2, children: [jsx(YBLabel, { children: 'Config Key ' }), jsx(Typography$1, { variant: "body2", children: data.path }), jsxs(Box$1, { mt: 1, children: [jsx(YBLabel, { children: 'Config Value ' }), (data === null || data === void 0 ? void 0 : data.type) !== RuntimeConfigType.BOOL && (jsx(YBInputField, { style: { marginTop: '8px' }, name: 'configValue', control: control, fullWidth: true, dataTestId: "UpdateRuntimeConfig-ConfigValue" })), (data === null || data === void 0 ? void 0 : data.type) === RuntimeConfigType.BOOL && (jsx(YBToggleField, { name: 'configValue', control: control, dataTestId: "UpdateRuntimeConfig-ConfigValue" }))] })] }) })) }));
|
|
92814
92787
|
};
|
|
92815
92788
|
|
|
92816
92789
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
@@ -92901,7 +92874,7 @@ var RuntimeConfigs = function (_a) {
|
|
|
92901
92874
|
}); },
|
|
92902
92875
|
customBodyRender: function (_value, tableMeta) {
|
|
92903
92876
|
var rowIndex = tableMeta.rowIndex;
|
|
92904
|
-
return (jsxs(Box$1, { children: [jsx("span", { children: runtimeConfigs[rowIndex].path }), jsx(YBTooltip,
|
|
92877
|
+
return (jsxs(Box$1, { children: [jsx("span", { children: runtimeConfigs[rowIndex].path }), jsx(YBTooltip, { title: runtimeConfigs[rowIndex].description, placement: "top", arrow: true, children: jsx(Box$1, { className: classes.tooltip, display: "inline-block", children: jsx("img", { src: InfoMessageIcon, alt: "info" }) }) })] }));
|
|
92905
92878
|
}
|
|
92906
92879
|
}
|
|
92907
92880
|
},
|
|
@@ -92931,7 +92904,7 @@ var RuntimeConfigs = function (_a) {
|
|
|
92931
92904
|
}); },
|
|
92932
92905
|
customBodyRender: function (_value, tableMeta) {
|
|
92933
92906
|
var rowIndex = tableMeta.rowIndex;
|
|
92934
|
-
return (jsx(Box$1, { children: jsx("span",
|
|
92907
|
+
return (jsx(Box$1, { children: jsx("span", { className: runtimeConfigs[rowIndex].overriden ? classes.textColor : '', children: runtimeConfigs[rowIndex].value }) }));
|
|
92935
92908
|
}
|
|
92936
92909
|
}
|
|
92937
92910
|
},
|
|
@@ -92948,19 +92921,19 @@ var RuntimeConfigs = function (_a) {
|
|
|
92948
92921
|
}); },
|
|
92949
92922
|
customBodyRender: function (_value, tableMeta) {
|
|
92950
92923
|
var rowIndex = tableMeta.rowIndex;
|
|
92951
|
-
return (jsxs(Fragment, { children: [jsx(YBButton,
|
|
92924
|
+
return (jsxs(Fragment, { children: [jsx(YBButton, { size: "medium", variant: "ghost", dataTestId: "RuntimeConfigs-UpdateRuntimeConfigButton", onClick: function () { return onUpdateRuntimeConfigButtonClick(runtimeConfigs[rowIndex]); }, children: 'Update' }), jsx(YBButton, { size: "medium", variant: "ghost", dataTestId: "RuntimeConfigs-ResetRuntimeConfigButton", onClick: function () { return onResetRuntimeConfigButtonCLick(runtimeConfigs[rowIndex]); }, children: 'Reset' })] }));
|
|
92952
92925
|
}
|
|
92953
92926
|
}
|
|
92954
92927
|
}
|
|
92955
92928
|
];
|
|
92956
|
-
return (jsx(YBThemeWrapper,
|
|
92929
|
+
return (jsx(YBThemeWrapper, { appName: appName, children: jsxs(Box$1, { mt: 2, ml: 4, mr: 4, className: classes.overrideMuiTableContainer, children: [jsx(Typography$1, { variant: "h4", children: 'Global Runtime Configurations' }), (isFetchRuntimeConfigsError || (isFetchRuntimeConfigsIdle && runtimeConfigs === null)) && (jsxs(Box$1, { className: helperClasses.recommendation, children: [(appName === AppName.YBA || appName === AppName.WEB) && (jsx(YBErrorIndicator, { customErrorMessage: isNonEmptyString(fetchRuntimeConfigsErrorMessage)
|
|
92957
92930
|
? fetchRuntimeConfigsErrorMessage
|
|
92958
92931
|
: DEFAULT_ERROR_MESSAGES.RUNTIME_CONFIGS_ERROR })), appName === AppName.YBM && (jsx(GenericFailure, { text: isNonEmptyString(fetchRuntimeConfigsErrorMessage)
|
|
92959
92932
|
? fetchRuntimeConfigsErrorMessage
|
|
92960
|
-
: DEFAULT_ERROR_MESSAGES.RUNTIME_CONFIGS_ERROR }))] }))
|
|
92933
|
+
: DEFAULT_ERROR_MESSAGES.RUNTIME_CONFIGS_ERROR }))] })), jsx(Box$1, { display: "flex", alignSelf: 'center', mt: 2, children: jsx(YBInput, { placeholder: 'Search', className: classes.searchBox, onChange: function (e) {
|
|
92961
92934
|
setSearchInput(e.target.value);
|
|
92962
92935
|
setCurrentTablePage(0);
|
|
92963
|
-
}, value: searchInput, dataTestId: "RuntimeConfigs-SearchInput" }) })
|
|
92936
|
+
}, value: searchInput, dataTestId: "RuntimeConfigs-SearchInput" }) }), jsx(Box$1, { mt: 2, mb: 4, pb: 2, children: jsx(YBTable, { title: 'Runtime Configuration Variables', className: classes.overrideMuiTable, data: (runtimeConfigs !== null && runtimeConfigs !== void 0 ? runtimeConfigs : []), columns: columns, dataTestId: "RuntimeConfigs-Table", isLoading: isFetchRuntimeConfigsLoading, options: {
|
|
92964
92937
|
filter: true,
|
|
92965
92938
|
search: true,
|
|
92966
92939
|
selectableRowsOnClick: false,
|
|
@@ -92985,7 +92958,7 @@ var RuntimeConfigs = function (_a) {
|
|
|
92985
92958
|
showProgressBars: isFetchRuntimeConfigsLoading
|
|
92986
92959
|
},
|
|
92987
92960
|
onGlobalFilterChange: setSearchInput
|
|
92988
|
-
} }) })
|
|
92961
|
+
} }) }), showUpdateMetadataDialog && selectedRuntimeConfigData && (jsx(UpdateRuntimeConfig, { open: showUpdateMetadataDialog, data: selectedRuntimeConfigData, apiUrl: apiUrl, onActionPerformed: onActionPerformed, onClose: onUpdateRuntimeConfigDialogClose, toast: toast })), showDeleteMetadataDialog && selectedRuntimeConfigData && (jsx(ResetRuntimeConfig, { open: showDeleteMetadataDialog, data: selectedRuntimeConfigData, apiUrl: apiUrl, onActionPerformed: onActionPerformed, onClose: onResetRuntimeConfigDialogClose, toast: toast }))] }) }));
|
|
92989
92962
|
};
|
|
92990
92963
|
|
|
92991
92964
|
export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ADD_COLUMNS_BUTTON_TEXT, ALL, ALL_REGIONS, ALL_ZONES$1 as ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, Aggregation, AnomalyCategory, AnomalyDetectionStatusText, AnomalyType, AnomalyTypeFilter, AppName, BACKGROUND_QUERY_REQUEST_GRAPHS, BackgroundJobCategory, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CPU_TEXT, CQL_QUERY_REQUEST_GRAPHS, ChartType, ClusterLoadOverallTabs, ClusterLoadSubTabs, ClusterRegionSelector, ConfigureUniverseMetadata, DB_CAPS_TAG, DB_TAG, DB_TYPE_TAG, DB_WAIT_EVENT_TYPE_MAPPING, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GROUP_BY_OPERATIONS_LABELS, GraphType, GroupEventsParam, HISTORICAL_QUERY_DATA_LABELS, IN_DEVELOPMENT_MODE, IO_TEXT, 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_MEASURE_TEXT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, NAME_COLOR_MAPPING, NodeState, OutlierSelector, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QUERY_TAG, QUERY_TYPE_TAG, QueryType, QueryTypeMode, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, REGION_ZONE_TAG, RUNTIME_CONFIG_KEYS, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, SqlDrilldownTabs, SqlTabs, TABLET_ID_TAG, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TOOLTIP_TEXT, TPFeatureFlags, TYPE$1 as TYPE, TabletTabs, TransformedBackgroundTasksCategory, URL_TAB_PATH, USER_TAG, VIEW_MORE, VISIBLE_DB_LOAD_METADATA_COLUMNS, VISIBLE_NODE_LOAD_METADATA_COLUMNS, VISIBLE_QUERY_METADATA_COLUMNS, VISIBLE_TABLETS_METADATA_COLUMNS, VISIBLE_TABLET_DRILLDOWN_METADATA_COLUMNS, WaitEventClassification, YBCheckboxField, YBErrorIndicator, YBInfinitePagination, YBInputField, YBPanelItem, YBThemeWrapper, YBToggleField, YSQL_COLUMNS$1 as YSQL_COLUMNS, ZONE_TAG, ZoneNodeSelector, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject$1 as isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, otherSplitSelectors, queryTypeSelectors, removeNullProperties, useCodeBlockStyles };
|