meyi-insight-ui-dev 1.0.1 → 1.0.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/ui/alert-dialog.d.ts +14 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/features/connectors/components/ConnectorPrometheusSetupDialog.d.ts +11 -1
- package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +6 -0
- package/dist/features/workflows/components/WorkflowExecutionsDrawer.d.ts +6 -0
- package/dist/features/workflows/components/WorkflowFormDialog.d.ts +7 -0
- package/dist/features/workflows/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +115 -103
- package/dist/index.mjs +32482 -21893
- package/dist/router.d.ts +1 -1
- package/dist/services/insight.d.ts +15 -0
- package/dist/services/workflow.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +52 -1
- package/package.json +6 -1
package/dist/types.d.ts
CHANGED
|
@@ -24,7 +24,9 @@ export type InsightConnector = {
|
|
|
24
24
|
grafanaSetupStatusReason?: string | null;
|
|
25
25
|
prometheusEnvironment?: string | null;
|
|
26
26
|
prometheusReceiverName?: string | null;
|
|
27
|
-
|
|
27
|
+
prometheusBaseUrl?: string | null;
|
|
28
|
+
alertmanagerBaseUrl?: string | null;
|
|
29
|
+
prometheusSetupStatus?: 'not_started' | 'generated' | 'downloaded' | 'checking' | 'configured' | 'failed' | 'not_yet' | string;
|
|
28
30
|
prometheusSetupStatusReason?: string | null;
|
|
29
31
|
deliveryStatus?: 'unknown' | 'healthy' | 'failed' | string;
|
|
30
32
|
lastWebhookReceivedAt?: string | null;
|
|
@@ -269,6 +271,10 @@ export type InsightPrometheusOnboarding = {
|
|
|
269
271
|
};
|
|
270
272
|
defaults: {
|
|
271
273
|
receiverName: string;
|
|
274
|
+
prometheusBaseUrl?: string;
|
|
275
|
+
alertmanagerBaseUrl?: string;
|
|
276
|
+
setupStatus?: string;
|
|
277
|
+
setupStatusReason?: string | null;
|
|
272
278
|
dockerCommand?: string;
|
|
273
279
|
linuxCommand?: string;
|
|
274
280
|
kubernetesCommand?: string;
|
|
@@ -374,6 +380,12 @@ export type InsightSettings = {
|
|
|
374
380
|
awsBedrockRegion?: string;
|
|
375
381
|
updatedAt: string;
|
|
376
382
|
};
|
|
383
|
+
export type InsightNotificationProvider = {
|
|
384
|
+
id: string;
|
|
385
|
+
provider_name: string;
|
|
386
|
+
display_name: string;
|
|
387
|
+
icon?: string;
|
|
388
|
+
};
|
|
377
389
|
export type InsightIncidentComment = {
|
|
378
390
|
id: string;
|
|
379
391
|
message: string;
|
|
@@ -531,3 +543,42 @@ export type InsightSop = {
|
|
|
531
543
|
createdAt: string;
|
|
532
544
|
updatedAt: string;
|
|
533
545
|
};
|
|
546
|
+
export type InsightWorkflowConditionField = 'source' | 'resource' | 'severity' | 'project' | 'alertName';
|
|
547
|
+
export type InsightWorkflowConditionOperator = 'equals' | 'contains' | 'startsWith' | 'endsWith' | 'in';
|
|
548
|
+
export type InsightWorkflowConditionRule = {
|
|
549
|
+
field: InsightWorkflowConditionField;
|
|
550
|
+
operator: InsightWorkflowConditionOperator;
|
|
551
|
+
value: string | string[];
|
|
552
|
+
};
|
|
553
|
+
export type InsightWorkflowConditionGroup = {
|
|
554
|
+
groupId: string;
|
|
555
|
+
operator: 'AND' | 'OR';
|
|
556
|
+
rules: InsightWorkflowConditionRule[];
|
|
557
|
+
};
|
|
558
|
+
export type InsightWorkflowActionType = 'create_incident' | 'assign_incident' | 'generate_rca' | 'generate_sop' | 'send_notification' | 'skip_alert';
|
|
559
|
+
export type InsightWorkflowAction = {
|
|
560
|
+
type: InsightWorkflowActionType;
|
|
561
|
+
config: Record<string, any>;
|
|
562
|
+
};
|
|
563
|
+
export type InsightWorkflow = {
|
|
564
|
+
id: string;
|
|
565
|
+
name: string;
|
|
566
|
+
description: string | null;
|
|
567
|
+
isActive: boolean;
|
|
568
|
+
priority: number;
|
|
569
|
+
conditions: InsightWorkflowConditionGroup[];
|
|
570
|
+
actions: InsightWorkflowAction[];
|
|
571
|
+
createdAt: string;
|
|
572
|
+
updatedAt: string;
|
|
573
|
+
};
|
|
574
|
+
export type InsightWorkflowExecution = {
|
|
575
|
+
id: string;
|
|
576
|
+
workflowId: string;
|
|
577
|
+
alertId: string | null;
|
|
578
|
+
status: string;
|
|
579
|
+
actionsExecuted: any[];
|
|
580
|
+
errorMessage: string | null;
|
|
581
|
+
triggeredAt: string;
|
|
582
|
+
completedAt: string | null;
|
|
583
|
+
alertName?: string;
|
|
584
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meyi-insight-ui-dev",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"react-dom": "^19.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@radix-ui/react-alert-dialog": "^1.1.16",
|
|
32
|
+
"@radix-ui/react-checkbox": "^1.3.4",
|
|
31
33
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
32
34
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
33
35
|
"@radix-ui/react-label": "^2.1.8",
|
|
@@ -36,16 +38,19 @@
|
|
|
36
38
|
"@radix-ui/react-select": "^2.2.0",
|
|
37
39
|
"@radix-ui/react-separator": "^1.1.0",
|
|
38
40
|
"@radix-ui/react-slot": "^1.2.4",
|
|
41
|
+
"@radix-ui/react-switch": "^1.3.0",
|
|
39
42
|
"@radix-ui/react-tabs": "^1.1.0",
|
|
40
43
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
41
44
|
"@tanstack/react-query": "^5.0.0",
|
|
42
45
|
"@tanstack/react-router": "^1.132.0",
|
|
43
46
|
"@tanstack/react-table": "^8.21.3",
|
|
44
47
|
"@uiw/react-md-editor": "^4.1.1",
|
|
48
|
+
"@xyflow/react": "^12.11.0",
|
|
45
49
|
"axios": "^1.12.0",
|
|
46
50
|
"class-variance-authority": "^0.7.0",
|
|
47
51
|
"clsx": "^2.1.0",
|
|
48
52
|
"cmdk": "^1.1.1",
|
|
53
|
+
"date-fns": "^4.4.0",
|
|
49
54
|
"lucide-react": "^0.545.0",
|
|
50
55
|
"next-remove-imports": "^1.0.13",
|
|
51
56
|
"socket.io-client": "^4.8.1",
|