react-aiops 0.1.18 → 0.1.20
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/ServiceNode.d.ts +21 -15
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/index.js +488 -469
- package/package.json +1 -1
|
@@ -56,24 +56,29 @@ export interface ServiceNodeProps {
|
|
|
56
56
|
*/
|
|
57
57
|
bare?: boolean;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* and
|
|
59
|
+
* Callout configuration for this node.
|
|
60
|
+
*
|
|
61
|
+
* Controls the position and (optionally) the content of the
|
|
62
|
+
* {@link NodeCallout} rendered next to this node.
|
|
63
|
+
*
|
|
64
|
+
* - **Position-only** — set `offsetX` / `offsetY` / `align` without
|
|
65
|
+
* `msg` to control where auto-generated callouts appear.
|
|
66
|
+
* - **Explicit message** — set `msg` to provide a fixed diagnostic
|
|
67
|
+
* message that takes priority when the node status is the highest
|
|
68
|
+
* severity source.
|
|
62
69
|
*
|
|
63
70
|
* @example
|
|
64
71
|
* ```tsx
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* <Server3D ... />
|
|
71
|
-
* </ServiceNode>
|
|
72
|
+
* // Position-only (auto-generated message from status / metrics)
|
|
73
|
+
* <ServerNode alert={{ offsetX: -110, offsetY: -30, align: "left" }} ... />
|
|
74
|
+
*
|
|
75
|
+
* // Explicit message + position
|
|
76
|
+
* <ServerNode alert={{ msg: "High latency", align: "left" }} ... />
|
|
72
77
|
* ```
|
|
73
78
|
*/
|
|
74
79
|
alert?: {
|
|
75
|
-
/** Short diagnostic message shown in the callout body. */
|
|
76
|
-
msg
|
|
80
|
+
/** Short diagnostic message shown in the callout body. When omitted, an auto-generated message is used. */
|
|
81
|
+
msg?: string;
|
|
77
82
|
/** Horizontal offset (px) from the node center to the label. Defaults to `110`. */
|
|
78
83
|
offsetX?: number;
|
|
79
84
|
/** Vertical offset (px) from the node center to the label. Defaults to `-30`. */
|
|
@@ -91,9 +96,10 @@ export interface ServiceNodeProps {
|
|
|
91
96
|
* at the compact carousel position or the expanded topology position,
|
|
92
97
|
* which scale to apply, and whether labels should be visible.
|
|
93
98
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* (`warnAt` / `critAt`).
|
|
99
|
+
* Automatically renders a {@link NodeCallout} for the highest-severity
|
|
100
|
+
* issue — whether that comes from the node's own status or a metric
|
|
101
|
+
* threshold breach (`warnAt` / `critAt`). The node colour also reflects
|
|
102
|
+
* the highest severity.
|
|
97
103
|
*/
|
|
98
104
|
export default function ServiceNode({ ex, ey, compactOffset, zIndex, children, color, label, subLabel, delay, componentInfo, visibleAtPhase, fixedScale, bare, alert, }: ServiceNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
99
105
|
//# sourceMappingURL=ServiceNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceNode.d.ts","sourceRoot":"","sources":["../../src/components/ServiceNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAwC,MAAM,OAAO,CAAC;AAI7D,OAAO,KAAK,EAAE,iBAAiB,EAA2C,MAAM,UAAU,CAAC;AAG3F,MAAM,WAAW,gBAAgB;IAC7B,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,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