@yugabytedb/perf-advisor-ui 1.0.144 → 1.0.145
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/esm/index.js +10 -9
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -6428,17 +6428,18 @@ var kf = (e) => e !== F.YBM ? "UTC" : Intl.DateTimeFormat().resolvedOptions().ti
|
|
|
6428
6428
|
clusterLoadOverallSubTab: i
|
|
6429
6429
|
};
|
|
6430
6430
|
}, lz = (e, t, r) => {
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
if (
|
|
6434
|
-
else if (e === ze.INSIGHTS)
|
|
6435
|
-
else if (e === ze.CLUSTER_LOAD) if (t === qt.CPU_BY_DATABASE)
|
|
6436
|
-
else if (t === qt.LOAD_BY_DATABASE)
|
|
6431
|
+
const n = window.location.pathname, a = new URLSearchParams(window.location.search).toString(), i = n.match(/^(.*?\/universes\/[^/]+)(?:\/|$)/), o = i ? i[1] : n;
|
|
6432
|
+
let s;
|
|
6433
|
+
if (e === ze.METRICS) s = `${o}/${ut.METRICS}`;
|
|
6434
|
+
else if (e === ze.INSIGHTS) s = `${o}/${ut.INSIGHTS}`;
|
|
6435
|
+
else if (e === ze.CLUSTER_LOAD) if (t === qt.CPU_BY_DATABASE) s = `${o}/${ut.CLUSTER_LOAD}/${ut.CLUSTER_LOAD_DB_CPU}`;
|
|
6436
|
+
else if (t === qt.LOAD_BY_DATABASE) s = `${o}/${ut.CLUSTER_LOAD}/${ut.CLUSTER_LOAD_DB}`;
|
|
6437
6437
|
else {
|
|
6438
|
-
const
|
|
6439
|
-
|
|
6438
|
+
const l = r === Zt.QUERIES ? ut.QUERIES : ut.ANOMALIES;
|
|
6439
|
+
s = `${o}/${ut.CLUSTER_LOAD}/${ut.OVERALL_LOAD}/${l}`;
|
|
6440
6440
|
}
|
|
6441
|
-
|
|
6441
|
+
else s = o;
|
|
6442
|
+
return `${s}${a ? `?${a}` : ""}`;
|
|
6442
6443
|
}, Gv = (e, t, r, n, a = !1) => {
|
|
6443
6444
|
const i = lz(t, r, n), o = new URLSearchParams(window.location.search).toString();
|
|
6444
6445
|
i !== window.location.pathname + (o ? `?${o}` : "") && (a ? window.history.pushState(null, "", i) : window.history.replaceState(null, "", i));
|