meyi-insight-ui-dev 1.0.3 → 1.0.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/features/alerts/components/AlertFilters.d.ts +5 -5
- package/dist/features/sources/add-wizard/AddSourceConfigureStep.d.ts +8 -0
- package/dist/features/{connectors/add-wizard/AddConnectorDeployStep.d.ts → sources/add-wizard/AddSourceDeployStep.d.ts} +3 -3
- package/dist/features/sources/add-wizard/AddSourceOverviewStep.d.ts +4 -0
- package/dist/features/sources/add-wizard/AddSourceSourceStep.d.ts +5 -0
- package/dist/features/{connectors/add-wizard/AddConnectorWizard.d.ts → sources/add-wizard/AddSourceWizard.d.ts} +1 -1
- package/dist/features/sources/add-wizard/add-source-options.d.ts +10 -0
- package/dist/features/sources/cloudwatch-wizard/CloudWatchSourceWizard.d.ts +8 -0
- package/dist/features/sources/components/InsightSourceDeleteDialog.d.ts +9 -0
- package/dist/features/sources/components/InsightSourceForm.d.ts +18 -0
- package/dist/features/{connectors/components/ConnectorAwsOnboardingDialog.d.ts → sources/components/SourceAwsOnboardingDialog.d.ts} +1 -1
- package/dist/features/{connectors/components/ConnectorDatadogSetupDialog.d.ts → sources/components/SourceDatadogSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceDetailsDialog.d.ts +8 -0
- package/dist/features/sources/components/SourceFilters.d.ts +21 -0
- package/dist/features/{connectors/components/ConnectorGrafanaSetupDialog.d.ts → sources/components/SourceGrafanaSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceGroupedList.d.ts +18 -0
- package/dist/features/{connectors/components/ConnectorPrometheusSetupDialog.d.ts → sources/components/SourcePrometheusSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceTokenPolicyDialog.d.ts +11 -0
- package/dist/features/sources/components/WebhookSuccessModal.d.ts +6 -0
- package/dist/features/{connectors/detail/ConnectorAlarmsTab.d.ts → sources/detail/SourceAlarmsTab.d.ts} +1 -1
- package/dist/features/sources/detail/SourceConfigurationTab.d.ts +10 -0
- package/dist/features/sources/detail/SourceDetailHeader.d.ts +11 -0
- package/dist/features/sources/detail/SourceDetailPage.d.ts +5 -0
- package/dist/features/sources/detail/SourceDetailTabs.d.ts +6 -0
- package/dist/features/sources/detail/SourceLogsTab.d.ts +6 -0
- package/dist/features/sources/detail/SourceOverviewTab.d.ts +4 -0
- package/dist/features/{connectors/detail/ConnectorSetupTab.d.ts → sources/detail/SourceSetupTab.d.ts} +3 -3
- package/dist/features/sources/detail/SourceTestTab.d.ts +6 -0
- package/dist/features/sources/detail/source-detail-utils.d.ts +18 -0
- package/dist/features/sources/grafana-wizard/GrafanaSourceWizard.d.ts +7 -0
- package/dist/features/sources/index.d.ts +1 -0
- package/dist/features/{connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts → sources/prometheus-wizard/PrometheusSourceWizard.d.ts} +1 -1
- package/dist/features/sources/source-selection/SourceSourcePickerDialog.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +115 -115
- package/dist/index.mjs +19177 -19083
- package/dist/services/insight.d.ts +42 -35
- package/dist/style.css +1 -1
- package/dist/types.d.ts +37 -37
- package/package.json +1 -1
- package/dist/features/connectors/add-wizard/AddConnectorConfigureStep.d.ts +0 -8
- package/dist/features/connectors/add-wizard/AddConnectorOverviewStep.d.ts +0 -4
- package/dist/features/connectors/add-wizard/AddConnectorSourceStep.d.ts +0 -5
- package/dist/features/connectors/add-wizard/add-connector-options.d.ts +0 -10
- package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +0 -8
- package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +0 -8
- package/dist/features/connectors/components/ConnectorFilters.d.ts +0 -21
- package/dist/features/connectors/components/ConnectorGroupedList.d.ts +0 -20
- package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +0 -11
- package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +0 -9
- package/dist/features/connectors/components/InsightConnectorForm.d.ts +0 -18
- package/dist/features/connectors/components/WebhookSuccessModal.d.ts +0 -6
- package/dist/features/connectors/detail/ConnectorConfigurationTab.d.ts +0 -10
- package/dist/features/connectors/detail/ConnectorDetailHeader.d.ts +0 -11
- package/dist/features/connectors/detail/ConnectorDetailPage.d.ts +0 -5
- package/dist/features/connectors/detail/ConnectorDetailTabs.d.ts +0 -6
- package/dist/features/connectors/detail/ConnectorLogsTab.d.ts +0 -6
- package/dist/features/connectors/detail/ConnectorOverviewTab.d.ts +0 -4
- package/dist/features/connectors/detail/ConnectorTestTab.d.ts +0 -6
- package/dist/features/connectors/detail/connector-detail-utils.d.ts +0 -18
- package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +0 -7
- package/dist/features/connectors/index.d.ts +0 -1
- package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsightAlert, InsightAlertSummary,
|
|
1
|
+
import { InsightAlert, InsightAlertSummary, InsightSource, InsightWebhookFailureLog, InsightProject, InsightIncident, InsightSourceTokenPolicy, InsightSourceOverview, InsightSourceLog, InsightSourceTestResult, InsightCloudWatchDiscoverResult, InsightCloudWatchSetupResult, InsightCloudWatchDeployResult, InsightCloudWatchConsoleDeployResult, InsightCloudTrailConsoleDeploy, InsightGrafanaOnboarding, InsightGrafanaSaveResult, InsightGrafanaSetupResult, InsightPrometheusOnboarding, InsightDatadogOnboarding, InsightDatadogSetupResult } from '../types.js';
|
|
2
2
|
export interface IncidentDashboardData {
|
|
3
3
|
stats: {
|
|
4
4
|
p1: number;
|
|
@@ -117,7 +117,7 @@ export declare const insightService: {
|
|
|
117
117
|
limit?: number;
|
|
118
118
|
status?: string;
|
|
119
119
|
severity?: string;
|
|
120
|
-
|
|
120
|
+
sourceId?: string;
|
|
121
121
|
search?: string;
|
|
122
122
|
}) => Promise<{
|
|
123
123
|
ok: boolean;
|
|
@@ -146,19 +146,19 @@ export declare const insightService: {
|
|
|
146
146
|
projectTag?: string;
|
|
147
147
|
}) => Promise<any>;
|
|
148
148
|
deleteAlert(id: string): Promise<any>;
|
|
149
|
-
|
|
149
|
+
listSources: (params?: {
|
|
150
150
|
page?: number;
|
|
151
151
|
limit?: number;
|
|
152
152
|
search?: string;
|
|
153
153
|
type?: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
ok: boolean;
|
|
156
|
-
|
|
156
|
+
sources: InsightSource[];
|
|
157
157
|
total: number;
|
|
158
158
|
page: number;
|
|
159
159
|
limit: number;
|
|
160
160
|
}>;
|
|
161
|
-
|
|
161
|
+
createSource: (data: {
|
|
162
162
|
name: string;
|
|
163
163
|
type: string;
|
|
164
164
|
description?: string;
|
|
@@ -168,19 +168,19 @@ export declare const insightService: {
|
|
|
168
168
|
};
|
|
169
169
|
}) => Promise<{
|
|
170
170
|
ok: boolean;
|
|
171
|
-
|
|
171
|
+
sourceId: string;
|
|
172
172
|
webhookToken: string;
|
|
173
173
|
webhookUrl: string;
|
|
174
|
-
tokenPolicy?:
|
|
174
|
+
tokenPolicy?: InsightSourceTokenPolicy;
|
|
175
175
|
}>;
|
|
176
|
-
|
|
176
|
+
getSource: (id: string) => Promise<{
|
|
177
177
|
ok: boolean;
|
|
178
|
-
|
|
178
|
+
source: InsightSource;
|
|
179
179
|
}>;
|
|
180
|
-
|
|
180
|
+
getSourceOverview: (id: string) => Promise<{
|
|
181
181
|
ok: boolean;
|
|
182
|
-
} &
|
|
183
|
-
|
|
182
|
+
} & InsightSourceOverview>;
|
|
183
|
+
listSourceAlarms: (id: string, params?: {
|
|
184
184
|
page?: number;
|
|
185
185
|
limit?: number;
|
|
186
186
|
}) => Promise<{
|
|
@@ -190,19 +190,19 @@ export declare const insightService: {
|
|
|
190
190
|
page: number;
|
|
191
191
|
limit: number;
|
|
192
192
|
}>;
|
|
193
|
-
|
|
193
|
+
listSourceLogs: (id: string, params?: {
|
|
194
194
|
page?: number;
|
|
195
195
|
limit?: number;
|
|
196
196
|
search?: string;
|
|
197
197
|
}) => Promise<{
|
|
198
198
|
ok: boolean;
|
|
199
|
-
logs:
|
|
199
|
+
logs: InsightSourceLog[];
|
|
200
200
|
total: number;
|
|
201
201
|
page: number;
|
|
202
202
|
limit: number;
|
|
203
203
|
}>;
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
testSource: (id: string) => Promise<InsightSourceTestResult>;
|
|
205
|
+
updateSource: (id: string, data: {
|
|
206
206
|
name?: string;
|
|
207
207
|
description?: string;
|
|
208
208
|
isActive?: boolean;
|
|
@@ -211,21 +211,21 @@ export declare const insightService: {
|
|
|
211
211
|
ok: boolean;
|
|
212
212
|
webhookToken: string;
|
|
213
213
|
webhookUrl: string;
|
|
214
|
-
tokenPolicy?:
|
|
214
|
+
tokenPolicy?: InsightSourceTokenPolicy;
|
|
215
215
|
}>;
|
|
216
|
-
|
|
216
|
+
getSourceTokenPolicy: (id: string) => Promise<{
|
|
217
217
|
ok: boolean;
|
|
218
|
-
|
|
219
|
-
tokenPolicy:
|
|
218
|
+
sourceId: string;
|
|
219
|
+
tokenPolicy: InsightSourceTokenPolicy;
|
|
220
220
|
}>;
|
|
221
|
-
|
|
221
|
+
updateSourceTokenPolicy: (id: string, data: {
|
|
222
222
|
mode: "expires" | "unlimited";
|
|
223
223
|
ttlDays?: number;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
ok: boolean;
|
|
226
|
-
|
|
226
|
+
sourceId: string;
|
|
227
227
|
webhookUrl: string | null;
|
|
228
|
-
tokenPolicy:
|
|
228
|
+
tokenPolicy: InsightSourceTokenPolicy;
|
|
229
229
|
}>;
|
|
230
230
|
discoverCloudWatch: (id: string, data: {
|
|
231
231
|
accessKeyId: string;
|
|
@@ -243,7 +243,7 @@ export declare const insightService: {
|
|
|
243
243
|
stackName?: string;
|
|
244
244
|
}) => Promise<{
|
|
245
245
|
ok: boolean;
|
|
246
|
-
|
|
246
|
+
source: {
|
|
247
247
|
id: string;
|
|
248
248
|
awsDeploymentStatus: string;
|
|
249
249
|
awsDeploymentStatusReason?: string | null;
|
|
@@ -299,7 +299,7 @@ export declare const insightService: {
|
|
|
299
299
|
status: "configured" | "failed" | "not_yet" | string;
|
|
300
300
|
reason: string;
|
|
301
301
|
checks: Record<string, any>;
|
|
302
|
-
|
|
302
|
+
source?: InsightSource;
|
|
303
303
|
}>;
|
|
304
304
|
getDatadogOnboarding: (id: string) => Promise<InsightDatadogOnboarding>;
|
|
305
305
|
setupDatadog: (id: string, data: {
|
|
@@ -317,7 +317,7 @@ export declare const insightService: {
|
|
|
317
317
|
stackName?: string;
|
|
318
318
|
}) => Promise<{
|
|
319
319
|
ok: boolean;
|
|
320
|
-
|
|
320
|
+
source: {
|
|
321
321
|
id: string;
|
|
322
322
|
awsDeploymentStatus: string;
|
|
323
323
|
awsDeploymentStatusReason?: string | null;
|
|
@@ -325,8 +325,8 @@ export declare const insightService: {
|
|
|
325
325
|
awsStackId?: string | null;
|
|
326
326
|
};
|
|
327
327
|
}>;
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
deleteSource: (id: string) => Promise<any>;
|
|
329
|
+
listSourceWebhookFailures: (id: string, params?: {
|
|
330
330
|
page?: number;
|
|
331
331
|
limit?: number;
|
|
332
332
|
}) => Promise<{
|
|
@@ -423,6 +423,10 @@ export declare const insightService: {
|
|
|
423
423
|
ok: boolean;
|
|
424
424
|
events: PipelineEvent[];
|
|
425
425
|
}>;
|
|
426
|
+
getPipelineDefaults: (sourceType: string) => Promise<{
|
|
427
|
+
ok: boolean;
|
|
428
|
+
defaults: any;
|
|
429
|
+
}>;
|
|
426
430
|
listNormalizationConfigs: () => Promise<{
|
|
427
431
|
ok: boolean;
|
|
428
432
|
configs: NormalizationConfig[];
|
|
@@ -440,7 +444,7 @@ export declare const insightService: {
|
|
|
440
444
|
config: NormalizationConfig;
|
|
441
445
|
}>;
|
|
442
446
|
deleteNormalizationConfig: (id: string) => Promise<any>;
|
|
443
|
-
testNormalizationConfig: (id: string,
|
|
447
|
+
testNormalizationConfig: (id: string, sourceType: string, samplePayload: unknown) => Promise<any>;
|
|
444
448
|
parseNormalizationYaml: (yaml: string) => Promise<any>;
|
|
445
449
|
listDedupConfigs: () => Promise<{
|
|
446
450
|
ok: boolean;
|
|
@@ -493,10 +497,11 @@ export interface NormalizationConfig {
|
|
|
493
497
|
name: string;
|
|
494
498
|
priority: number;
|
|
495
499
|
isActive: boolean;
|
|
496
|
-
|
|
497
|
-
|
|
500
|
+
sourceId: string | null;
|
|
501
|
+
sourceType: string | null;
|
|
498
502
|
fieldMapping: string;
|
|
499
503
|
yamlDefinition: string;
|
|
504
|
+
isSystem: boolean;
|
|
500
505
|
createdAt: string;
|
|
501
506
|
updatedAt: string;
|
|
502
507
|
}
|
|
@@ -505,14 +510,15 @@ export interface DedupConfig {
|
|
|
505
510
|
name: string;
|
|
506
511
|
priority: number;
|
|
507
512
|
isActive: boolean;
|
|
508
|
-
|
|
509
|
-
|
|
513
|
+
sourceId: string | null;
|
|
514
|
+
sourceType: string | null;
|
|
510
515
|
windowSeconds: number;
|
|
511
516
|
keyFields: string[];
|
|
512
517
|
flapThreshold: number;
|
|
513
518
|
flapWindowSeconds: number;
|
|
514
519
|
onFlap: string;
|
|
515
520
|
yamlDefinition: string;
|
|
521
|
+
isSystem: boolean;
|
|
516
522
|
createdAt: string;
|
|
517
523
|
updatedAt: string;
|
|
518
524
|
}
|
|
@@ -521,13 +527,14 @@ export interface GroupingConfig {
|
|
|
521
527
|
name: string;
|
|
522
528
|
priority: number;
|
|
523
529
|
isActive: boolean;
|
|
524
|
-
|
|
525
|
-
|
|
530
|
+
sourceId: string | null;
|
|
531
|
+
sourceType: string | null;
|
|
526
532
|
groupBy: string[];
|
|
527
533
|
timeoutSeconds: number;
|
|
528
534
|
maxAlarms: number;
|
|
529
535
|
incidentTitleTemplate: string | null;
|
|
530
536
|
yamlDefinition: string;
|
|
537
|
+
isSystem: boolean;
|
|
531
538
|
createdAt: string;
|
|
532
539
|
updatedAt: string;
|
|
533
540
|
}
|