react-aiops 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ComponentDialog.d.ts.map +1 -1
- package/dist/components/NodeCallout.d.ts.map +1 -1
- package/dist/components/Server3D.d.ts +3 -1
- package/dist/components/Server3D.d.ts.map +1 -1
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/components/SimpleService.d.ts +22 -0
- package/dist/components/SimpleService.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +795 -653
- package/dist/types.d.ts +12 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -11,8 +11,12 @@ export type { ComponentStatus, StatusCfg, FaceName, Base3DProps } from './theme'
|
|
|
11
11
|
export type ComponentType = "server" | "dispatcher" | "messageServer" | "database";
|
|
12
12
|
/**
|
|
13
13
|
* Custom metric definition for the ComponentDialog gauges.
|
|
14
|
-
*
|
|
15
|
-
* the default CPU / Memory / Storage gauges.
|
|
14
|
+
* Provide via `componentInfo.dialogMetrics` on a {@link ServiceNode}
|
|
15
|
+
* to override the default CPU / Memory / Storage gauges for that component.
|
|
16
|
+
*
|
|
17
|
+
* Each component in a service gets its own `componentInfo`, so a service
|
|
18
|
+
* with a server and a database can define completely different metrics
|
|
19
|
+
* for each.
|
|
16
20
|
*/
|
|
17
21
|
export interface ComponentDialogMetric {
|
|
18
22
|
/** Unique key (e.g. "cpu", "threads"). */
|
|
@@ -130,6 +134,12 @@ export interface SelectedComponent {
|
|
|
130
134
|
ey: number;
|
|
131
135
|
/** Optional health metrics for the drill-down view. */
|
|
132
136
|
context?: ComponentContext;
|
|
137
|
+
/**
|
|
138
|
+
* Custom metrics for the ComponentDialog gauges.
|
|
139
|
+
* When provided, replaces the default CPU / Memory / Storage gauges
|
|
140
|
+
* for this specific component. Takes priority over `context.dialogMetrics`.
|
|
141
|
+
*/
|
|
142
|
+
dialogMetrics?: ComponentDialogMetric[];
|
|
133
143
|
/**
|
|
134
144
|
* Internal sub-components to render inside the drill-down view.
|
|
135
145
|
* When provided, the drill-down renders these instead of using
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMjF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMjF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,CAAC;AAMnF;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IAClC,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,IAAI,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,MAA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