react-dashstream 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/EventView/EventView.d.ts.map +1 -1
- package/dist/index.js +313 -296
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e, Fragment as Fe } from "react/jsx-runtime";
|
|
2
2
|
import J, { createContext as it, useContext as ke, useState as R, useCallback as le, useEffect as ge, useMemo as be, useRef as j } from "react";
|
|
3
|
-
const
|
|
3
|
+
const Jt = {
|
|
4
4
|
info: { color: "#00ff88", bg: "rgba(0, 255, 136, 0.1)", border: "#00ff88", icon: "✅" },
|
|
5
5
|
warning: { color: "#ff8c00", bg: "rgba(255, 140, 0, 0.1)", border: "#ff8c00", icon: "⚠️" },
|
|
6
6
|
critical: { color: "#ff2255", bg: "rgba(255, 34, 85, 0.1)", border: "#ff2255", icon: "🛑" }
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function ei({
|
|
9
9
|
name: t,
|
|
10
10
|
status: i,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -146,7 +146,7 @@ function Jt({
|
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
c.map((p, f) => {
|
|
149
|
-
const b =
|
|
149
|
+
const b = Jt[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -182,7 +182,7 @@ const A = {
|
|
|
182
182
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.55)" },
|
|
183
183
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.55)" },
|
|
184
184
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
185
|
-
},
|
|
185
|
+
}, hn = "#00e5ff", gn = "#0055cc", Be = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", pt = "linear-gradient(180deg, rgba(10,25,50,0.35) 0%, rgba(5,15,35,0.25) 60%, rgba(3,10,20,0.15) 100%)";
|
|
186
186
|
function ft(t, i, o) {
|
|
187
187
|
const n = {
|
|
188
188
|
position: "absolute",
|
|
@@ -234,23 +234,23 @@ function ft(t, i, o) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
const dt = "cubic-bezier(0.34, 1.56, 0.64, 1)", Qe = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
-
function
|
|
237
|
+
function Lt(t) {
|
|
238
238
|
return A[t]?.color ?? A.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ti(t, i, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= i ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
243
|
function qe(t, i, o, n) {
|
|
244
244
|
return t === "offline" ? "offline" : t === "critical" && i >= n ? "critical" : (t === "critical" || t === "warning") && i >= o ? "warning" : "online";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function ii({
|
|
247
247
|
component: t,
|
|
248
248
|
onClose: i,
|
|
249
249
|
visible: o,
|
|
250
250
|
sceneWidth: n = 660,
|
|
251
251
|
sceneHeight: r = 600
|
|
252
252
|
}) {
|
|
253
|
-
const { type: a, name: s, status: l, ex: u, ey: c, context: p = {} } = t, f =
|
|
253
|
+
const { type: a, name: s, status: l, ex: u, ey: c, context: p = {} } = t, f = Lt(l), b = u >= n / 2, h = c >= r / 2, y = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
...b ? { right: 28 } : { left: 28 },
|
|
256
256
|
...h ? { bottom: 110 } : { top: 72 }
|
|
@@ -258,23 +258,23 @@ function ti({
|
|
|
258
258
|
let $;
|
|
259
259
|
if (x && x.length > 0)
|
|
260
260
|
$ = x.map((g, w) => {
|
|
261
|
-
const T = g.warnAt ?? 70,
|
|
261
|
+
const T = g.warnAt ?? 70, N = g.critAt ?? 85;
|
|
262
262
|
return {
|
|
263
263
|
id: g.id,
|
|
264
264
|
label: g.label,
|
|
265
265
|
sublabel: g.sublabel,
|
|
266
266
|
value: g.value,
|
|
267
267
|
unit: g.unit ?? "%",
|
|
268
|
-
status: qe(l, g.value, T,
|
|
268
|
+
status: qe(l, g.value, T, N),
|
|
269
269
|
icon: g.icon ?? "cpu",
|
|
270
270
|
delay: w,
|
|
271
271
|
colorOverride: g.color,
|
|
272
272
|
warnAt: T,
|
|
273
|
-
critAt:
|
|
273
|
+
critAt: N
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
|
-
const g = p.cpuLoad ?? p.traffic ?? 50, w = p.memLoad ?? p.queueDepth ?? 60, T = p.capacity ?? 72,
|
|
277
|
+
const g = p.cpuLoad ?? p.traffic ?? 50, w = p.memLoad ?? p.queueDepth ?? 60, T = p.capacity ?? 72, N = qe(l, g, 70, 85), C = qe(l, w, 75, 88), O = qe(l, T, 75, 90);
|
|
278
278
|
$ = [
|
|
279
279
|
{
|
|
280
280
|
id: "cpu",
|
|
@@ -282,7 +282,7 @@ function ti({
|
|
|
282
282
|
sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
|
|
283
283
|
value: g,
|
|
284
284
|
unit: "%",
|
|
285
|
-
status:
|
|
285
|
+
status: N,
|
|
286
286
|
icon: "cpu",
|
|
287
287
|
delay: 0
|
|
288
288
|
},
|
|
@@ -302,7 +302,7 @@ function ti({
|
|
|
302
302
|
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
303
|
value: T,
|
|
304
304
|
unit: "%",
|
|
305
|
-
status:
|
|
305
|
+
status: O,
|
|
306
306
|
icon: "disk",
|
|
307
307
|
delay: 2
|
|
308
308
|
}
|
|
@@ -521,7 +521,7 @@ function ti({
|
|
|
521
521
|
position: "relative",
|
|
522
522
|
zIndex: 2
|
|
523
523
|
},
|
|
524
|
-
children: $.map((g) => /* @__PURE__ */ e(
|
|
524
|
+
children: $.map((g) => /* @__PURE__ */ e(ni, { metric: g, visible: o, accentColor: f }, g.id))
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
527
|
/* @__PURE__ */ d(
|
|
@@ -570,7 +570,7 @@ function ti({
|
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ni({
|
|
574
574
|
metric: t,
|
|
575
575
|
visible: i,
|
|
576
576
|
accentColor: o
|
|
@@ -586,7 +586,7 @@ function ii({
|
|
|
586
586
|
colorOverride: p,
|
|
587
587
|
warnAt: f = 70,
|
|
588
588
|
critAt: b = 85
|
|
589
|
-
} = t, h = p ??
|
|
589
|
+
} = t, h = p ?? ti(a, f, b), y = p ?? Lt(l);
|
|
590
590
|
return /* @__PURE__ */ d(
|
|
591
591
|
"div",
|
|
592
592
|
{
|
|
@@ -618,7 +618,7 @@ function ii({
|
|
|
618
618
|
animation: i ? `comp-dialog-icon-pop 0.5s ${dt} ${0.35 + c * 0.12}s both` : "none"
|
|
619
619
|
},
|
|
620
620
|
children: [
|
|
621
|
-
/* @__PURE__ */ e(
|
|
621
|
+
/* @__PURE__ */ e(oi, { type: u, color: y }),
|
|
622
622
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
623
623
|
"div",
|
|
624
624
|
{
|
|
@@ -813,7 +813,7 @@ function ii({
|
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function oi({ type: t, color: i }) {
|
|
817
817
|
return t === "cpu" ? /* @__PURE__ */ d("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
818
818
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: i, strokeWidth: "1.5" }),
|
|
819
819
|
/* @__PURE__ */ e(
|
|
@@ -899,13 +899,13 @@ function ni({ type: t, color: i }) {
|
|
|
899
899
|
] });
|
|
900
900
|
}
|
|
901
901
|
const ut = it(null), ht = it({ index: 0 });
|
|
902
|
-
function
|
|
902
|
+
function bn() {
|
|
903
903
|
return ke(ut);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function mn() {
|
|
906
906
|
return ke(ht);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function ri({
|
|
909
909
|
children: t,
|
|
910
910
|
logoUrl: i,
|
|
911
911
|
viewState: o,
|
|
@@ -928,10 +928,10 @@ function oi({
|
|
|
928
928
|
onCloseDrill: g,
|
|
929
929
|
selectedSystemStatus: w = "online",
|
|
930
930
|
selectedSystemDbSync: T = !0,
|
|
931
|
-
selectedSystemMetrics:
|
|
931
|
+
selectedSystemMetrics: N,
|
|
932
932
|
selectedSystemAlerts: C
|
|
933
933
|
}) {
|
|
934
|
-
const [
|
|
934
|
+
const [O, U] = R({}), M = le((E, P) => {
|
|
935
935
|
U((B) => {
|
|
936
936
|
const q = B[E];
|
|
937
937
|
return q && q.length === P.length && q.every((oe, te) => oe.level === P[te].level && oe.message === P[te].message) ? B : { ...B, [E]: P };
|
|
@@ -984,9 +984,9 @@ function oi({
|
|
|
984
984
|
]
|
|
985
985
|
), L = ce.map((E, P) => /* @__PURE__ */ e(ht.Provider, { value: { index: P }, children: E }, P)), W = o === "expanded" || o === "expanding" && n >= 4, K = be(() => {
|
|
986
986
|
if (!r) return C;
|
|
987
|
-
const E = C ?? [], B = [...
|
|
987
|
+
const E = C ?? [], B = [...O[r] ?? [], ...E];
|
|
988
988
|
return B.length > 0 ? B : void 0;
|
|
989
|
-
}, [C,
|
|
989
|
+
}, [C, O, r]);
|
|
990
990
|
return /* @__PURE__ */ d(ut.Provider, { value: m, children: [
|
|
991
991
|
/* @__PURE__ */ d("div", { style: { position: "relative", width: h, height: y, margin: "0 auto", flexShrink: 0 }, children: [
|
|
992
992
|
i && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
@@ -1012,18 +1012,18 @@ function oi({
|
|
|
1012
1012
|
L
|
|
1013
1013
|
] }),
|
|
1014
1014
|
r && /* @__PURE__ */ e("div", { onClick: (E) => E.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1015
|
-
|
|
1015
|
+
ei,
|
|
1016
1016
|
{
|
|
1017
1017
|
name: r,
|
|
1018
1018
|
status: w,
|
|
1019
1019
|
dbSync: T,
|
|
1020
1020
|
visible: W && !a,
|
|
1021
|
-
metrics:
|
|
1021
|
+
metrics: N,
|
|
1022
1022
|
alerts: K
|
|
1023
1023
|
}
|
|
1024
1024
|
) }),
|
|
1025
1025
|
a && /* @__PURE__ */ e("div", { onClick: (E) => E.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1026
|
-
|
|
1026
|
+
ii,
|
|
1027
1027
|
{
|
|
1028
1028
|
component: a,
|
|
1029
1029
|
onClose: g,
|
|
@@ -1034,7 +1034,7 @@ function oi({
|
|
|
1034
1034
|
) })
|
|
1035
1035
|
] });
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function ai({
|
|
1038
1038
|
x1: t,
|
|
1039
1039
|
y1: i,
|
|
1040
1040
|
x2: o,
|
|
@@ -1101,14 +1101,14 @@ function ri({
|
|
|
1101
1101
|
] })
|
|
1102
1102
|
] });
|
|
1103
1103
|
}
|
|
1104
|
-
const
|
|
1104
|
+
const li = [
|
|
1105
1105
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1106
1106
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1107
1107
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1108
1108
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1109
1109
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1110
1110
|
];
|
|
1111
|
-
function
|
|
1111
|
+
function si({
|
|
1112
1112
|
children: t,
|
|
1113
1113
|
size: i = 230,
|
|
1114
1114
|
widthRatio: o = 1,
|
|
@@ -1274,7 +1274,7 @@ function li({
|
|
|
1274
1274
|
background: `radial-gradient(ellipse, ${n}88 0%, ${n}33 40%, transparent 72%)`,
|
|
1275
1275
|
filter: "blur(12px)"
|
|
1276
1276
|
} }),
|
|
1277
|
-
|
|
1277
|
+
li.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1278
1278
|
position: "absolute",
|
|
1279
1279
|
width: a * s.scale,
|
|
1280
1280
|
height: i * s.scale,
|
|
@@ -1317,8 +1317,8 @@ function li({
|
|
|
1317
1317
|
}, children: r })
|
|
1318
1318
|
] });
|
|
1319
1319
|
}
|
|
1320
|
-
const Ee = it(null),
|
|
1321
|
-
function
|
|
1320
|
+
const Ee = it(null), di = "cubic-bezier(0.34, 1.56, 0.64, 1)", wt = 330, $t = 340, ci = 660;
|
|
1321
|
+
function Nt({
|
|
1322
1322
|
name: t,
|
|
1323
1323
|
status: i = "online",
|
|
1324
1324
|
connections: o = [],
|
|
@@ -1339,22 +1339,22 @@ function Lt({
|
|
|
1339
1339
|
_onComponentClick: x,
|
|
1340
1340
|
_containerWidth: $
|
|
1341
1341
|
}) {
|
|
1342
|
-
const g = ke(ut), w = ke(ht), T = a ?? w.index,
|
|
1342
|
+
const g = ke(ut), w = ke(ht), T = a ?? w.index, N = s ?? g?.totalSystems ?? 1, C = l ?? g?.carouselRotation ?? 0, O = u ?? g?.viewState ?? "compact", U = c ?? g?.animPhase ?? 0, M = p ?? g?.selectedSystem ?? null, X = f ?? g?.selectedComponent ?? null, ee = b ?? g?.rotateY ?? 20, ce = h ?? g?.autoRotateComponents ?? !0, ne = y ?? g?.componentScale ?? 0.35, m = v ?? g?.drillZoom ?? 3.3, L = k ?? g?.onSelectSystem, W = x ?? g?.onComponentClick, K = g?.onComponentDataUpdate, E = $ ?? g?.containerWidth ?? 950, P = g?.onNodeAlertsChange, B = j(P);
|
|
1343
1343
|
B.current = P;
|
|
1344
1344
|
const q = j(/* @__PURE__ */ new Map()), oe = le(
|
|
1345
|
-
(re, _e,
|
|
1345
|
+
(re, _e, Kt) => {
|
|
1346
1346
|
const ot = q.current;
|
|
1347
|
-
_e && _e !== "online" ? ot.set(re, { severity: _e, msg:
|
|
1347
|
+
_e && _e !== "online" ? ot.set(re, { severity: _e, msg: Kt }) : ot.delete(re);
|
|
1348
1348
|
const St = [];
|
|
1349
|
-
for (const [
|
|
1349
|
+
for (const [Zt, rt] of ot)
|
|
1350
1350
|
St.push({
|
|
1351
1351
|
level: rt.severity === "critical" || rt.severity === "offline" ? "critical" : "warning",
|
|
1352
|
-
message: `${
|
|
1352
|
+
message: `${Zt}: ${rt.msg}`
|
|
1353
1353
|
});
|
|
1354
1354
|
B.current?.(t, St);
|
|
1355
1355
|
},
|
|
1356
1356
|
[t]
|
|
1357
|
-
), te = M === t, H = te && (
|
|
1357
|
+
), te = M === t, H = te && (O === "expanded" || O === "expanding" && U >= 1), pe = !H, me = (E - ci) / 2, ye = wt + me, ve = T / N * Math.PI * 2 + C, He = 420, Pe = 160, fe = ye + Math.cos(ve) * He, S = 450 + Math.sin(ve) * Pe, Q = Math.round(S), ue = !te && (O === "expanding" || O === "expanded"), G = ue ? 0 : 1, Z = pe ? 0.3 + (Math.sin(ve) + 1) * 0.1 : 1, Y = pe ? Z : ne, Ae = O === "compact" || O === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", Ve = te && X, nt = Ve ? m : 1, _t = X?.ex ?? 330, jt = X?.ey ?? 300, { size: Xt = 90, color: qt = "#00e5ff", widthRatio: Qt = 3 } = n ?? {}, Gt = {
|
|
1358
1358
|
name: t,
|
|
1359
1359
|
isSelected: te,
|
|
1360
1360
|
isExpandedPos: H,
|
|
@@ -1373,7 +1373,7 @@ function Lt({
|
|
|
1373
1373
|
expandedOffsetX: me,
|
|
1374
1374
|
registerNodeAlert: oe
|
|
1375
1375
|
};
|
|
1376
|
-
return /* @__PURE__ */ e(Ee.Provider, { value:
|
|
1376
|
+
return /* @__PURE__ */ e(Ee.Provider, { value: Gt, children: /* @__PURE__ */ d(
|
|
1377
1377
|
"div",
|
|
1378
1378
|
{
|
|
1379
1379
|
style: {
|
|
@@ -1384,11 +1384,11 @@ function Lt({
|
|
|
1384
1384
|
height: "100%",
|
|
1385
1385
|
pointerEvents: "none",
|
|
1386
1386
|
opacity: G,
|
|
1387
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1387
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${di}`,
|
|
1388
1388
|
filter: pe && Math.sin(ve) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1389
1389
|
zIndex: te ? 500 : ue ? 0 : Q,
|
|
1390
1390
|
transformOrigin: `${ye}px ${$t}px`,
|
|
1391
|
-
transform: Ve ? `translate(${-(
|
|
1391
|
+
transform: Ve ? `translate(${-(_t - wt) * nt}px, ${-(jt - $t) * nt}px) scale(${nt})` : "none"
|
|
1392
1392
|
},
|
|
1393
1393
|
children: [
|
|
1394
1394
|
pe && !ue && /* @__PURE__ */ e(
|
|
@@ -1497,7 +1497,7 @@ function Lt({
|
|
|
1497
1497
|
transition: Ae
|
|
1498
1498
|
},
|
|
1499
1499
|
children: o.map((re, _e) => /* @__PURE__ */ e(
|
|
1500
|
-
|
|
1500
|
+
ai,
|
|
1501
1501
|
{
|
|
1502
1502
|
x1: re.from[0],
|
|
1503
1503
|
y1: re.from[1],
|
|
@@ -1522,7 +1522,7 @@ function Lt({
|
|
|
1522
1522
|
transition: Ae,
|
|
1523
1523
|
zIndex: 1
|
|
1524
1524
|
},
|
|
1525
|
-
children: /* @__PURE__ */ e(
|
|
1525
|
+
children: /* @__PURE__ */ e(si, { size: Xt, color: qt, widthRatio: Qt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1526
1526
|
}
|
|
1527
1527
|
),
|
|
1528
1528
|
r
|
|
@@ -1555,7 +1555,7 @@ function V({
|
|
|
1555
1555
|
}
|
|
1556
1556
|
let w = "translate(0, -50%)";
|
|
1557
1557
|
u === "left" && (w = "translate(-100%, -50%)"), u === "top" && (w = "translate(-50%, -100%)"), u === "bottom" && (w = "translate(-50%, 0)");
|
|
1558
|
-
const T = u === "left" ? -8 : u === "right" ? 8 : 0,
|
|
1558
|
+
const T = u === "left" ? -8 : u === "right" ? 8 : 0, N = u === "top" ? -8 : u === "bottom" ? 8 : 0;
|
|
1559
1559
|
return /* @__PURE__ */ d(
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
@@ -1605,7 +1605,7 @@ function V({
|
|
|
1605
1605
|
top: $,
|
|
1606
1606
|
transform: w,
|
|
1607
1607
|
marginLeft: T,
|
|
1608
|
-
marginTop:
|
|
1608
|
+
marginTop: N,
|
|
1609
1609
|
background: "repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px), rgba(2, 8, 16, 0.82)",
|
|
1610
1610
|
border: `1px solid ${h}55`,
|
|
1611
1611
|
borderLeft: `2px solid ${h}`,
|
|
@@ -1677,21 +1677,21 @@ function V({
|
|
|
1677
1677
|
}
|
|
1678
1678
|
);
|
|
1679
1679
|
}
|
|
1680
|
-
const It = 70, Ot = 85,
|
|
1680
|
+
const It = 70, Ot = 85, pi = {
|
|
1681
1681
|
online: 0,
|
|
1682
1682
|
warning: 1,
|
|
1683
1683
|
offline: 2,
|
|
1684
1684
|
critical: 3
|
|
1685
1685
|
};
|
|
1686
1686
|
function kt(t) {
|
|
1687
|
-
return
|
|
1687
|
+
return pi[t] ?? 0;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function fi(t) {
|
|
1690
1690
|
if (!t) return null;
|
|
1691
1691
|
const i = t.dialogMetrics ?? t.context?.dialogMetrics;
|
|
1692
|
-
return i && i.length > 0 ?
|
|
1692
|
+
return i && i.length > 0 ? ui(i) : hi(t.context);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function ui(t) {
|
|
1695
1695
|
let i = null;
|
|
1696
1696
|
for (const r of t) {
|
|
1697
1697
|
if (r.color) continue;
|
|
@@ -1706,7 +1706,7 @@ function fi(t) {
|
|
|
1706
1706
|
internalRef: o.id.toUpperCase()
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function hi(t) {
|
|
1710
1710
|
if (!t) return null;
|
|
1711
1711
|
const i = [];
|
|
1712
1712
|
t.cpuLoad !== void 0 && i.push({ label: "CPU", value: t.cpuLoad, id: "CPU" }), t.memLoad !== void 0 && i.push({ label: "MEM", value: t.memLoad, id: "HEAP" }), t.traffic !== void 0 && i.push({ label: "TRAFFIC", value: t.traffic, id: "NET" }), t.queueDepth !== void 0 && i.push({ label: "QUEUE", value: t.queueDepth, id: "QUEUE" }), t.capacity !== void 0 && i.push({ label: "CAPACITY", value: t.capacity, id: "DISK" });
|
|
@@ -1721,8 +1721,8 @@ function ui(t) {
|
|
|
1721
1721
|
internalRef: n.id
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const o = t?.status ?? "online", n = kt(o), r =
|
|
1724
|
+
function gi(t, i) {
|
|
1725
|
+
const o = t?.status ?? "online", n = kt(o), r = fi(t), a = r ? kt(r.severity) : 0, s = n >= a ? o : r.severity;
|
|
1726
1726
|
if (n === 0 && a === 0)
|
|
1727
1727
|
return { effectiveSeverity: "online", callout: null };
|
|
1728
1728
|
let l;
|
|
@@ -1759,13 +1759,13 @@ function D({
|
|
|
1759
1759
|
groupScale: g,
|
|
1760
1760
|
effectiveScale: w,
|
|
1761
1761
|
transitionValue: T,
|
|
1762
|
-
onComponentClick:
|
|
1762
|
+
onComponentClick: N,
|
|
1763
1763
|
selectedComponentName: C,
|
|
1764
|
-
expandedOffsetX:
|
|
1764
|
+
expandedOffsetX: O,
|
|
1765
1765
|
registerNodeAlert: U,
|
|
1766
1766
|
onComponentDataUpdate: M
|
|
1767
|
-
} = y, ee = p === 0 || y.isSelected && k >= p ? 1 : 0, ce = x + o.x, ne = $ + o.y, m = v ? t +
|
|
1768
|
-
() =>
|
|
1767
|
+
} = y, ee = p === 0 || y.isSelected && k >= p ? 1 : 0, ce = x + o.x, ne = $ + o.y, m = v ? t + O : ce, L = v ? i : ne, W = f !== void 0 ? f : y.isCompact ? g : w, K = !!c && !!C && c.name === C, { effectiveSeverity: E, callout: P } = be(
|
|
1768
|
+
() => gi(c, h),
|
|
1769
1769
|
[c, h]
|
|
1770
1770
|
);
|
|
1771
1771
|
ge(() => (c?.name && U && U(
|
|
@@ -1798,7 +1798,7 @@ function D({
|
|
|
1798
1798
|
graphSeries: S.graphSeries
|
|
1799
1799
|
});
|
|
1800
1800
|
}, [te, K]);
|
|
1801
|
-
const pe = E !== "online" ? A[E]?.color ?? a : a, me = E === "offline" ? "#4a6a8a" : pe, ye = c && v &&
|
|
1801
|
+
const pe = E !== "online" ? A[E]?.color ?? a : a, me = E === "offline" ? "#4a6a8a" : pe, ye = c && v && N ? () => N({
|
|
1802
1802
|
type: c.type,
|
|
1803
1803
|
name: c.name,
|
|
1804
1804
|
status: c.status,
|
|
@@ -1844,7 +1844,7 @@ function D({
|
|
|
1844
1844
|
}
|
|
1845
1845
|
),
|
|
1846
1846
|
b ? fe : /* @__PURE__ */ e(
|
|
1847
|
-
|
|
1847
|
+
bi,
|
|
1848
1848
|
{
|
|
1849
1849
|
statusColor: me,
|
|
1850
1850
|
label: s,
|
|
@@ -1878,7 +1878,7 @@ function D({
|
|
|
1878
1878
|
)
|
|
1879
1879
|
] });
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function bi({
|
|
1882
1882
|
children: t,
|
|
1883
1883
|
statusColor: i,
|
|
1884
1884
|
label: o,
|
|
@@ -1961,7 +1961,7 @@ function gi({
|
|
|
1961
1961
|
}
|
|
1962
1962
|
);
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Dt({ synced: t, latencyMs: i }) {
|
|
1965
1965
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1966
1966
|
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1967
1967
|
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
@@ -1997,7 +1997,7 @@ function Nt({ synced: t, latencyMs: i }) {
|
|
|
1997
1997
|
] });
|
|
1998
1998
|
}
|
|
1999
1999
|
const xe = 140, ae = 240, $e = 160, Te = ft(xe, ae, $e);
|
|
2000
|
-
function
|
|
2000
|
+
function mi({
|
|
2001
2001
|
cfg: t,
|
|
2002
2002
|
name: i,
|
|
2003
2003
|
cpuLoad: o,
|
|
@@ -2409,7 +2409,7 @@ function bi({
|
|
|
2409
2409
|
}
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function yi() {
|
|
2413
2413
|
return /* @__PURE__ */ d(
|
|
2414
2414
|
"div",
|
|
2415
2415
|
{
|
|
@@ -2623,7 +2623,7 @@ function Rt({
|
|
|
2623
2623
|
}
|
|
2624
2624
|
);
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function vi({ cpuLoad: t }) {
|
|
2627
2627
|
const i = t / 100, o = i > 0.75 ? "rgba(255,34,85,0.16)" : i > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", n = Math.floor(($e - 18) / 7);
|
|
2628
2628
|
return /* @__PURE__ */ d(
|
|
2629
2629
|
"div",
|
|
@@ -2820,7 +2820,7 @@ function Ce({
|
|
|
2820
2820
|
},
|
|
2821
2821
|
children: [
|
|
2822
2822
|
/* @__PURE__ */ e("div", { style: Te.front, children: /* @__PURE__ */ e(
|
|
2823
|
-
|
|
2823
|
+
mi,
|
|
2824
2824
|
{
|
|
2825
2825
|
cfg: v,
|
|
2826
2826
|
name: s,
|
|
@@ -2831,10 +2831,10 @@ function Ce({
|
|
|
2831
2831
|
brandLabel: c
|
|
2832
2832
|
}
|
|
2833
2833
|
) }),
|
|
2834
|
-
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(
|
|
2834
|
+
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(yi, {}) }),
|
|
2835
2835
|
/* @__PURE__ */ e("div", { style: Te.left, children: /* @__PURE__ */ e(Rt, { side: "left", color: v.color, brandLabel: c }) }),
|
|
2836
2836
|
/* @__PURE__ */ e("div", { style: Te.right, children: /* @__PURE__ */ e(Rt, { side: "right", color: v.color, brandLabel: c }) }),
|
|
2837
|
-
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(
|
|
2837
|
+
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(vi, { cpuLoad: l }) }),
|
|
2838
2838
|
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e(
|
|
2839
2839
|
"div",
|
|
2840
2840
|
{
|
|
@@ -2854,7 +2854,7 @@ function Ce({
|
|
|
2854
2854
|
}
|
|
2855
2855
|
);
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function yn({
|
|
2858
2858
|
ex: t,
|
|
2859
2859
|
ey: i,
|
|
2860
2860
|
compactOffset: o,
|
|
@@ -2900,11 +2900,11 @@ function mn({
|
|
|
2900
2900
|
}
|
|
2901
2901
|
);
|
|
2902
2902
|
}
|
|
2903
|
-
const ct = 12, Re = 55, he = Re * 2,
|
|
2903
|
+
const ct = 12, Re = 55, he = Re * 2, Oe = 52, gt = 10, at = 3 * Oe + 2 * gt, Le = 2 * Math.PI * Re / ct, lt = Array.from({ length: ct }, (t, i) => i / ct * 360);
|
|
2904
2904
|
function st(t) {
|
|
2905
2905
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function xi({
|
|
2908
2908
|
diskY: t,
|
|
2909
2909
|
diskIdx: i,
|
|
2910
2910
|
cfg: o,
|
|
@@ -2921,7 +2921,7 @@ function vi({
|
|
|
2921
2921
|
style: {
|
|
2922
2922
|
position: "absolute",
|
|
2923
2923
|
width: Le,
|
|
2924
|
-
height:
|
|
2924
|
+
height: Oe,
|
|
2925
2925
|
left: (he - Le) / 2,
|
|
2926
2926
|
top: t,
|
|
2927
2927
|
transform: `rotateY(${s}deg) translateZ(${Re}px)`,
|
|
@@ -3047,7 +3047,7 @@ function vi({
|
|
|
3047
3047
|
width: he + 4,
|
|
3048
3048
|
height: he + 4,
|
|
3049
3049
|
left: -2,
|
|
3050
|
-
top: t +
|
|
3050
|
+
top: t + Oe - Re,
|
|
3051
3051
|
borderRadius: "50%",
|
|
3052
3052
|
transform: "rotateX(-90deg)",
|
|
3053
3053
|
backfaceVisibility: "hidden",
|
|
@@ -3081,7 +3081,7 @@ function vi({
|
|
|
3081
3081
|
width: Le + 1.5,
|
|
3082
3082
|
height: 6,
|
|
3083
3083
|
left: (he - Le - 1.5) / 2,
|
|
3084
|
-
top: t +
|
|
3084
|
+
top: t + Oe - 3,
|
|
3085
3085
|
transform: `rotateY(${s}deg) translateZ(${Re + 1.5}px)`,
|
|
3086
3086
|
backfaceVisibility: "hidden",
|
|
3087
3087
|
background: o.color,
|
|
@@ -3102,7 +3102,7 @@ function vi({
|
|
|
3102
3102
|
width: Le,
|
|
3103
3103
|
height: gt,
|
|
3104
3104
|
left: (he - Le) / 2,
|
|
3105
|
-
top: t +
|
|
3105
|
+
top: t + Oe,
|
|
3106
3106
|
transform: `rotateY(${s}deg) translateZ(${Re}px)`,
|
|
3107
3107
|
backfaceVisibility: "hidden",
|
|
3108
3108
|
background: `rgb(${c},${p},${f})`
|
|
@@ -3236,9 +3236,9 @@ function Xe({
|
|
|
3236
3236
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3237
3237
|
},
|
|
3238
3238
|
children: [0, 1, 2].map((h) => /* @__PURE__ */ e(
|
|
3239
|
-
|
|
3239
|
+
xi,
|
|
3240
3240
|
{
|
|
3241
|
-
diskY: h * (
|
|
3241
|
+
diskY: h * (Oe + gt),
|
|
3242
3242
|
diskIdx: h,
|
|
3243
3243
|
cfg: b,
|
|
3244
3244
|
hasRingBelow: h < 2,
|
|
@@ -3255,7 +3255,7 @@ function Xe({
|
|
|
3255
3255
|
}
|
|
3256
3256
|
);
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function vn({
|
|
3259
3259
|
ex: t,
|
|
3260
3260
|
ey: i,
|
|
3261
3261
|
compactOffset: o,
|
|
@@ -3411,7 +3411,7 @@ function bt({ status: t = "online", scale: i = 1 }) {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
);
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function xn({
|
|
3415
3415
|
ex: t,
|
|
3416
3416
|
ey: i,
|
|
3417
3417
|
compactOffset: o,
|
|
@@ -3434,8 +3434,8 @@ function vn({
|
|
|
3434
3434
|
}
|
|
3435
3435
|
);
|
|
3436
3436
|
}
|
|
3437
|
-
const Se = 190, se = 72, De = 120,
|
|
3438
|
-
function
|
|
3437
|
+
const Se = 190, se = 72, De = 120, Ne = ft(Se, se, De);
|
|
3438
|
+
function Si({
|
|
3439
3439
|
cfg: t,
|
|
3440
3440
|
name: i,
|
|
3441
3441
|
traffic: o,
|
|
@@ -3697,7 +3697,7 @@ function xi({
|
|
|
3697
3697
|
}
|
|
3698
3698
|
);
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function wi() {
|
|
3701
3701
|
return /* @__PURE__ */ d(
|
|
3702
3702
|
"div",
|
|
3703
3703
|
{
|
|
@@ -3842,7 +3842,7 @@ function Ct({ side: t, color: i }) {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
);
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3845
|
+
function $i({ traffic: t }) {
|
|
3846
3846
|
const i = Math.floor((De - 14) / 7);
|
|
3847
3847
|
return /* @__PURE__ */ d(
|
|
3848
3848
|
"div",
|
|
@@ -4024,8 +4024,8 @@ function mt({
|
|
|
4024
4024
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4025
4025
|
},
|
|
4026
4026
|
children: [
|
|
4027
|
-
/* @__PURE__ */ e("div", { style:
|
|
4028
|
-
|
|
4027
|
+
/* @__PURE__ */ e("div", { style: Ne.front, children: /* @__PURE__ */ e(
|
|
4028
|
+
Si,
|
|
4029
4029
|
{
|
|
4030
4030
|
cfg: y,
|
|
4031
4031
|
name: s,
|
|
@@ -4034,11 +4034,11 @@ function mt({
|
|
|
4034
4034
|
compact: c
|
|
4035
4035
|
}
|
|
4036
4036
|
) }),
|
|
4037
|
-
/* @__PURE__ */ e("div", { style:
|
|
4038
|
-
/* @__PURE__ */ e("div", { style:
|
|
4039
|
-
/* @__PURE__ */ e("div", { style:
|
|
4040
|
-
/* @__PURE__ */ e("div", { style:
|
|
4041
|
-
/* @__PURE__ */ e("div", { style:
|
|
4037
|
+
/* @__PURE__ */ e("div", { style: Ne.back, children: /* @__PURE__ */ e(wi, {}) }),
|
|
4038
|
+
/* @__PURE__ */ e("div", { style: Ne.left, children: /* @__PURE__ */ e(Ct, { side: "left", color: y.color }) }),
|
|
4039
|
+
/* @__PURE__ */ e("div", { style: Ne.right, children: /* @__PURE__ */ e(Ct, { side: "right", color: y.color }) }),
|
|
4040
|
+
/* @__PURE__ */ e("div", { style: Ne.top, children: /* @__PURE__ */ e($i, { traffic: l }) }),
|
|
4041
|
+
/* @__PURE__ */ e("div", { style: Ne.bottom, children: /* @__PURE__ */ e("div", { style: { width: Se, height: De, background: "#020508" } }) })
|
|
4042
4042
|
]
|
|
4043
4043
|
}
|
|
4044
4044
|
)
|
|
@@ -4048,7 +4048,7 @@ function mt({
|
|
|
4048
4048
|
}
|
|
4049
4049
|
);
|
|
4050
4050
|
}
|
|
4051
|
-
function
|
|
4051
|
+
function Sn({
|
|
4052
4052
|
ex: t,
|
|
4053
4053
|
ey: i,
|
|
4054
4054
|
compactOffset: o,
|
|
@@ -4093,13 +4093,13 @@ function xn({
|
|
|
4093
4093
|
}
|
|
4094
4094
|
);
|
|
4095
4095
|
}
|
|
4096
|
-
const we = 190, de = 72, Me = 120,
|
|
4096
|
+
const we = 190, de = 72, Me = 120, Ie = ft(we, de, Me), Et = {
|
|
4097
4097
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
4098
4098
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
4099
4099
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
4100
4100
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
4101
4101
|
};
|
|
4102
|
-
function
|
|
4102
|
+
function ki({
|
|
4103
4103
|
cfg: t,
|
|
4104
4104
|
name: i,
|
|
4105
4105
|
queueDepth: o,
|
|
@@ -4358,7 +4358,7 @@ function $i({
|
|
|
4358
4358
|
}
|
|
4359
4359
|
);
|
|
4360
4360
|
}
|
|
4361
|
-
function
|
|
4361
|
+
function Ri() {
|
|
4362
4362
|
return /* @__PURE__ */ d(
|
|
4363
4363
|
"div",
|
|
4364
4364
|
{
|
|
@@ -4503,7 +4503,7 @@ function Pt({ side: t, color: i }) {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
);
|
|
4505
4505
|
}
|
|
4506
|
-
function
|
|
4506
|
+
function Ci({ queueDepth: t, color: i }) {
|
|
4507
4507
|
const o = Math.floor((Me - 14) / 7);
|
|
4508
4508
|
return /* @__PURE__ */ d(
|
|
4509
4509
|
"div",
|
|
@@ -4562,7 +4562,7 @@ function Ri({ queueDepth: t, color: i }) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
);
|
|
4564
4564
|
}
|
|
4565
|
-
function
|
|
4565
|
+
function Mt({
|
|
4566
4566
|
rotateX: t = -20,
|
|
4567
4567
|
rotateY: i = 20,
|
|
4568
4568
|
rotateZ: o = 0,
|
|
@@ -4686,8 +4686,8 @@ function Dt({
|
|
|
4686
4686
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4687
4687
|
},
|
|
4688
4688
|
children: [
|
|
4689
|
-
/* @__PURE__ */ e("div", { style:
|
|
4690
|
-
|
|
4689
|
+
/* @__PURE__ */ e("div", { style: Ie.front, children: /* @__PURE__ */ e(
|
|
4690
|
+
ki,
|
|
4691
4691
|
{
|
|
4692
4692
|
cfg: v,
|
|
4693
4693
|
name: s,
|
|
@@ -4697,11 +4697,11 @@ function Dt({
|
|
|
4697
4697
|
compact: p
|
|
4698
4698
|
}
|
|
4699
4699
|
) }),
|
|
4700
|
-
/* @__PURE__ */ e("div", { style:
|
|
4701
|
-
/* @__PURE__ */ e("div", { style:
|
|
4702
|
-
/* @__PURE__ */ e("div", { style:
|
|
4703
|
-
/* @__PURE__ */ e("div", { style:
|
|
4704
|
-
/* @__PURE__ */ e("div", { style:
|
|
4700
|
+
/* @__PURE__ */ e("div", { style: Ie.back, children: /* @__PURE__ */ e(Ri, {}) }),
|
|
4701
|
+
/* @__PURE__ */ e("div", { style: Ie.left, children: /* @__PURE__ */ e(Pt, { side: "left", color: v.color }) }),
|
|
4702
|
+
/* @__PURE__ */ e("div", { style: Ie.right, children: /* @__PURE__ */ e(Pt, { side: "right", color: v.color }) }),
|
|
4703
|
+
/* @__PURE__ */ e("div", { style: Ie.top, children: /* @__PURE__ */ e(Ci, { queueDepth: l, color: v.color }) }),
|
|
4704
|
+
/* @__PURE__ */ e("div", { style: Ie.bottom, children: /* @__PURE__ */ e("div", { style: { width: we, height: Me, background: "#020508" } }) })
|
|
4705
4705
|
]
|
|
4706
4706
|
}
|
|
4707
4707
|
)
|
|
@@ -4711,13 +4711,13 @@ function Dt({
|
|
|
4711
4711
|
}
|
|
4712
4712
|
);
|
|
4713
4713
|
}
|
|
4714
|
-
const
|
|
4714
|
+
const Ei = {
|
|
4715
4715
|
online: "#bb55ff",
|
|
4716
4716
|
warning: "#ff8c00",
|
|
4717
4717
|
critical: "#ff2255",
|
|
4718
4718
|
offline: "#1e3a5a"
|
|
4719
4719
|
};
|
|
4720
|
-
function
|
|
4720
|
+
function wn({
|
|
4721
4721
|
ex: t,
|
|
4722
4722
|
ey: i,
|
|
4723
4723
|
compactOffset: o,
|
|
@@ -4736,7 +4736,7 @@ function Sn({
|
|
|
4736
4736
|
graphSeries: v,
|
|
4737
4737
|
alert: k
|
|
4738
4738
|
}) {
|
|
4739
|
-
const x =
|
|
4739
|
+
const x = Ei[a] ?? l ?? "#bb55ff";
|
|
4740
4740
|
return /* @__PURE__ */ e(
|
|
4741
4741
|
D,
|
|
4742
4742
|
{
|
|
@@ -4760,7 +4760,7 @@ function Sn({
|
|
|
4760
4760
|
},
|
|
4761
4761
|
alert: k,
|
|
4762
4762
|
children: /* @__PURE__ */ e(
|
|
4763
|
-
|
|
4763
|
+
Mt,
|
|
4764
4764
|
{
|
|
4765
4765
|
status: a,
|
|
4766
4766
|
queueDepth: p,
|
|
@@ -4777,7 +4777,7 @@ function z(t, i, o = 24) {
|
|
|
4777
4777
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * i + (Math.random() - 0.5) * 10));
|
|
4778
4778
|
});
|
|
4779
4779
|
}
|
|
4780
|
-
function
|
|
4780
|
+
function Pi({ data: t, color: i, height: o = 28 }) {
|
|
4781
4781
|
const r = o, a = Math.max(...t, 1), s = t.map((l, u) => {
|
|
4782
4782
|
const c = u / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4783
4783
|
return `${c},${p}`;
|
|
@@ -4795,7 +4795,7 @@ function Ei({ data: t, color: i, height: o = 28 }) {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
) });
|
|
4797
4797
|
}
|
|
4798
|
-
function
|
|
4798
|
+
function Ai({
|
|
4799
4799
|
type: t,
|
|
4800
4800
|
name: i,
|
|
4801
4801
|
context: o = {},
|
|
@@ -4803,7 +4803,7 @@ function Pi({
|
|
|
4803
4803
|
animPhase: r,
|
|
4804
4804
|
series: a
|
|
4805
4805
|
}) {
|
|
4806
|
-
const s = n === "critical" || n === "offline" ? "#ff2255" : n === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4806
|
+
const s = n === "critical" || n === "offline" ? "#ff2255" : n === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : Ti(t, o), u = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
|
|
4807
4807
|
return /* @__PURE__ */ d(
|
|
4808
4808
|
"div",
|
|
4809
4809
|
{
|
|
@@ -4858,7 +4858,7 @@ function Pi({
|
|
|
4858
4858
|
p.unit
|
|
4859
4859
|
] })
|
|
4860
4860
|
] }),
|
|
4861
|
-
/* @__PURE__ */ e(
|
|
4861
|
+
/* @__PURE__ */ e(Pi, { data: p.data, color: p.color, height: 26 })
|
|
4862
4862
|
]
|
|
4863
4863
|
},
|
|
4864
4864
|
p.id
|
|
@@ -4867,7 +4867,7 @@ function Pi({
|
|
|
4867
4867
|
}
|
|
4868
4868
|
);
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function Ti(t, i) {
|
|
4871
4871
|
if (t === "server") {
|
|
4872
4872
|
const o = i.cpuLoad ?? 50, n = i.memLoad ?? 60;
|
|
4873
4873
|
return [
|
|
@@ -4903,7 +4903,7 @@ function Ai(t, i) {
|
|
|
4903
4903
|
}
|
|
4904
4904
|
return [];
|
|
4905
4905
|
}
|
|
4906
|
-
function
|
|
4906
|
+
function Wt({
|
|
4907
4907
|
w: t,
|
|
4908
4908
|
h: i,
|
|
4909
4909
|
color: o,
|
|
@@ -5210,7 +5210,7 @@ function We({
|
|
|
5210
5210
|
status: o = "online",
|
|
5211
5211
|
activity: n = !1
|
|
5212
5212
|
}) {
|
|
5213
|
-
return /* @__PURE__ */ d(
|
|
5213
|
+
return /* @__PURE__ */ d(Wt, { w: 56, h: 22, color: t, label: i, status: o, children: [
|
|
5214
5214
|
/* @__PURE__ */ e(
|
|
5215
5215
|
"div",
|
|
5216
5216
|
{
|
|
@@ -5243,7 +5243,7 @@ function We({
|
|
|
5243
5243
|
)
|
|
5244
5244
|
] });
|
|
5245
5245
|
}
|
|
5246
|
-
function
|
|
5246
|
+
function zt({
|
|
5247
5247
|
color: t = "#00e5ff",
|
|
5248
5248
|
label: i = "NET",
|
|
5249
5249
|
status: o = "online"
|
|
@@ -5312,7 +5312,7 @@ function _({
|
|
|
5312
5312
|
label: i = "THREAD",
|
|
5313
5313
|
status: o = "online"
|
|
5314
5314
|
}) {
|
|
5315
|
-
return /* @__PURE__ */ e(
|
|
5315
|
+
return /* @__PURE__ */ e(Wt, { w: 44, h: 28, color: t, label: i, status: o });
|
|
5316
5316
|
}
|
|
5317
5317
|
function Ge({
|
|
5318
5318
|
color: t = "#ff8c00",
|
|
@@ -5468,7 +5468,7 @@ function ie({
|
|
|
5468
5468
|
}
|
|
5469
5469
|
);
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5471
|
+
function Li(t, i, o, n) {
|
|
5472
5472
|
const r = o === "online" ? "online" : o;
|
|
5473
5473
|
return t === "server" ? [
|
|
5474
5474
|
{
|
|
@@ -5572,7 +5572,7 @@ function Ti(t, i, o, n) {
|
|
|
5572
5572
|
}
|
|
5573
5573
|
] : [];
|
|
5574
5574
|
}
|
|
5575
|
-
const F = "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5575
|
+
const F = "cubic-bezier(0.34, 1.56, 0.64, 1)", Ni = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5576
5576
|
function Ii({ items: t, revealPhase: i }) {
|
|
5577
5577
|
return /* @__PURE__ */ e(
|
|
5578
5578
|
"div",
|
|
@@ -5705,7 +5705,7 @@ function Oi({
|
|
|
5705
5705
|
{
|
|
5706
5706
|
key: "net",
|
|
5707
5707
|
delay: 8,
|
|
5708
|
-
el: /* @__PURE__ */ e(
|
|
5708
|
+
el: /* @__PURE__ */ e(zt, { color: a, label: "NET", status: n[8]?.status })
|
|
5709
5709
|
}
|
|
5710
5710
|
];
|
|
5711
5711
|
return /* @__PURE__ */ e(
|
|
@@ -5910,7 +5910,7 @@ function Oi({
|
|
|
5910
5910
|
}
|
|
5911
5911
|
return null;
|
|
5912
5912
|
}
|
|
5913
|
-
function
|
|
5913
|
+
function $n({
|
|
5914
5914
|
type: t,
|
|
5915
5915
|
name: i,
|
|
5916
5916
|
status: o,
|
|
@@ -5920,7 +5920,7 @@ function wn({
|
|
|
5920
5920
|
subComponents: s,
|
|
5921
5921
|
graphSeries: l
|
|
5922
5922
|
}) {
|
|
5923
|
-
const u =
|
|
5923
|
+
const u = Li(t, i, o, a), c = A[o]?.color ?? A.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", b = r >= 0.2 ? "50%" : "0%", h = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5924
5924
|
return /* @__PURE__ */ d(
|
|
5925
5925
|
"div",
|
|
5926
5926
|
{
|
|
@@ -5944,13 +5944,13 @@ function wn({
|
|
|
5944
5944
|
backdropFilter: "blur(10px)",
|
|
5945
5945
|
WebkitBackdropFilter: "blur(10px)",
|
|
5946
5946
|
opacity: p,
|
|
5947
|
-
transition: `opacity 0.4s ${
|
|
5947
|
+
transition: `opacity 0.4s ${Ni}`
|
|
5948
5948
|
},
|
|
5949
5949
|
onClick: n
|
|
5950
5950
|
}
|
|
5951
5951
|
),
|
|
5952
5952
|
/* @__PURE__ */ e(
|
|
5953
|
-
|
|
5953
|
+
Ai,
|
|
5954
5954
|
{
|
|
5955
5955
|
type: t,
|
|
5956
5956
|
name: i,
|
|
@@ -6141,7 +6141,7 @@ function wn({
|
|
|
6141
6141
|
}
|
|
6142
6142
|
);
|
|
6143
6143
|
}
|
|
6144
|
-
function
|
|
6144
|
+
function Ut({ onSubmit: t }) {
|
|
6145
6145
|
const [i, o] = R(""), [n, r] = R(""), [a, s] = R(null), [l, u] = R(!1), c = i.trim().length > 0 && n.trim().length > 0;
|
|
6146
6146
|
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ d("form", { className: "cred-panel", onSubmit: (f) => {
|
|
6147
6147
|
f.preventDefault(), c && t({ accessKey: i.trim(), secretKey: n.trim() });
|
|
@@ -6233,27 +6233,27 @@ function zt({ onSubmit: t }) {
|
|
|
6233
6233
|
] }) });
|
|
6234
6234
|
}
|
|
6235
6235
|
const yt = it(null);
|
|
6236
|
-
function
|
|
6236
|
+
function Di() {
|
|
6237
6237
|
const t = ke(yt);
|
|
6238
6238
|
if (!t)
|
|
6239
6239
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6240
6240
|
return t;
|
|
6241
6241
|
}
|
|
6242
|
-
function
|
|
6242
|
+
function Ft() {
|
|
6243
6243
|
return ke(yt);
|
|
6244
6244
|
}
|
|
6245
|
-
function
|
|
6246
|
-
const { data: i } =
|
|
6245
|
+
function kn(t) {
|
|
6246
|
+
const { data: i } = Di();
|
|
6247
6247
|
return i[t] ?? null;
|
|
6248
6248
|
}
|
|
6249
|
-
function
|
|
6249
|
+
function Mi(t) {
|
|
6250
6250
|
const i = /* @__PURE__ */ new Set();
|
|
6251
6251
|
for (const o of Object.values(t))
|
|
6252
6252
|
for (const n of Object.values(o))
|
|
6253
6253
|
i.add(typeof n == "string" ? n : n.query);
|
|
6254
6254
|
return Array.from(i);
|
|
6255
6255
|
}
|
|
6256
|
-
function
|
|
6256
|
+
function Wi(t) {
|
|
6257
6257
|
if (typeof t == "number") return t;
|
|
6258
6258
|
if (typeof t == "string") {
|
|
6259
6259
|
const i = Number(t);
|
|
@@ -6261,7 +6261,7 @@ function Mi(t) {
|
|
|
6261
6261
|
}
|
|
6262
6262
|
return t;
|
|
6263
6263
|
}
|
|
6264
|
-
function
|
|
6264
|
+
function zi({ config: t, children: i }) {
|
|
6265
6265
|
const [o, n] = R({}), [r, a] = R(null), [s, l] = R(!1), [u, c] = R(null), [p, f] = R(null), b = j(t);
|
|
6266
6266
|
b.current = t;
|
|
6267
6267
|
const h = j(r);
|
|
@@ -6273,7 +6273,7 @@ function Wi({ config: t, children: i }) {
|
|
|
6273
6273
|
try {
|
|
6274
6274
|
const g = await Promise.allSettled(
|
|
6275
6275
|
$.queries.map((C) => {
|
|
6276
|
-
const
|
|
6276
|
+
const O = $.endpoint.includes("?") ? "&" : "?", U = `${$.endpoint}${O}query=${encodeURIComponent(C)}`;
|
|
6277
6277
|
return fetch(U, {
|
|
6278
6278
|
method: "GET",
|
|
6279
6279
|
headers: {
|
|
@@ -6290,10 +6290,10 @@ function Wi({ config: t, children: i }) {
|
|
|
6290
6290
|
for (const C of g)
|
|
6291
6291
|
C.status === "fulfilled" ? w[C.value.query] = C.value.data : T++;
|
|
6292
6292
|
n((C) => ({ ...C, ...w }));
|
|
6293
|
-
const
|
|
6293
|
+
const N = $.queries.length;
|
|
6294
6294
|
c(
|
|
6295
|
-
T > 0 ? `${T} of ${
|
|
6296
|
-
), T <
|
|
6295
|
+
T > 0 ? `${T} of ${N} queries failed to refresh` : null
|
|
6296
|
+
), T < N && f(/* @__PURE__ */ new Date());
|
|
6297
6297
|
} catch (g) {
|
|
6298
6298
|
const w = g instanceof Error ? g.message : "Refresh failed";
|
|
6299
6299
|
c(w);
|
|
@@ -6321,10 +6321,10 @@ function Wi({ config: t, children: i }) {
|
|
|
6321
6321
|
};
|
|
6322
6322
|
return /* @__PURE__ */ d(yt.Provider, { value: k, children: [
|
|
6323
6323
|
i,
|
|
6324
|
-
!r && /* @__PURE__ */ e(
|
|
6324
|
+
!r && /* @__PURE__ */ e(Ut, { onSubmit: v })
|
|
6325
6325
|
] });
|
|
6326
6326
|
}
|
|
6327
|
-
const
|
|
6327
|
+
const Ui = "/tsws/monitoring/api/v1.0/events/search", Fi = 6e4, Bi = "ev_col_widths", Hi = 365 * 24 * 60 * 60, Yi = {
|
|
6328
6328
|
CRITICAL: "Critical",
|
|
6329
6329
|
MAJOR: "Major",
|
|
6330
6330
|
MINOR: "Minor"
|
|
@@ -6347,17 +6347,17 @@ const zi = "/tsws/monitoring/api/v1.0/events/search", Ui = 6e4, Fi = "ev_col_wid
|
|
|
6347
6347
|
{ key: "hostedApplication", label: "Hosted App", defaultWidth: 145 },
|
|
6348
6348
|
{ key: "monitoringCategory", label: "Mon. Category", defaultWidth: 120 },
|
|
6349
6349
|
{ key: "applicationSupportUnit", label: "App Support Unit", defaultWidth: 160 }
|
|
6350
|
-
],
|
|
6351
|
-
function
|
|
6350
|
+
], Bt = 60;
|
|
6351
|
+
function Vi(t) {
|
|
6352
6352
|
const i = document.cookie.match(new RegExp(`(?:^|;\\s*)${t}=([^;]*)`));
|
|
6353
6353
|
return i ? decodeURIComponent(i[1]) : null;
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6356
|
-
document.cookie = `${t}=${encodeURIComponent(i)};path=/;max-age=${
|
|
6355
|
+
function _i(t, i) {
|
|
6356
|
+
document.cookie = `${t}=${encodeURIComponent(i)};path=/;max-age=${Hi};SameSite=Lax`;
|
|
6357
6357
|
}
|
|
6358
|
-
function
|
|
6358
|
+
function ji(t) {
|
|
6359
6359
|
try {
|
|
6360
|
-
const i =
|
|
6360
|
+
const i = Vi(t);
|
|
6361
6361
|
if (!i) return null;
|
|
6362
6362
|
const o = JSON.parse(i);
|
|
6363
6363
|
if (typeof o == "object" && o !== null) return o;
|
|
@@ -6365,15 +6365,32 @@ function _i(t) {
|
|
|
6365
6365
|
}
|
|
6366
6366
|
return null;
|
|
6367
6367
|
}
|
|
6368
|
-
function
|
|
6369
|
-
|
|
6368
|
+
function Xi(t, i) {
|
|
6369
|
+
_i(t, JSON.stringify(i));
|
|
6370
|
+
}
|
|
6371
|
+
function At(t) {
|
|
6372
|
+
if (t == null || t === "") return "";
|
|
6373
|
+
const i = Number(t);
|
|
6374
|
+
if (!isNaN(i) && i > 0) {
|
|
6375
|
+
const n = i <= 9999999999 ? i * 1e3 : i, r = new Date(n);
|
|
6376
|
+
if (!isNaN(r.getTime())) {
|
|
6377
|
+
const a = (s) => String(s).padStart(2, "0");
|
|
6378
|
+
return `${r.getFullYear()}-${a(r.getMonth() + 1)}-${a(r.getDate())} ${a(r.getHours())}:${a(r.getMinutes())}:${a(r.getSeconds())}`;
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
const o = new Date(String(t));
|
|
6382
|
+
if (!isNaN(o.getTime())) {
|
|
6383
|
+
const n = (r) => String(r).padStart(2, "0");
|
|
6384
|
+
return `${o.getFullYear()}-${n(o.getMonth() + 1)}-${n(o.getDate())} ${n(o.getHours())}:${n(o.getMinutes())}:${n(o.getSeconds())}`;
|
|
6385
|
+
}
|
|
6386
|
+
return String(t);
|
|
6370
6387
|
}
|
|
6371
|
-
function
|
|
6372
|
-
const n = i.fieldMapping, r = i.severityMap ??
|
|
6388
|
+
function qi(t, i, o) {
|
|
6389
|
+
const n = i.fieldMapping, r = i.severityMap ?? Yi, a = String(t[n.severity] ?? ""), s = r[a] ?? r[a.toUpperCase()] ?? "Minor";
|
|
6373
6390
|
return {
|
|
6374
6391
|
id: String(t[n.id] ?? `evt-${o}`),
|
|
6375
|
-
occurrence:
|
|
6376
|
-
severityLastModified:
|
|
6392
|
+
occurrence: At(t[n.occurrence]),
|
|
6393
|
+
severityLastModified: At(t[n.severityLastModified]),
|
|
6377
6394
|
severity: s,
|
|
6378
6395
|
owner: String(t[n.owner] ?? ""),
|
|
6379
6396
|
class: String(t[n.class] ?? ""),
|
|
@@ -6388,8 +6405,8 @@ function Xi(t, i, o) {
|
|
|
6388
6405
|
applicationSupportUnit: String(t[n.applicationSupportUnit] ?? "")
|
|
6389
6406
|
};
|
|
6390
6407
|
}
|
|
6391
|
-
function
|
|
6392
|
-
const n = `${t.baseUrl}${t.endpoint ??
|
|
6408
|
+
function Qi(t, i, o) {
|
|
6409
|
+
const n = `${t.baseUrl}${t.endpoint ?? Ui}`;
|
|
6393
6410
|
return fetch(n, {
|
|
6394
6411
|
method: "POST",
|
|
6395
6412
|
headers: {
|
|
@@ -6403,14 +6420,14 @@ function qi(t, i, o) {
|
|
|
6403
6420
|
if (!r.ok) throw new Error(`HTTP ${r.status}: ${r.statusText}`);
|
|
6404
6421
|
return r.json();
|
|
6405
6422
|
}).then((r) => {
|
|
6406
|
-
const s = (r.eventList ?? []).map((c, p) =>
|
|
6423
|
+
const s = (r.eventList ?? []).map((c, p) => qi(c, t, p)), l = r.totalCount ?? s.length, u = r.eventSeverityCount ?? {};
|
|
6407
6424
|
return { events: s, totalCount: l, severityCounts: u };
|
|
6408
6425
|
});
|
|
6409
6426
|
}
|
|
6410
|
-
function
|
|
6427
|
+
function Gi({ direction: t }) {
|
|
6411
6428
|
return t ? /* @__PURE__ */ e("span", { className: "ev-sort-arrow ev-sort-arrow--active", children: t === "asc" ? "▲" : "▼" }) : /* @__PURE__ */ e("span", { className: "ev-sort-arrow ev-sort-arrow--idle", children: "⇅" });
|
|
6412
6429
|
}
|
|
6413
|
-
function
|
|
6430
|
+
function Ki({ severity: t }) {
|
|
6414
6431
|
const i = Ke[t];
|
|
6415
6432
|
return /* @__PURE__ */ d(
|
|
6416
6433
|
"span",
|
|
@@ -6434,21 +6451,21 @@ function Gi({ severity: t }) {
|
|
|
6434
6451
|
}
|
|
6435
6452
|
);
|
|
6436
6453
|
}
|
|
6437
|
-
function
|
|
6454
|
+
function Zi({ status: t }) {
|
|
6438
6455
|
return t ? /* @__PURE__ */ d("span", { className: `ev-sms-badge ${t === "SUCCESS" ? "ev-sms-badge--ok" : "ev-sms-badge--fail"}`, children: [
|
|
6439
6456
|
/* @__PURE__ */ e("span", { className: "ev-sms-dot" }),
|
|
6440
6457
|
t
|
|
6441
6458
|
] }) : /* @__PURE__ */ e("span", { className: "ev-cell-dim", children: "—" });
|
|
6442
6459
|
}
|
|
6443
|
-
function
|
|
6444
|
-
const i =
|
|
6460
|
+
function Ji(t) {
|
|
6461
|
+
const i = Ft(), [o, n] = R(null), r = t ?? i?.credentials ?? o;
|
|
6445
6462
|
return {
|
|
6446
6463
|
credentials: r,
|
|
6447
6464
|
setCredentials: n,
|
|
6448
6465
|
needsModal: !r
|
|
6449
6466
|
};
|
|
6450
6467
|
}
|
|
6451
|
-
function
|
|
6468
|
+
function en(t, i) {
|
|
6452
6469
|
const [o, n] = R([]), [r, a] = R(0), [s, l] = R({}), [u, c] = R(!1), [p, f] = R(null), [b, h] = R(null), y = j(t);
|
|
6453
6470
|
y.current = t;
|
|
6454
6471
|
const v = j(i);
|
|
@@ -6458,7 +6475,7 @@ function Ji(t, i) {
|
|
|
6458
6475
|
if (!(!$ || !g)) {
|
|
6459
6476
|
c(!0), f(null);
|
|
6460
6477
|
try {
|
|
6461
|
-
const w = await
|
|
6478
|
+
const w = await Qi($, g, x);
|
|
6462
6479
|
if (x?.aborted) return;
|
|
6463
6480
|
n(w.events), a(w.totalCount), l(w.severityCounts), h(/* @__PURE__ */ new Date());
|
|
6464
6481
|
} catch (w) {
|
|
@@ -6474,29 +6491,29 @@ function Ji(t, i) {
|
|
|
6474
6491
|
if (!t || !i) return;
|
|
6475
6492
|
const x = new AbortController();
|
|
6476
6493
|
k(x.signal);
|
|
6477
|
-
const $ = t.refreshInterval ??
|
|
6494
|
+
const $ = t.refreshInterval ?? Fi, g = window.setInterval(() => k(x.signal), $);
|
|
6478
6495
|
return () => {
|
|
6479
6496
|
x.abort(), clearInterval(g);
|
|
6480
6497
|
};
|
|
6481
6498
|
}, [t, i, k]), { events: o, totalCount: r, apiSeverityCounts: s, isLoading: u, error: p, lastRefresh: b, refetch: k };
|
|
6482
6499
|
}
|
|
6483
|
-
function
|
|
6500
|
+
function tn(t) {
|
|
6484
6501
|
const [i, o] = R(() => {
|
|
6485
|
-
const r =
|
|
6502
|
+
const r = ji(t), a = {};
|
|
6486
6503
|
for (const s of je) a[s.key] = r?.[s.key] ?? s.defaultWidth;
|
|
6487
6504
|
return a;
|
|
6488
6505
|
}), n = le(
|
|
6489
6506
|
(r, a) => {
|
|
6490
6507
|
o((s) => {
|
|
6491
|
-
const l = { ...s, [r]: Math.max(
|
|
6492
|
-
return
|
|
6508
|
+
const l = { ...s, [r]: Math.max(Bt, a) };
|
|
6509
|
+
return Xi(t, l), l;
|
|
6493
6510
|
});
|
|
6494
6511
|
},
|
|
6495
6512
|
[t]
|
|
6496
6513
|
);
|
|
6497
6514
|
return { widths: i, updateWidth: n };
|
|
6498
6515
|
}
|
|
6499
|
-
function
|
|
6516
|
+
function nn({
|
|
6500
6517
|
columnKey: t,
|
|
6501
6518
|
onResize: i
|
|
6502
6519
|
}) {
|
|
@@ -6507,7 +6524,7 @@ function tn({
|
|
|
6507
6524
|
if (!r) return;
|
|
6508
6525
|
const a = n.clientX, s = r.offsetWidth, l = (c) => {
|
|
6509
6526
|
const p = c.clientX - a;
|
|
6510
|
-
i(t, Math.max(
|
|
6527
|
+
i(t, Math.max(Bt, s + p));
|
|
6511
6528
|
}, u = () => {
|
|
6512
6529
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
6513
6530
|
};
|
|
@@ -6517,22 +6534,22 @@ function tn({
|
|
|
6517
6534
|
);
|
|
6518
6535
|
return /* @__PURE__ */ e("div", { className: "ev-resize-handle", onMouseDown: o });
|
|
6519
6536
|
}
|
|
6520
|
-
function
|
|
6537
|
+
function Rn({
|
|
6521
6538
|
apiConfig: t,
|
|
6522
6539
|
events: i,
|
|
6523
6540
|
credentials: o,
|
|
6524
|
-
columnWidthsCookie: n =
|
|
6541
|
+
columnWidthsCookie: n = Bi,
|
|
6525
6542
|
title: r = "Event Console"
|
|
6526
6543
|
}) {
|
|
6527
|
-
const { credentials: a, setCredentials: s, needsModal: l } =
|
|
6544
|
+
const { credentials: a, setCredentials: s, needsModal: l } = Ji(o), {
|
|
6528
6545
|
events: u,
|
|
6529
6546
|
isLoading: c,
|
|
6530
6547
|
error: p,
|
|
6531
6548
|
lastRefresh: f,
|
|
6532
6549
|
refetch: b
|
|
6533
|
-
} =
|
|
6550
|
+
} = en(t, a), h = i ?? u, { widths: y, updateWidth: v } = tn(n), [k, x] = R(
|
|
6534
6551
|
/* @__PURE__ */ new Set(["Minor", "Major", "Critical"])
|
|
6535
|
-
), [$, g] = R(""), [w, T] = R("occurrence"), [
|
|
6552
|
+
), [$, g] = R(""), [w, T] = R("occurrence"), [N, C] = R("desc"), O = le((m) => {
|
|
6536
6553
|
x((L) => {
|
|
6537
6554
|
const W = new Set(L);
|
|
6538
6555
|
return W.has(m) ? W.size > 1 && W.delete(m) : W.add(m), W;
|
|
@@ -6550,17 +6567,17 @@ function kn({
|
|
|
6550
6567
|
const m = $.toLowerCase();
|
|
6551
6568
|
return h.filter((L) => k.has(L.severity) ? m ? L.message.toLowerCase().includes(m) || L.host.toLowerCase().includes(m) || L.owner.toLowerCase().includes(m) || L.incidentId.toLowerCase().includes(m) : !0 : !1);
|
|
6552
6569
|
}, [h, k, $]), ee = be(() => {
|
|
6553
|
-
if (!
|
|
6570
|
+
if (!N) return X;
|
|
6554
6571
|
const m = [...X];
|
|
6555
6572
|
return m.sort((L, W) => {
|
|
6556
6573
|
const K = L[w] ?? "", E = W[w] ?? "", P = String(K).localeCompare(String(E));
|
|
6557
|
-
return
|
|
6574
|
+
return N === "asc" ? P : -P;
|
|
6558
6575
|
}), m;
|
|
6559
|
-
}, [X, w,
|
|
6576
|
+
}, [X, w, N]), ce = le((m) => {
|
|
6560
6577
|
g(m.target.value);
|
|
6561
6578
|
}, []), ne = t && !i && l;
|
|
6562
6579
|
return /* @__PURE__ */ d("div", { className: "ev-root", children: [
|
|
6563
|
-
ne && /* @__PURE__ */ e(
|
|
6580
|
+
ne && /* @__PURE__ */ e(Ut, { onSubmit: s }),
|
|
6564
6581
|
/* @__PURE__ */ d("div", { className: "ev-header", children: [
|
|
6565
6582
|
/* @__PURE__ */ d("div", { className: "ev-header-left", children: [
|
|
6566
6583
|
/* @__PURE__ */ e("span", { className: "ev-header-pulse" }),
|
|
@@ -6608,7 +6625,7 @@ function kn({
|
|
|
6608
6625
|
color: L.color,
|
|
6609
6626
|
boxShadow: `0 0 8px ${L.glow}`
|
|
6610
6627
|
} : void 0,
|
|
6611
|
-
onClick: () =>
|
|
6628
|
+
onClick: () => O(m),
|
|
6612
6629
|
children: [
|
|
6613
6630
|
/* @__PURE__ */ e(
|
|
6614
6631
|
"span",
|
|
@@ -6646,9 +6663,9 @@ function kn({
|
|
|
6646
6663
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: je.map((m) => /* @__PURE__ */ d("th", { className: "ev-th", onClick: () => U(m.key), children: [
|
|
6647
6664
|
/* @__PURE__ */ d("span", { className: "ev-th-inner", children: [
|
|
6648
6665
|
m.label,
|
|
6649
|
-
/* @__PURE__ */ e(
|
|
6666
|
+
/* @__PURE__ */ e(Gi, { direction: w === m.key ? N : null })
|
|
6650
6667
|
] }),
|
|
6651
|
-
/* @__PURE__ */ e(
|
|
6668
|
+
/* @__PURE__ */ e(nn, { columnKey: m.key, onResize: v })
|
|
6652
6669
|
] }, m.key)) }) }),
|
|
6653
6670
|
/* @__PURE__ */ e("tbody", { children: h.length === 0 && !c && !ne ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: je.length, className: "ev-empty", children: p ? `Failed to load events: ${p}` : t ? "No events returned from the API" : "No events provided" }) }) : ee.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: je.length, className: "ev-empty", children: c ? "Loading events…" : "No events match current filters" }) }) : ee.map((m) => /* @__PURE__ */ d(
|
|
6654
6671
|
"tr",
|
|
@@ -6660,7 +6677,7 @@ function kn({
|
|
|
6660
6677
|
},
|
|
6661
6678
|
children: [
|
|
6662
6679
|
/* @__PURE__ */ e("td", { className: "ev-td ev-td-mono", children: m.occurrence }),
|
|
6663
|
-
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e(
|
|
6680
|
+
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e(Ki, { severity: m.severity }) }),
|
|
6664
6681
|
/* @__PURE__ */ e("td", { className: "ev-td ev-td-mono", children: m.severityLastModified }),
|
|
6665
6682
|
/* @__PURE__ */ e("td", { className: "ev-td", children: m.owner }),
|
|
6666
6683
|
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e("span", { className: "ev-class-tag", children: m.class }) }),
|
|
@@ -6668,7 +6685,7 @@ function kn({
|
|
|
6668
6685
|
/* @__PURE__ */ e("td", { className: "ev-td ev-td-msg", children: m.message }),
|
|
6669
6686
|
/* @__PURE__ */ e("td", { className: "ev-td", children: m.remedySupportGroup || /* @__PURE__ */ e("span", { className: "ev-cell-dim", children: "—" }) }),
|
|
6670
6687
|
/* @__PURE__ */ e("td", { className: "ev-td ev-td-mono", children: m.incidentId || /* @__PURE__ */ e("span", { className: "ev-cell-dim", children: "—" }) }),
|
|
6671
|
-
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e(
|
|
6688
|
+
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e(Zi, { status: m.smsStatus }) }),
|
|
6672
6689
|
/* @__PURE__ */ e("td", { className: "ev-td ev-td-mono", children: m.onCallNumber || /* @__PURE__ */ e("span", { className: "ev-cell-dim", children: "—" }) }),
|
|
6673
6690
|
/* @__PURE__ */ e("td", { className: "ev-td", children: m.hostedApplication || /* @__PURE__ */ e("span", { className: "ev-cell-dim", children: "—" }) }),
|
|
6674
6691
|
/* @__PURE__ */ e("td", { className: "ev-td", children: /* @__PURE__ */ e(
|
|
@@ -6690,30 +6707,30 @@ function kn({
|
|
|
6690
6707
|
] }) })
|
|
6691
6708
|
] });
|
|
6692
6709
|
}
|
|
6693
|
-
function
|
|
6710
|
+
function Cn(t) {
|
|
6694
6711
|
const { liveData: i, dataEndpoint: o, dataBindings: n, dataRefreshInterval: r, serviceDataBindings: a } = t;
|
|
6695
6712
|
if (i && o && n) {
|
|
6696
|
-
const s =
|
|
6713
|
+
const s = Mi(n), l = [];
|
|
6697
6714
|
if (a)
|
|
6698
6715
|
for (const c of Object.values(a))
|
|
6699
6716
|
for (const p of c)
|
|
6700
6717
|
s.includes(p.query) || l.push(p.query);
|
|
6701
6718
|
const u = [...s, ...l];
|
|
6702
6719
|
return /* @__PURE__ */ e(
|
|
6703
|
-
|
|
6720
|
+
zi,
|
|
6704
6721
|
{
|
|
6705
6722
|
config: {
|
|
6706
6723
|
endpoint: o,
|
|
6707
6724
|
queries: u,
|
|
6708
6725
|
refreshInterval: r
|
|
6709
6726
|
},
|
|
6710
|
-
children: /* @__PURE__ */ e(
|
|
6727
|
+
children: /* @__PURE__ */ e(Tt, { ...t })
|
|
6711
6728
|
}
|
|
6712
6729
|
);
|
|
6713
6730
|
}
|
|
6714
|
-
return /* @__PURE__ */ e(
|
|
6731
|
+
return /* @__PURE__ */ e(Tt, { ...t });
|
|
6715
6732
|
}
|
|
6716
|
-
function
|
|
6733
|
+
function Tt({
|
|
6717
6734
|
brandName: t = "BUSAUD AIOps",
|
|
6718
6735
|
brandTag: i = "3D MONITOR",
|
|
6719
6736
|
services: o = [],
|
|
@@ -6726,18 +6743,18 @@ function At({
|
|
|
6726
6743
|
serviceDataBindings: c,
|
|
6727
6744
|
children: p
|
|
6728
6745
|
}) {
|
|
6729
|
-
const f =
|
|
6730
|
-
x === "compact" && (
|
|
6746
|
+
const f = Ft(), [b] = R(20), [h] = R(!1), [y] = R(!0), [v] = R(0.45), [k] = R(3.3), [x, $] = R("compact"), [g, w] = R(0), [T, N] = R(null), [C, O] = R(null), [U, M] = R(0), [X, ee] = R(0), ce = (S) => {
|
|
6747
|
+
x === "compact" && (N(S), $("expanding"), w(0), setTimeout(() => w(1), 50), setTimeout(() => w(2), 800), setTimeout(() => w(3), 1200), setTimeout(() => w(4), 1600), setTimeout(() => w(5), 2e3), setTimeout(() => {
|
|
6731
6748
|
w(6), $("expanded");
|
|
6732
6749
|
}, 2400));
|
|
6733
6750
|
}, ne = () => {
|
|
6734
|
-
C ? (
|
|
6751
|
+
C ? (O(null), M(0)) : x === "expanded" && ($("collapsing"), w(0), N(null), setTimeout(() => {
|
|
6735
6752
|
$((S) => S === "collapsing" ? "compact" : S);
|
|
6736
6753
|
}, 1e3));
|
|
6737
6754
|
}, m = (S) => {
|
|
6738
|
-
|
|
6755
|
+
O(S), M(0), ee((Q) => Q + 1);
|
|
6739
6756
|
}, L = le((S) => {
|
|
6740
|
-
|
|
6757
|
+
O((Q) => !Q || Q.name !== S.name ? Q : S);
|
|
6741
6758
|
}, []);
|
|
6742
6759
|
J.useEffect(() => {
|
|
6743
6760
|
if (!C || X === 0) return;
|
|
@@ -6748,8 +6765,8 @@ function At({
|
|
|
6748
6765
|
return () => cancelAnimationFrame(G);
|
|
6749
6766
|
}, [X]);
|
|
6750
6767
|
const W = () => {
|
|
6751
|
-
|
|
6752
|
-
}, K = o.find((S) => S.name === T), E = K?.status ?? "online", P = K?.dbSync ?? !0, B = K?.alerts, q = f?.data, oe = u ??
|
|
6768
|
+
O(null), M(0);
|
|
6769
|
+
}, K = o.find((S) => S.name === T), E = K?.status ?? "online", P = K?.dbSync ?? !0, B = K?.alerts, q = f?.data, oe = u ?? Wi, te = be(() => {
|
|
6753
6770
|
if (!q || !c) return null;
|
|
6754
6771
|
const S = {};
|
|
6755
6772
|
for (const [Q, ue] of Object.entries(c))
|
|
@@ -6826,7 +6843,7 @@ function At({
|
|
|
6826
6843
|
},
|
|
6827
6844
|
onClick: ne,
|
|
6828
6845
|
children: /* @__PURE__ */ e(
|
|
6829
|
-
|
|
6846
|
+
ri,
|
|
6830
6847
|
{
|
|
6831
6848
|
viewState: x,
|
|
6832
6849
|
animPhase: g,
|
|
@@ -6858,17 +6875,17 @@ function At({
|
|
|
6858
6875
|
}
|
|
6859
6876
|
);
|
|
6860
6877
|
}
|
|
6861
|
-
function
|
|
6878
|
+
function I(t, i, o = 24) {
|
|
6862
6879
|
return Array.from({ length: o }, (n, r) => {
|
|
6863
6880
|
const a = r / o;
|
|
6864
6881
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * i + (Math.random() - 0.5) * 10));
|
|
6865
6882
|
});
|
|
6866
6883
|
}
|
|
6867
|
-
function
|
|
6884
|
+
function Ht(t) {
|
|
6868
6885
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
6869
6886
|
}
|
|
6870
6887
|
function ze(t, i, o) {
|
|
6871
|
-
const n = t === "online" ? "online" : t, r =
|
|
6888
|
+
const n = t === "online" ? "online" : t, r = Ht(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = n === "critical" || n === "warning" && a > 80 ? n : "online", u = n === "warning" && s > 85 ? "warning" : n === "critical" ? "critical" : "online", c = n === "critical" && i === "APP-03" ? "critical" : "online", p = n === "offline" ? "offline" : "online";
|
|
6872
6889
|
return [
|
|
6873
6890
|
{ id: "cpu-0", label: "CPU-0", status: l, detail: n === "critical" ? "Core overload" : n === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(Ze, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
6874
6891
|
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(Ze, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
@@ -6878,24 +6895,24 @@ function ze(t, i, o) {
|
|
|
6878
6895
|
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(We, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
6879
6896
|
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(We, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
6880
6897
|
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(_, { color: r, label: "THREAD-POOL", status: c }) },
|
|
6881
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
6898
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(zt, { color: r, label: "NET", status: p }) }
|
|
6882
6899
|
];
|
|
6883
6900
|
}
|
|
6884
6901
|
function Ue(t) {
|
|
6885
6902
|
const i = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
|
|
6886
6903
|
return [
|
|
6887
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
6888
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
6889
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
6890
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
6891
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
6892
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
6893
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
6894
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
6904
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: I(i, 15) },
|
|
6905
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: I(i * 0.7, 12) },
|
|
6906
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: I(o, 18) },
|
|
6907
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: I(o * 0.85, 14) },
|
|
6908
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: I(40, 25) },
|
|
6909
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: I(35, 20) },
|
|
6910
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: I(30, 22) },
|
|
6911
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: I(55, 20) }
|
|
6895
6912
|
];
|
|
6896
6913
|
}
|
|
6897
|
-
function
|
|
6898
|
-
const n = t === "online" ? "online" : t, r =
|
|
6914
|
+
function Yt(t, i, o) {
|
|
6915
|
+
const n = t === "online" ? "online" : t, r = Ht(t), a = n === "critical" || n === "offline" ? n : "online", s = n === "warning" ? "warning" : "online", l = n === "critical" ? "critical" : "online";
|
|
6899
6916
|
return [
|
|
6900
6917
|
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(ie, { color: r, label: "PORT-1", status: "online" }) },
|
|
6901
6918
|
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(ie, { color: r, label: "PORT-2", status: "online" }) },
|
|
@@ -6909,17 +6926,17 @@ function Ht(t, i, o) {
|
|
|
6909
6926
|
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(_, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
6910
6927
|
];
|
|
6911
6928
|
}
|
|
6912
|
-
function
|
|
6929
|
+
function Vt(t) {
|
|
6913
6930
|
const i = t?.traffic ?? 50;
|
|
6914
6931
|
return [
|
|
6915
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
6916
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
6917
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
6918
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
6919
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
6932
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: I(i, 20) },
|
|
6933
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: I(60, 25) },
|
|
6934
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: I(45, 20) },
|
|
6935
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: I(70, 30) },
|
|
6936
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: I(i * 0.9, 15) }
|
|
6920
6937
|
];
|
|
6921
6938
|
}
|
|
6922
|
-
function
|
|
6939
|
+
function on(t, i, o) {
|
|
6923
6940
|
const n = t === "online" ? "online" : t, r = n === "critical" ? "critical" : "online", a = n === "critical" || n === "offline" ? n : n === "warning" ? "warning" : "online", s = n === "critical" ? "critical" : "online";
|
|
6924
6941
|
return [
|
|
6925
6942
|
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(ie, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
@@ -6931,14 +6948,14 @@ function nn(t, i, o) {
|
|
|
6931
6948
|
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(_, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
6932
6949
|
];
|
|
6933
6950
|
}
|
|
6934
|
-
function
|
|
6951
|
+
function rn(t) {
|
|
6935
6952
|
const i = t?.queueDepth ?? 50;
|
|
6936
6953
|
return [
|
|
6937
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
6938
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
6939
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
6940
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
6941
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
6954
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: I(i, 20) },
|
|
6955
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: I(60, 25) },
|
|
6956
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: I(45, 20) },
|
|
6957
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: I(70, 30) },
|
|
6958
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: I(i * 0.9, 15) }
|
|
6942
6959
|
];
|
|
6943
6960
|
}
|
|
6944
6961
|
function et(t, i, o) {
|
|
@@ -6954,11 +6971,11 @@ function et(t, i, o) {
|
|
|
6954
6971
|
function tt(t) {
|
|
6955
6972
|
const i = t?.capacity ?? 70;
|
|
6956
6973
|
return [
|
|
6957
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
6958
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
6959
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
6960
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
6961
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
6974
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: I(40, 20) },
|
|
6975
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: I(55, 25) },
|
|
6976
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: I(35, 18) },
|
|
6977
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: I(i, 15) },
|
|
6978
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: I(75, 12) }
|
|
6962
6979
|
];
|
|
6963
6980
|
}
|
|
6964
6981
|
function vt(t) {
|
|
@@ -6973,7 +6990,7 @@ function vt(t) {
|
|
|
6973
6990
|
];
|
|
6974
6991
|
return i.includes("critical") ? "critical" : i.includes("warning") ? "warning" : i.includes("offline") ? "offline" : "online";
|
|
6975
6992
|
}
|
|
6976
|
-
function
|
|
6993
|
+
function En(t) {
|
|
6977
6994
|
const i = vt(t), o = i === "critical" || i === "offline", n = i === "warning";
|
|
6978
6995
|
return [
|
|
6979
6996
|
{
|
|
@@ -6995,7 +7012,7 @@ function Cn(t) {
|
|
|
6995
7012
|
}
|
|
6996
7013
|
];
|
|
6997
7014
|
}
|
|
6998
|
-
function
|
|
7015
|
+
function Pn(t) {
|
|
6999
7016
|
const i = vt(t), o = i === "critical" || i === "offline", n = i === "warning";
|
|
7000
7017
|
return [
|
|
7001
7018
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -7004,7 +7021,7 @@ function En(t) {
|
|
|
7004
7021
|
...!o && !n && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
7005
7022
|
];
|
|
7006
7023
|
}
|
|
7007
|
-
const
|
|
7024
|
+
const an = [
|
|
7008
7025
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
7009
7026
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
7010
7027
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -7017,7 +7034,7 @@ const rn = [
|
|
|
7017
7034
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
7018
7035
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
7019
7036
|
];
|
|
7020
|
-
function
|
|
7037
|
+
function ln({ config: t }) {
|
|
7021
7038
|
const i = J.useContext(Ee), o = i?.rotateY ?? 20, n = i?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: u, pdbStatus: c, sdbStatus: p, dbSync: f } = t;
|
|
7022
7039
|
return /* @__PURE__ */ d(Fe, { children: [
|
|
7023
7040
|
/* @__PURE__ */ e(
|
|
@@ -7048,8 +7065,8 @@ function an({ config: t }) {
|
|
|
7048
7065
|
name: "WEB-DISP",
|
|
7049
7066
|
status: r,
|
|
7050
7067
|
context: { traffic: 78 },
|
|
7051
|
-
subComponents:
|
|
7052
|
-
graphSeries:
|
|
7068
|
+
subComponents: Yt(r),
|
|
7069
|
+
graphSeries: Vt({ traffic: 78 })
|
|
7053
7070
|
},
|
|
7054
7071
|
children: /* @__PURE__ */ e(
|
|
7055
7072
|
mt,
|
|
@@ -7081,11 +7098,11 @@ function an({ config: t }) {
|
|
|
7081
7098
|
name: "MSG-SRV",
|
|
7082
7099
|
status: a,
|
|
7083
7100
|
context: { queueDepth: 45 },
|
|
7084
|
-
subComponents:
|
|
7085
|
-
graphSeries:
|
|
7101
|
+
subComponents: on(a),
|
|
7102
|
+
graphSeries: rn({ queueDepth: 45 })
|
|
7086
7103
|
},
|
|
7087
7104
|
children: /* @__PURE__ */ e(
|
|
7088
|
-
|
|
7105
|
+
Mt,
|
|
7089
7106
|
{
|
|
7090
7107
|
rotateY: -o,
|
|
7091
7108
|
autoRotate: n,
|
|
@@ -7274,13 +7291,13 @@ function an({ config: t }) {
|
|
|
7274
7291
|
visibleAtPhase: 6,
|
|
7275
7292
|
fixedScale: 1,
|
|
7276
7293
|
bare: !0,
|
|
7277
|
-
children: /* @__PURE__ */ e(
|
|
7294
|
+
children: /* @__PURE__ */ e(Dt, { synced: f, latencyMs: f ? 8 : 342 })
|
|
7278
7295
|
}
|
|
7279
7296
|
),
|
|
7280
|
-
/* @__PURE__ */ e(
|
|
7297
|
+
/* @__PURE__ */ e(sn, { config: t })
|
|
7281
7298
|
] });
|
|
7282
7299
|
}
|
|
7283
|
-
function
|
|
7300
|
+
function sn({ config: t }) {
|
|
7284
7301
|
const i = J.useContext(Ee), { wdStatus: o, msStatus: n, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: u, dbSync: c } = t, p = i?.isSelected && i?.isExpandedPos;
|
|
7285
7302
|
return i?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
7286
7303
|
/* @__PURE__ */ e(
|
|
@@ -7405,15 +7422,15 @@ function ln({ config: t }) {
|
|
|
7405
7422
|
)
|
|
7406
7423
|
] }) : null;
|
|
7407
7424
|
}
|
|
7408
|
-
function
|
|
7425
|
+
function An({ config: t, ...i }) {
|
|
7409
7426
|
return /* @__PURE__ */ e(
|
|
7410
|
-
|
|
7427
|
+
Nt,
|
|
7411
7428
|
{
|
|
7412
7429
|
name: t.name,
|
|
7413
7430
|
status: vt(t),
|
|
7414
|
-
connections:
|
|
7431
|
+
connections: an,
|
|
7415
7432
|
...i,
|
|
7416
|
-
children: /* @__PURE__ */ e(
|
|
7433
|
+
children: /* @__PURE__ */ e(ln, { config: t })
|
|
7417
7434
|
}
|
|
7418
7435
|
);
|
|
7419
7436
|
}
|
|
@@ -7428,7 +7445,7 @@ function xt(t) {
|
|
|
7428
7445
|
];
|
|
7429
7446
|
return i.includes("critical") ? "critical" : i.includes("warning") ? "warning" : i.includes("offline") ? "offline" : "online";
|
|
7430
7447
|
}
|
|
7431
|
-
function
|
|
7448
|
+
function Tn(t) {
|
|
7432
7449
|
const i = xt(t), o = i === "critical" || i === "offline", n = i === "warning";
|
|
7433
7450
|
return [
|
|
7434
7451
|
{
|
|
@@ -7450,7 +7467,7 @@ function An(t) {
|
|
|
7450
7467
|
}
|
|
7451
7468
|
];
|
|
7452
7469
|
}
|
|
7453
|
-
function
|
|
7470
|
+
function Ln(t) {
|
|
7454
7471
|
const i = xt(t), o = i === "critical" || i === "offline", n = i === "warning";
|
|
7455
7472
|
return [
|
|
7456
7473
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -7459,7 +7476,7 @@ function Tn(t) {
|
|
|
7459
7476
|
...!o && !n && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
7460
7477
|
];
|
|
7461
7478
|
}
|
|
7462
|
-
const
|
|
7479
|
+
const dn = [
|
|
7463
7480
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
7464
7481
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
7465
7482
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -7468,7 +7485,7 @@ const sn = [
|
|
|
7468
7485
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
7469
7486
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
7470
7487
|
];
|
|
7471
|
-
function
|
|
7488
|
+
function cn({ config: t }) {
|
|
7472
7489
|
const i = J.useContext(Ee), o = i?.rotateY ?? 20, n = i?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: u, sdbStatus: c, dbSync: p } = t;
|
|
7473
7490
|
return /* @__PURE__ */ d(Fe, { children: [
|
|
7474
7491
|
/* @__PURE__ */ e(
|
|
@@ -7499,8 +7516,8 @@ function dn({ config: t }) {
|
|
|
7499
7516
|
name: "DISP-01",
|
|
7500
7517
|
status: r,
|
|
7501
7518
|
context: { traffic: 78 },
|
|
7502
|
-
subComponents:
|
|
7503
|
-
graphSeries:
|
|
7519
|
+
subComponents: Yt(r),
|
|
7520
|
+
graphSeries: Vt({ traffic: 78 })
|
|
7504
7521
|
},
|
|
7505
7522
|
children: /* @__PURE__ */ e(
|
|
7506
7523
|
mt,
|
|
@@ -7691,13 +7708,13 @@ function dn({ config: t }) {
|
|
|
7691
7708
|
visibleAtPhase: 6,
|
|
7692
7709
|
fixedScale: 1,
|
|
7693
7710
|
bare: !0,
|
|
7694
|
-
children: /* @__PURE__ */ e(
|
|
7711
|
+
children: /* @__PURE__ */ e(Dt, { synced: p, latencyMs: p ? 8 : 342 })
|
|
7695
7712
|
}
|
|
7696
7713
|
),
|
|
7697
|
-
/* @__PURE__ */ e(
|
|
7714
|
+
/* @__PURE__ */ e(pn, { config: t })
|
|
7698
7715
|
] });
|
|
7699
7716
|
}
|
|
7700
|
-
function
|
|
7717
|
+
function pn({ config: t }) {
|
|
7701
7718
|
const i = J.useContext(Ee), { dispStatus: o, srv1Status: n, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: u } = t, c = i?.isSelected && i?.isExpandedPos;
|
|
7702
7719
|
return i?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
7703
7720
|
/* @__PURE__ */ e(
|
|
@@ -7807,81 +7824,81 @@ function cn({ config: t }) {
|
|
|
7807
7824
|
)
|
|
7808
7825
|
] }) : null;
|
|
7809
7826
|
}
|
|
7810
|
-
function
|
|
7827
|
+
function Nn({ config: t, ...i }) {
|
|
7811
7828
|
return /* @__PURE__ */ e(
|
|
7812
|
-
|
|
7829
|
+
Nt,
|
|
7813
7830
|
{
|
|
7814
7831
|
name: t.name,
|
|
7815
7832
|
status: xt(t),
|
|
7816
|
-
connections:
|
|
7833
|
+
connections: dn,
|
|
7817
7834
|
...i,
|
|
7818
|
-
children: /* @__PURE__ */ e(
|
|
7835
|
+
children: /* @__PURE__ */ e(cn, { config: t })
|
|
7819
7836
|
}
|
|
7820
7837
|
);
|
|
7821
7838
|
}
|
|
7822
7839
|
export {
|
|
7823
|
-
|
|
7840
|
+
Cn as AIOPsDashboard,
|
|
7824
7841
|
Ze as CPU3D,
|
|
7825
|
-
|
|
7842
|
+
ri as Carousel,
|
|
7826
7843
|
ut as CarouselContext,
|
|
7827
7844
|
ht as CarouselItemContext,
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7845
|
+
ii as ComponentDialog,
|
|
7846
|
+
$n as ComponentDrillView,
|
|
7847
|
+
zi as DataProvider,
|
|
7831
7848
|
Xe as Database3D,
|
|
7832
|
-
|
|
7849
|
+
vn as DatabaseNode,
|
|
7833
7850
|
We as DriveBay3D,
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7851
|
+
dn as EXCHANGE_CONNECTIONS,
|
|
7852
|
+
Rn as EventView,
|
|
7853
|
+
Nn as ExchangeService,
|
|
7854
|
+
gn as HOLO_BLUE,
|
|
7855
|
+
hn as HOLO_CYAN,
|
|
7839
7856
|
pt as HOLO_GLASS,
|
|
7840
7857
|
Be as HOLO_SURFACE,
|
|
7841
|
-
|
|
7842
|
-
|
|
7858
|
+
Ai as HistoricalGraphPanel,
|
|
7859
|
+
si as HoloBase,
|
|
7843
7860
|
bt as Human3D,
|
|
7844
|
-
|
|
7861
|
+
xn as HumanNode,
|
|
7845
7862
|
Je as Memory3D,
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7863
|
+
Mt as MessageServer3D,
|
|
7864
|
+
wn as MessageServerNode,
|
|
7865
|
+
zt as NetworkBlock3D,
|
|
7849
7866
|
V as NodeCallout,
|
|
7850
7867
|
Ge as Platter3D,
|
|
7851
7868
|
ie as Port3D,
|
|
7852
|
-
|
|
7853
|
-
|
|
7869
|
+
An as SAPService,
|
|
7870
|
+
an as SAP_CONNECTIONS,
|
|
7854
7871
|
A as STATUS_CFG,
|
|
7855
7872
|
Ce as Server3D,
|
|
7856
|
-
|
|
7857
|
-
|
|
7873
|
+
yn as ServerNode,
|
|
7874
|
+
Nt as Service,
|
|
7858
7875
|
Ee as ServiceContext,
|
|
7859
|
-
|
|
7876
|
+
ei as ServiceDialog,
|
|
7860
7877
|
D as ServiceNode,
|
|
7861
|
-
|
|
7862
|
-
|
|
7878
|
+
ai as SvgConnection,
|
|
7879
|
+
Dt as SyncBridge,
|
|
7863
7880
|
_ as ThreadPool3D,
|
|
7864
7881
|
mt as WebDispatcher3D,
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7882
|
+
Sn as WebDispatcherNode,
|
|
7883
|
+
Ln as computeExchangeDialogAlerts,
|
|
7884
|
+
Tn as computeExchangeDialogMetrics,
|
|
7868
7885
|
xt as computeExchangeServiceStatus,
|
|
7869
|
-
|
|
7870
|
-
|
|
7886
|
+
Pn as computeSAPDialogAlerts,
|
|
7887
|
+
En as computeSAPDialogMetrics,
|
|
7871
7888
|
vt as computeSAPServiceStatus,
|
|
7872
|
-
|
|
7889
|
+
Wi as defaultDataTransform,
|
|
7873
7890
|
tt as getDatabaseGraphSeries,
|
|
7874
7891
|
et as getDatabaseSubComponents,
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7892
|
+
Vt as getDispatcherGraphSeries,
|
|
7893
|
+
Yt as getDispatcherSubComponents,
|
|
7894
|
+
rn as getMessageServerGraphSeries,
|
|
7895
|
+
on as getMessageServerSubComponents,
|
|
7879
7896
|
Ue as getServerGraphSeries,
|
|
7880
7897
|
ze as getServerSubComponents,
|
|
7881
7898
|
ft as makeFaceStyles,
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7899
|
+
Di as useAIOpsData,
|
|
7900
|
+
Ft as useAIOpsDataOptional,
|
|
7901
|
+
bn as useCarouselContext,
|
|
7902
|
+
mn as useCarouselItemContext,
|
|
7903
|
+
kn as useQueryResult
|
|
7887
7904
|
};
|