@acorex-platform/module-system-insight-client 0.0.21

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/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@acorex-platform/module-system-insight-client",
3
+ "version": "0.0.21",
4
+ "sideEffects": false,
5
+ "peerDependencies": {
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "module": "fesm2022/acorex-platform-module-system-insight-client.mjs",
13
+ "typings": "types/acorex-platform-module-system-insight-client.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./types/acorex-platform-module-system-insight-client.d.ts",
20
+ "default": "./fesm2022/acorex-platform-module-system-insight-client.mjs"
21
+ },
22
+ "./contracts": {
23
+ "types": "./types/acorex-platform-module-system-insight-client-contracts.d.ts",
24
+ "default": "./fesm2022/acorex-platform-module-system-insight-client-contracts.mjs"
25
+ }
26
+ },
27
+ "type": "module"
28
+ }
@@ -0,0 +1,637 @@
1
+ import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare const AXMSystemInsightMenuKeys: {
4
+ readonly Root: "SystemInsight:Menu";
5
+ readonly Logs: "SystemInsight:Menu:Logs";
6
+ readonly Traces: "SystemInsight:Menu:Traces";
7
+ readonly Errors: "SystemInsight:Menu:Errors";
8
+ readonly SlowRequests: "SystemInsight:Menu:SlowRequests";
9
+ readonly Metrics: "SystemInsight:Menu:Metrics";
10
+ readonly AlertRules: "SystemInsight:Menu:AlertRules";
11
+ readonly SavedViews: "SystemInsight:Menu:SavedViews";
12
+ readonly DataSources: "SystemInsight:Menu:DataSources";
13
+ readonly RetentionPolicies: "SystemInsight:Menu:RetentionPolicies";
14
+ readonly AuditLog: "SystemInsight:Menu:AuditLog";
15
+ };
16
+
17
+ /**
18
+ * Administration capabilities used by this module.
19
+ * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
20
+ */
21
+ declare const AXPAdministrationPermissionKeys: {
22
+ readonly Access: "Administration:Permission:Access";
23
+ readonly MaintainUsersAndRoles: "Administration:Permission:MaintainUsersAndRoles";
24
+ readonly ManageSessions: "Administration:Permission:ManageSessions";
25
+ readonly MaintainPolicies: "Administration:Permission:MaintainPolicies";
26
+ readonly ViewIntegrations: "Administration:Permission:ViewIntegrations";
27
+ readonly MaintainConnections: "Administration:Permission:MaintainConnections";
28
+ readonly MaintainWorkflows: "Administration:Permission:MaintainWorkflows";
29
+ readonly ManageWorkflowActions: "Administration:Permission:ManageWorkflowActions";
30
+ readonly ViewRules: "Administration:Permission:ViewRules";
31
+ readonly MaintainRules: "Administration:Permission:MaintainRules";
32
+ readonly ManageRuleActions: "Administration:Permission:ManageRuleActions";
33
+ readonly MaintainAi: "Administration:Permission:MaintainAi";
34
+ readonly UseAiAssist: "Administration:Permission:UseAiAssist";
35
+ readonly MaintainDashboards: "Administration:Permission:MaintainDashboards";
36
+ readonly ViewJobs: "Administration:Permission:ViewJobs";
37
+ readonly ManageJobActions: "Administration:Permission:ManageJobActions";
38
+ readonly ViewObservability: "Administration:Permission:ViewObservability";
39
+ readonly MaintainObservability: "Administration:Permission:MaintainObservability";
40
+ };
41
+ /**
42
+ * @deprecated Prefer {@link AXPAdministrationPermissionKeys}.
43
+ * Legacy nested shape kept so existing imports compile during migration.
44
+ */
45
+ declare const AXMSystemInsightPermissionKeys: {
46
+ readonly SystemInsight: {
47
+ readonly Logs: {
48
+ readonly View: "Administration:Permission:ViewObservability";
49
+ };
50
+ readonly Traces: {
51
+ readonly View: "Administration:Permission:ViewObservability";
52
+ };
53
+ readonly Metrics: {
54
+ readonly View: "Administration:Permission:ViewObservability";
55
+ };
56
+ readonly Errors: {
57
+ readonly View: "Administration:Permission:ViewObservability";
58
+ };
59
+ readonly Alerts: {
60
+ readonly Manage: "Administration:Permission:MaintainObservability";
61
+ };
62
+ readonly SavedViews: {
63
+ readonly Manage: "Administration:Permission:MaintainObservability";
64
+ };
65
+ readonly Admin: "Administration:Permission:MaintainObservability";
66
+ readonly Management: "Administration:Permission:MaintainObservability";
67
+ readonly AuditLog: {
68
+ readonly Management: "Administration:Permission:MaintainObservability";
69
+ };
70
+ };
71
+ };
72
+
73
+ declare enum AXPSystemInsightSettings {
74
+ RetentionEnabled = "SystemInsight:Setting:Retention.Enabled",
75
+ RetentionPeriod = "SystemInsight:Setting:Retention.Period",
76
+ RetentionBatchSize = "SystemInsight:Setting:Retention.BatchSize",
77
+ RetentionPurgeCron = "SystemInsight:Setting:Retention.PurgeCron",
78
+ StorageLocation = "SystemInsight:Setting:Storage.Location",
79
+ CriticalErrorFileEnabled = "SystemInsight:Setting:Storage.CriticalErrorFileEnabled",
80
+ DefaultLogLevel = "SystemInsight:Setting:Level.Default",
81
+ AsyncLogging = "SystemInsight:Setting:Performance.AsyncEnabled",
82
+ BatchSize = "SystemInsight:Setting:Performance.BatchSize",
83
+ FlushInterval = "SystemInsight:Setting:Performance.FlushInterval",
84
+ SlowRequestThresholdMs = "SystemInsight:Setting:Performance.SlowRequestThresholdMs"
85
+ }
86
+ declare const AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS: {
87
+ readonly "SystemInsight:Setting:Retention.Enabled": true;
88
+ readonly "SystemInsight:Setting:Retention.Period": 30;
89
+ readonly "SystemInsight:Setting:Retention.BatchSize": 500;
90
+ readonly "SystemInsight:Setting:Retention.PurgeCron": "0 4 * * *";
91
+ readonly "SystemInsight:Setting:Storage.Location": "./logs/acorex";
92
+ readonly "SystemInsight:Setting:Storage.CriticalErrorFileEnabled": true;
93
+ readonly "SystemInsight:Setting:Level.Default": "info";
94
+ readonly "SystemInsight:Setting:Performance.AsyncEnabled": true;
95
+ readonly "SystemInsight:Setting:Performance.BatchSize": 100;
96
+ readonly "SystemInsight:Setting:Performance.FlushInterval": 5000;
97
+ readonly "SystemInsight:Setting:Performance.SlowRequestThresholdMs": 500;
98
+ };
99
+
100
+ declare const AXPSystemInsightServerCommands: {
101
+ readonly RetentionPurge: "system-insight.retention.purge";
102
+ };
103
+ /** Stable scope key for the platform log retention purge schedule. */
104
+ declare const AXP_SYSTEM_INSIGHT_RETENTION_PURGE_COMMAND_KEY: "system-insight.retention.purge";
105
+
106
+ declare const AXMSystemInsightQueryKeys: {
107
+ readonly LogEntry: {
108
+ readonly List: "SystemInsight:LogEntry:List";
109
+ readonly GetOne: "SystemInsight:LogEntry:GetOne";
110
+ readonly Aggregate: "SystemInsight:LogEntry:Aggregate";
111
+ };
112
+ readonly HttpRequestLog: {
113
+ readonly List: "SystemInsight:HttpRequestLog:List";
114
+ readonly GetOne: "SystemInsight:HttpRequestLog:GetOne";
115
+ };
116
+ readonly JobExecutionLog: {
117
+ readonly List: "SystemInsight:JobExecutionLog:List";
118
+ readonly GetOne: "SystemInsight:JobExecutionLog:GetOne";
119
+ };
120
+ readonly TraceEntry: {
121
+ readonly List: "SystemInsight:TraceEntry:List";
122
+ readonly GetOne: "SystemInsight:TraceEntry:GetOne";
123
+ };
124
+ readonly TraceSpan: {
125
+ readonly List: "SystemInsight:TraceSpan:List";
126
+ readonly GetOne: "SystemInsight:TraceSpan:GetOne";
127
+ };
128
+ readonly TraceTimeline: {
129
+ readonly Get: "SystemInsight:TraceTimeline:Get";
130
+ };
131
+ readonly ErrorEvent: {
132
+ readonly List: "SystemInsight:ErrorEvent:List";
133
+ readonly GetOne: "SystemInsight:ErrorEvent:GetOne";
134
+ readonly Aggregate: "SystemInsight:ErrorEvent:Aggregate";
135
+ };
136
+ readonly SlowRequest: {
137
+ readonly List: "SystemInsight:SlowRequest:List";
138
+ readonly GetOne: "SystemInsight:SlowRequest:GetOne";
139
+ };
140
+ readonly MetricPoint: {
141
+ readonly List: "SystemInsight:MetricPoint:List";
142
+ readonly GetOne: "SystemInsight:MetricPoint:GetOne";
143
+ readonly Range: "SystemInsight:MetricPoint:Range";
144
+ };
145
+ };
146
+
147
+ declare const AXMSystemInsightCommandKeys: {
148
+ readonly LogEntry: {
149
+ readonly Export: "SystemInsight:LogEntry:Export";
150
+ readonly Clear: "SystemInsight:LogEntry:Clear";
151
+ };
152
+ readonly AlertRule: {
153
+ readonly CreateFromFilter: "SystemInsight:AlertRule:CreateFromFilter";
154
+ };
155
+ readonly Notification: {
156
+ readonly SendAlert: "SystemInsight:Notification:SendAlert";
157
+ };
158
+ readonly Trace: {
159
+ readonly OpenTimeline: "SystemInsight:Trace:OpenTimeline";
160
+ };
161
+ };
162
+
163
+ interface SystemInsightScopeContext {
164
+ tenantId?: string;
165
+ applicationId?: string;
166
+ userId?: string;
167
+ }
168
+
169
+ interface SystemInsightPagedResult<T> {
170
+ items: T[];
171
+ total: number;
172
+ cursor?: string;
173
+ }
174
+ interface SystemInsightAggregateBucket {
175
+ key: string;
176
+ count: number;
177
+ }
178
+ interface SystemInsightAggregateResult {
179
+ buckets: SystemInsightAggregateBucket[];
180
+ total: number;
181
+ }
182
+ interface SystemInsightExportResult {
183
+ downloadUrl?: string;
184
+ contentType: string;
185
+ fileName: string;
186
+ data?: string;
187
+ }
188
+ interface SystemInsightClearResult {
189
+ deleted: number;
190
+ }
191
+
192
+ interface LogEntryDto {
193
+ id: string;
194
+ /** Event time (OTel Timestamp). */
195
+ timestamp: string;
196
+ /** Severity text (OTel SeverityText). */
197
+ level: string;
198
+ /** OTel SeverityNumber (TRACE=1 … FATAL=21). */
199
+ severityNumber?: number;
200
+ /** Log body (OTel Body). */
201
+ message: string;
202
+ serviceName?: string;
203
+ requestId?: string;
204
+ traceId?: string;
205
+ spanId?: string;
206
+ userId?: string;
207
+ tenantId?: string;
208
+ applicationId?: string;
209
+ module?: string;
210
+ entity?: string;
211
+ operation?: string;
212
+ method?: string;
213
+ url?: string;
214
+ statusCode?: number;
215
+ duration?: number;
216
+ /** Additional attributes (OTel Attributes). */
217
+ properties?: Record<string, unknown>;
218
+ source?: string;
219
+ }
220
+ interface HttpRequestLogDto extends LogEntryDto {
221
+ method?: string;
222
+ url?: string;
223
+ statusCode?: number;
224
+ duration?: number;
225
+ userAgent?: string;
226
+ clientIp?: string;
227
+ }
228
+ interface JobExecutionLogDto extends LogEntryDto {
229
+ jobId?: string;
230
+ jobName?: string;
231
+ status?: string;
232
+ startedAt?: string;
233
+ finishedAt?: string;
234
+ duration?: number;
235
+ error?: string;
236
+ }
237
+ interface SystemInsightLogQueryDto extends SystemInsightScopeContext {
238
+ from?: string;
239
+ to?: string;
240
+ skip?: number;
241
+ take?: number;
242
+ cursor?: string;
243
+ levels?: string[];
244
+ serviceName?: string;
245
+ requestId?: string;
246
+ traceId?: string;
247
+ spanId?: string;
248
+ module?: string;
249
+ entity?: string;
250
+ operation?: string;
251
+ quickSearch?: string;
252
+ hasHttpAccess?: boolean;
253
+ minDuration?: number;
254
+ filter?: unknown;
255
+ sort?: unknown;
256
+ /** Entity-list operators keyed by field (`contains`, `equal`, …). */
257
+ fieldOperators?: Record<string, string>;
258
+ }
259
+ interface SystemInsightAggregateQueryDto extends SystemInsightLogQueryDto {
260
+ groupBy: string;
261
+ }
262
+
263
+ type TraceKind = 'command' | 'query' | 'entity' | 'http' | 'custom';
264
+ type TraceSpanKind = 'op' | 'middleware' | 'backend' | 'handler';
265
+ interface TraceEntryDto {
266
+ id: string;
267
+ traceId: string;
268
+ kind?: TraceKind;
269
+ operation?: string;
270
+ /** @deprecated Prefer operation — kept for older Jaeger-mapped rows. */
271
+ rootOperation?: string;
272
+ rootServiceName?: string;
273
+ serviceName?: string;
274
+ module?: string;
275
+ entityName?: string;
276
+ startTime: string;
277
+ duration: number;
278
+ status?: string;
279
+ spanCount?: number;
280
+ hasError?: boolean;
281
+ requestId?: string;
282
+ tenantId?: string;
283
+ applicationId?: string;
284
+ userId?: string;
285
+ hasAi?: boolean;
286
+ aiModel?: string;
287
+ aiInputTokens?: number;
288
+ aiOutputTokens?: number;
289
+ }
290
+ interface TraceSpanDto {
291
+ id: string;
292
+ spanId: string;
293
+ traceId: string;
294
+ parentSpanId?: string;
295
+ operationName: string;
296
+ serviceName?: string;
297
+ spanKind?: TraceSpanKind;
298
+ startTime: string;
299
+ duration: number;
300
+ status?: string;
301
+ middlewareName?: string;
302
+ order?: number;
303
+ nextMiddleware?: string;
304
+ input?: unknown;
305
+ output?: unknown;
306
+ error?: string;
307
+ tags?: Record<string, unknown>;
308
+ logs?: Array<Record<string, unknown>>;
309
+ }
310
+ interface TraceTimelineDto {
311
+ traceId: string;
312
+ kind?: TraceKind;
313
+ operation?: string;
314
+ spans: TraceSpanDto[];
315
+ startTime: string;
316
+ duration: number;
317
+ services: string[];
318
+ hasError?: boolean;
319
+ module?: string;
320
+ entityName?: string;
321
+ requestId?: string;
322
+ hasAi?: boolean;
323
+ aiModel?: string;
324
+ aiInputTokens?: number;
325
+ aiOutputTokens?: number;
326
+ }
327
+ interface SystemInsightTraceQueryDto extends SystemInsightScopeContext {
328
+ from?: string;
329
+ to?: string;
330
+ skip?: number;
331
+ take?: number;
332
+ serviceName?: string;
333
+ traceId?: string;
334
+ kind?: TraceKind | TraceKind[];
335
+ operation?: string;
336
+ module?: string;
337
+ entityName?: string;
338
+ hasError?: boolean;
339
+ /** Minimum root trace duration in milliseconds (slow traces). */
340
+ minDuration?: number;
341
+ quickSearch?: string;
342
+ requestId?: string;
343
+ /** Entity-list operators keyed by field (`contains`, `equal`, …). */
344
+ fieldOperators?: Record<string, string>;
345
+ }
346
+
347
+ type SystemInsightMetricType = 'counter' | 'gauge' | 'histogram';
348
+ interface MetricPointDto {
349
+ id: string;
350
+ name: string;
351
+ labels?: Record<string, string>;
352
+ timestamp: string;
353
+ value: number;
354
+ type: SystemInsightMetricType;
355
+ }
356
+ interface SystemInsightMetricQueryDto extends SystemInsightScopeContext {
357
+ from?: string;
358
+ to?: string;
359
+ skip?: number;
360
+ take?: number;
361
+ names?: string[];
362
+ serviceName?: string;
363
+ step?: string;
364
+ }
365
+ interface SystemInsightMetricRangeResult {
366
+ series: Array<{
367
+ name: string;
368
+ labels?: Record<string, string>;
369
+ points: Array<{
370
+ timestamp: string;
371
+ value: number;
372
+ }>;
373
+ }>;
374
+ }
375
+
376
+ interface ErrorEventDto {
377
+ id: string;
378
+ timestamp: string;
379
+ errorType?: string;
380
+ message: string;
381
+ stackTrace?: string;
382
+ serviceName?: string;
383
+ traceId?: string;
384
+ requestId?: string;
385
+ userId?: string;
386
+ tenantId?: string;
387
+ fingerprint?: string;
388
+ }
389
+ interface SlowRequestDto {
390
+ id: string;
391
+ timestamp: string;
392
+ method?: string;
393
+ url?: string;
394
+ duration: number;
395
+ thresholdMs?: number;
396
+ statusCode?: number;
397
+ serviceName?: string;
398
+ traceId?: string;
399
+ requestId?: string;
400
+ }
401
+ interface SystemInsightErrorQueryDto extends SystemInsightScopeContext {
402
+ from?: string;
403
+ to?: string;
404
+ skip?: number;
405
+ take?: number;
406
+ serviceName?: string;
407
+ traceId?: string;
408
+ requestId?: string;
409
+ quickSearch?: string;
410
+ }
411
+ interface SystemInsightSlowRequestQueryDto extends SystemInsightErrorQueryDto {
412
+ thresholdMs?: number;
413
+ }
414
+
415
+ interface SavedViewDto {
416
+ id: string;
417
+ title: string;
418
+ description?: string;
419
+ entityFullName: string;
420
+ filter?: unknown;
421
+ sorts?: unknown;
422
+ columns?: unknown;
423
+ timeRange?: {
424
+ from?: string;
425
+ to?: string;
426
+ };
427
+ isDefault?: boolean;
428
+ isShared?: boolean;
429
+ ownerUserId?: string;
430
+ tenantId?: string;
431
+ }
432
+ interface AlertRuleDto {
433
+ id: string;
434
+ name: string;
435
+ enabled: boolean;
436
+ entityFullName: string;
437
+ condition?: unknown;
438
+ threshold?: number;
439
+ windowMinutes?: number;
440
+ severity?: string;
441
+ notificationChannels?: string[];
442
+ lastTriggeredAt?: string;
443
+ tenantId?: string;
444
+ }
445
+ interface ObservabilityDataSourceDto {
446
+ id: string;
447
+ name: string;
448
+ type: 'logs' | 'traces' | 'metrics';
449
+ provider: 'elasticsearch' | 'jaeger' | 'prometheus' | 'fake';
450
+ connectionConfig?: Record<string, unknown>;
451
+ isDefault?: boolean;
452
+ tenantId?: string;
453
+ }
454
+ interface RetentionPolicyDto {
455
+ id: string;
456
+ dataType: 'logs' | 'traces' | 'metrics' | 'audit';
457
+ retentionDays: number;
458
+ enabled: boolean;
459
+ tenantId?: string;
460
+ applicationId?: string;
461
+ }
462
+ interface DashboardWidgetConfigDto {
463
+ id: string;
464
+ title: string;
465
+ widgetType: string;
466
+ query?: unknown;
467
+ layout?: unknown;
468
+ order?: number;
469
+ dashboardKey: string;
470
+ tenantId?: string;
471
+ }
472
+ interface CreateAlertFromFilterInput {
473
+ name: string;
474
+ entityFullName: string;
475
+ filter?: unknown;
476
+ threshold?: number;
477
+ windowMinutes?: number;
478
+ severity?: string;
479
+ notificationChannels?: string[];
480
+ }
481
+
482
+ declare const RootConfig: {
483
+ readonly config: {
484
+ i18n: string;
485
+ };
486
+ readonly module: {
487
+ readonly route: "system-insight";
488
+ readonly module: "system-insight";
489
+ readonly name: "SystemInsight";
490
+ readonly title: "@system-insight:module.title";
491
+ readonly icon: "fa-light fa-monitor-waveform";
492
+ };
493
+ readonly entities: {
494
+ readonly auditLog: {
495
+ readonly name: "AuditLog";
496
+ readonly title: "@system-insight:logs.entities.audit-log.title";
497
+ readonly titlePlural: "@system-insight:logs.entities.audit-log.plural";
498
+ readonly icon: "fa-light fa-file-code";
499
+ };
500
+ readonly logEntry: {
501
+ readonly name: "LogEntry";
502
+ readonly title: "@system-insight:entities.log-entry.title";
503
+ readonly titlePlural: "@system-insight:entities.log-entry.plural";
504
+ readonly icon: "fa-light fa-file-lines";
505
+ };
506
+ readonly httpRequestLog: {
507
+ readonly name: "HttpRequestLog";
508
+ readonly title: "@system-insight:entities.http-request-log.title";
509
+ readonly titlePlural: "@system-insight:entities.http-request-log.plural";
510
+ readonly icon: "fa-light fa-globe";
511
+ };
512
+ readonly jobExecutionLog: {
513
+ readonly name: "JobExecutionLog";
514
+ readonly title: "@system-insight:entities.job-execution-log.title";
515
+ readonly titlePlural: "@system-insight:entities.job-execution-log.plural";
516
+ readonly icon: "fa-light fa-clock";
517
+ };
518
+ readonly traceEntry: {
519
+ readonly name: "TraceEntry";
520
+ readonly title: "@system-insight:entities.trace-entry.title";
521
+ readonly titlePlural: "@system-insight:entities.trace-entry.plural";
522
+ readonly icon: "fa-light fa-route";
523
+ };
524
+ readonly traceSpan: {
525
+ readonly name: "TraceSpan";
526
+ readonly title: "@system-insight:entities.trace-span.title";
527
+ readonly titlePlural: "@system-insight:entities.trace-span.plural";
528
+ readonly icon: "fa-light fa-diagram-project";
529
+ };
530
+ readonly errorEvent: {
531
+ readonly name: "ErrorEvent";
532
+ readonly title: "@system-insight:entities.error-event.title";
533
+ readonly titlePlural: "@system-insight:entities.error-event.plural";
534
+ readonly icon: "fa-light fa-circle-exclamation";
535
+ };
536
+ readonly slowRequest: {
537
+ readonly name: "SlowRequest";
538
+ readonly title: "@system-insight:entities.slow-request.title";
539
+ readonly titlePlural: "@system-insight:entities.slow-request.plural";
540
+ readonly icon: "fa-light fa-hourglass-half";
541
+ };
542
+ readonly metricPoint: {
543
+ readonly name: "MetricPoint";
544
+ readonly title: "@system-insight:entities.metric-point.title";
545
+ readonly titlePlural: "@system-insight:entities.metric-point.plural";
546
+ readonly icon: "fa-light fa-chart-line";
547
+ };
548
+ readonly savedView: {
549
+ readonly name: "SavedView";
550
+ readonly title: "@system-insight:entities.saved-view.title";
551
+ readonly titlePlural: "@system-insight:entities.saved-view.plural";
552
+ readonly icon: "fa-light fa-bookmark";
553
+ };
554
+ readonly alertRule: {
555
+ readonly name: "AlertRule";
556
+ readonly title: "@system-insight:entities.alert-rule.title";
557
+ readonly titlePlural: "@system-insight:entities.alert-rule.plural";
558
+ readonly icon: "fa-light fa-bell";
559
+ };
560
+ readonly observabilityDataSource: {
561
+ readonly name: "ObservabilityDataSource";
562
+ readonly title: "@system-insight:entities.observability-data-source.title";
563
+ readonly titlePlural: "@system-insight:entities.observability-data-source.plural";
564
+ readonly icon: "fa-light fa-database";
565
+ };
566
+ readonly retentionPolicy: {
567
+ readonly name: "RetentionPolicy";
568
+ readonly title: "@system-insight:entities.retention-policy.title";
569
+ readonly titlePlural: "@system-insight:entities.retention-policy.plural";
570
+ readonly icon: "fa-light fa-calendar-clock";
571
+ };
572
+ readonly dashboardWidgetConfig: {
573
+ readonly name: "DashboardWidgetConfig";
574
+ readonly title: "@system-insight:entities.dashboard-widget-config.title";
575
+ readonly titlePlural: "@system-insight:entities.dashboard-widget-config.plural";
576
+ readonly icon: "fa-light fa-grid-2";
577
+ };
578
+ };
579
+ };
580
+
581
+ /** Registry key for Trace Timeline custom entity page (tab on TraceEntry). */
582
+ declare const TRACE_TIMELINE_PAGE_COMPONENT_KEY = "trace-timeline-page";
583
+ /** Registry key for Trace Flow chart custom entity page (tab on TraceEntry). */
584
+ declare const TRACE_FLOW_PAGE_COMPONENT_KEY = "trace-flow-page";
585
+
586
+ interface AXMSystemInsightAuditLogEntityModel extends AXPEntityModel<string> {
587
+ applicationName: string;
588
+ tenantId?: string;
589
+ tenantName?: string;
590
+ userId?: string;
591
+ userName?: string;
592
+ executionTime: Date;
593
+ executionDuration: number;
594
+ clientIpAddress?: string;
595
+ clientName?: string;
596
+ clientId?: string;
597
+ correlationId?: string;
598
+ browserInfo?: string;
599
+ httpMethod?: string;
600
+ url?: string;
601
+ httpStatusCode?: number;
602
+ httpStatus?: string;
603
+ exceptions?: string;
604
+ comments?: string;
605
+ impersonatorUserId?: string;
606
+ impersonatorUserName?: string;
607
+ impersonatorTenantId?: string;
608
+ impersonatorTenantName?: string;
609
+ extraProperties?: Record<string, any>;
610
+ actions?: AXMSystemInsightAuditLogAction[];
611
+ entityChanges?: AXMSystemInsightEntityChange[];
612
+ }
613
+ interface AXMSystemInsightAuditLogAction {
614
+ serviceName?: string;
615
+ methodName?: string;
616
+ parameters?: string;
617
+ executionTime: Date;
618
+ executionDuration: number;
619
+ extraProperties?: Record<string, any>;
620
+ }
621
+ interface AXMSystemInsightEntityChange {
622
+ changeTime: Date;
623
+ entityId: string;
624
+ entityTypeFullName: string;
625
+ changeType: string;
626
+ propertyChanges?: AXMSystemInsightEntityPropertyChange[];
627
+ extraProperties?: Record<string, any>;
628
+ }
629
+ interface AXMSystemInsightEntityPropertyChange {
630
+ propertyName: string;
631
+ propertyTypeFullName: string;
632
+ originalValue?: string;
633
+ newValue?: string;
634
+ }
635
+
636
+ export { AXMSystemInsightCommandKeys, AXMSystemInsightMenuKeys, AXMSystemInsightPermissionKeys, AXMSystemInsightQueryKeys, AXPAdministrationPermissionKeys, AXPSystemInsightServerCommands, AXPSystemInsightSettings, AXP_SYSTEM_INSIGHT_RETENTION_PURGE_COMMAND_KEY, AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS, RootConfig, TRACE_FLOW_PAGE_COMPONENT_KEY, TRACE_TIMELINE_PAGE_COMPONENT_KEY };
637
+ export type { AXMSystemInsightAuditLogAction, AXMSystemInsightAuditLogEntityModel, AXMSystemInsightEntityChange, AXMSystemInsightEntityPropertyChange, AlertRuleDto, CreateAlertFromFilterInput, DashboardWidgetConfigDto, ErrorEventDto, HttpRequestLogDto, JobExecutionLogDto, LogEntryDto, MetricPointDto, ObservabilityDataSourceDto, RetentionPolicyDto, SavedViewDto, SlowRequestDto, SystemInsightAggregateBucket, SystemInsightAggregateQueryDto, SystemInsightAggregateResult, SystemInsightClearResult, SystemInsightErrorQueryDto, SystemInsightExportResult, SystemInsightLogQueryDto, SystemInsightMetricQueryDto, SystemInsightMetricRangeResult, SystemInsightMetricType, SystemInsightPagedResult, SystemInsightScopeContext, SystemInsightSlowRequestQueryDto, SystemInsightTraceQueryDto, TraceEntryDto, TraceKind, TraceSpanDto, TraceSpanKind, TraceTimelineDto };
@@ -0,0 +1,28 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from '@acorex-platform/framework-client/runtime';
3
+ import { AXPMenuProvider, AXPMenuProviderContext, AXPSearchCommandProvider, AXPSearchResult, AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';
4
+
5
+ declare class AXMSystemInsightModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMSystemInsightModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMSystemInsightModule, never, [typeof i1.AXPRuntimeModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMSystemInsightModule>;
9
+ }
10
+
11
+ declare class AXMSystemInsightMenuProvider implements AXPMenuProvider {
12
+ private readonly entityService;
13
+ provide(context: AXPMenuProviderContext): Promise<void>;
14
+ }
15
+
16
+ declare class AXMSystemInsightSearchCommandProvider extends AXPSearchCommandProvider {
17
+ commands: AXPSearchResult[];
18
+ }
19
+
20
+ /**
21
+ * Provides configuration definitions for the System Insight module.
22
+ * Settings are consumed on the server for retention, log level, indexing, and critical-error file fallback.
23
+ */
24
+ declare class AXPSystemInsightSettingProvider implements AXPSettingDefinitionProvider {
25
+ provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
26
+ }
27
+
28
+ export { AXMSystemInsightMenuProvider, AXMSystemInsightModule, AXMSystemInsightSearchCommandProvider, AXPSystemInsightSettingProvider };