@acorex-platform/module-system-insight-client 0.0.32 → 0.0.37
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/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs +163 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs +741 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-audit-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs +161 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs +365 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-error-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs +439 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs +445 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs +730 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-log-entry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs +290 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-metric-point.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs +161 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs +182 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs +162 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-saved-view.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs +312 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-slow-request.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs +539 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs +304 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-trace-span.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs +135 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs +43 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-alert-rule.entity-CVQ8zi2n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs +638 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-audit-log.entity-DUUbh-K4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs +20 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs +58 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-dashboard-widget-config.entity-CQPGHj3-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs +203 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-error-event.entity-41bQET9n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs +277 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs +283 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs +533 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-log-entry.entity-KhwOnohn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs +128 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-metric-point.entity-kfxxSxvp.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs +58 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-observability-data-source.entity-BM0wTN3C.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs +45 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs +79 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-retention-policy.entity-BU_FXy6_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs +59 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-saved-view.entity-BhhIVSRT.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs +38 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs +150 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs +342 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs +142 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-span.entity-BJGn3-6F.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-system-insight-client-index-D-Sy2f4K.mjs → acorex-platform-module-system-insight-client-index-CeO40uWE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-system-insight-client-index-D-Sy2f4K.mjs.map → acorex-platform-module-system-insight-client-index-CeO40uWE.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs +42 -0
- package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-system-insight-client-open-trace-timeline.command-DPbr-AYZ.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-system-insight-client.mjs +2 -2
- package/fesm2022/acorex-platform-module-system-insight-client.mjs.map +1 -1
- package/package.json +65 -1
- package/types/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-audit-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-dashboard-widget-config.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-error-event.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-http-request-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-job-execution-log.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-log-entry.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-metric-point.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-observability-data-source.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-retention-policy.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-saved-view.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-slow-request.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-entry.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entities-trace-span.d.ts +5 -0
- package/types/acorex-platform-module-system-insight-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-system-insight-client-local-entities.d.ts +12 -0
package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
//#region ---- Command Keys ----
|
|
5
|
+
const AXMSystemInsightCommandKeys = {
|
|
6
|
+
LogEntry: {
|
|
7
|
+
Export: 'SystemInsight:LogEntry:Export',
|
|
8
|
+
Clear: 'SystemInsight:LogEntry:Clear',
|
|
9
|
+
},
|
|
10
|
+
AlertRule: {
|
|
11
|
+
CreateFromFilter: 'SystemInsight:AlertRule:CreateFromFilter',
|
|
12
|
+
},
|
|
13
|
+
Notification: {
|
|
14
|
+
SendAlert: 'SystemInsight:Notification:SendAlert',
|
|
15
|
+
},
|
|
16
|
+
Trace: {
|
|
17
|
+
OpenTimeline: 'SystemInsight:Trace:OpenTimeline',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
|
|
22
|
+
const config = {
|
|
23
|
+
i18n: 'system-insight',
|
|
24
|
+
};
|
|
25
|
+
const RootConfig = {
|
|
26
|
+
config,
|
|
27
|
+
module: {
|
|
28
|
+
route: 'system-insight',
|
|
29
|
+
module: 'system-insight',
|
|
30
|
+
name: 'SystemInsight',
|
|
31
|
+
title: '@system-insight:module.title',
|
|
32
|
+
icon: 'fa-light fa-monitor-waveform',
|
|
33
|
+
},
|
|
34
|
+
entities: {
|
|
35
|
+
auditLog: {
|
|
36
|
+
name: 'AuditLog',
|
|
37
|
+
title: '@system-insight:logs.entities.audit-log.title',
|
|
38
|
+
titlePlural: '@system-insight:logs.entities.audit-log.plural',
|
|
39
|
+
icon: 'fa-light fa-file-code',
|
|
40
|
+
},
|
|
41
|
+
logEntry: {
|
|
42
|
+
name: 'LogEntry',
|
|
43
|
+
title: '@system-insight:entities.log-entry.title',
|
|
44
|
+
titlePlural: '@system-insight:entities.log-entry.plural',
|
|
45
|
+
icon: 'fa-light fa-file-lines',
|
|
46
|
+
},
|
|
47
|
+
httpRequestLog: {
|
|
48
|
+
name: 'HttpRequestLog',
|
|
49
|
+
title: '@system-insight:entities.http-request-log.title',
|
|
50
|
+
titlePlural: '@system-insight:entities.http-request-log.plural',
|
|
51
|
+
icon: 'fa-light fa-globe',
|
|
52
|
+
},
|
|
53
|
+
jobExecutionLog: {
|
|
54
|
+
name: 'JobExecutionLog',
|
|
55
|
+
title: '@system-insight:entities.job-execution-log.title',
|
|
56
|
+
titlePlural: '@system-insight:entities.job-execution-log.plural',
|
|
57
|
+
icon: 'fa-light fa-clock',
|
|
58
|
+
},
|
|
59
|
+
traceEntry: {
|
|
60
|
+
name: 'TraceEntry',
|
|
61
|
+
title: '@system-insight:entities.trace-entry.title',
|
|
62
|
+
titlePlural: '@system-insight:entities.trace-entry.plural',
|
|
63
|
+
icon: 'fa-light fa-route',
|
|
64
|
+
},
|
|
65
|
+
traceSpan: {
|
|
66
|
+
name: 'TraceSpan',
|
|
67
|
+
title: '@system-insight:entities.trace-span.title',
|
|
68
|
+
titlePlural: '@system-insight:entities.trace-span.plural',
|
|
69
|
+
icon: 'fa-light fa-diagram-project',
|
|
70
|
+
},
|
|
71
|
+
errorEvent: {
|
|
72
|
+
name: 'ErrorEvent',
|
|
73
|
+
title: '@system-insight:entities.error-event.title',
|
|
74
|
+
titlePlural: '@system-insight:entities.error-event.plural',
|
|
75
|
+
icon: 'fa-light fa-circle-exclamation',
|
|
76
|
+
},
|
|
77
|
+
slowRequest: {
|
|
78
|
+
name: 'SlowRequest',
|
|
79
|
+
title: '@system-insight:entities.slow-request.title',
|
|
80
|
+
titlePlural: '@system-insight:entities.slow-request.plural',
|
|
81
|
+
icon: 'fa-light fa-hourglass-half',
|
|
82
|
+
},
|
|
83
|
+
metricPoint: {
|
|
84
|
+
name: 'MetricPoint',
|
|
85
|
+
title: '@system-insight:entities.metric-point.title',
|
|
86
|
+
titlePlural: '@system-insight:entities.metric-point.plural',
|
|
87
|
+
icon: 'fa-light fa-chart-line',
|
|
88
|
+
},
|
|
89
|
+
savedView: {
|
|
90
|
+
name: 'SavedView',
|
|
91
|
+
title: '@system-insight:entities.saved-view.title',
|
|
92
|
+
titlePlural: '@system-insight:entities.saved-view.plural',
|
|
93
|
+
icon: 'fa-light fa-bookmark',
|
|
94
|
+
},
|
|
95
|
+
alertRule: {
|
|
96
|
+
name: 'AlertRule',
|
|
97
|
+
title: '@system-insight:entities.alert-rule.title',
|
|
98
|
+
titlePlural: '@system-insight:entities.alert-rule.plural',
|
|
99
|
+
icon: 'fa-light fa-bell',
|
|
100
|
+
},
|
|
101
|
+
observabilityDataSource: {
|
|
102
|
+
name: 'ObservabilityDataSource',
|
|
103
|
+
title: '@system-insight:entities.observability-data-source.title',
|
|
104
|
+
titlePlural: '@system-insight:entities.observability-data-source.plural',
|
|
105
|
+
icon: 'fa-light fa-database',
|
|
106
|
+
},
|
|
107
|
+
retentionPolicy: {
|
|
108
|
+
name: 'RetentionPolicy',
|
|
109
|
+
title: '@system-insight:entities.retention-policy.title',
|
|
110
|
+
titlePlural: '@system-insight:entities.retention-policy.plural',
|
|
111
|
+
icon: 'fa-light fa-calendar-clock',
|
|
112
|
+
},
|
|
113
|
+
dashboardWidgetConfig: {
|
|
114
|
+
name: 'DashboardWidgetConfig',
|
|
115
|
+
title: '@system-insight:entities.dashboard-widget-config.title',
|
|
116
|
+
titlePlural: '@system-insight:entities.dashboard-widget-config.plural',
|
|
117
|
+
icon: 'fa-light fa-grid-2',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
async function alertRuleEntityFactory() {
|
|
123
|
+
return {
|
|
124
|
+
module: RootConfig.module.name,
|
|
125
|
+
name: RootConfig.entities.alertRule.name,
|
|
126
|
+
title: RootConfig.entities.alertRule.title,
|
|
127
|
+
icon: RootConfig.entities.alertRule.icon,
|
|
128
|
+
formats: {
|
|
129
|
+
individual: RootConfig.entities.alertRule.title,
|
|
130
|
+
plural: RootConfig.entities.alertRule.titlePlural,
|
|
131
|
+
searchResult: { title: '{{ name }}', description: RootConfig.entities.alertRule.title },
|
|
132
|
+
},
|
|
133
|
+
groups: [{ id: 'general', title: '@system-insight:groups.general' }],
|
|
134
|
+
properties: [
|
|
135
|
+
{ name: 'name', title: '@system-insight:fields.name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },
|
|
136
|
+
{ name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },
|
|
137
|
+
{ name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },
|
|
138
|
+
{ name: 'threshold', title: '@system-insight:fields.threshold', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },
|
|
139
|
+
{ name: 'windowMinutes', title: '@system-insight:fields.window-minutes', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },
|
|
140
|
+
{ name: 'severity', title: '@system-insight:fields.severity', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },
|
|
141
|
+
{ name: 'lastTriggeredAt', title: '@system-insight:fields.last-triggered-at', groupId: 'general', schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox }, readonly: true } },
|
|
142
|
+
],
|
|
143
|
+
columns: [{ name: 'name' }, { name: 'enabled' }, { name: 'severity' }, { name: 'entityFullName' }],
|
|
144
|
+
commands: {
|
|
145
|
+
createFromFilter: { execute: AXMSystemInsightCommandKeys.AlertRule.CreateFromFilter },
|
|
146
|
+
},
|
|
147
|
+
interfaces: {
|
|
148
|
+
master: {
|
|
149
|
+
list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },
|
|
150
|
+
single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'severity' }], actions: [...entityMasterRecordActions()] },
|
|
151
|
+
create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },
|
|
152
|
+
update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Generated bundle index. Do not edit.
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
export { alertRuleEntityFactory };
|
|
163
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs.map
|
package/fesm2022/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entities-alert-rule.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/commands.keys.ts","../../../../libs/modules/system-insight/contracts/src/root-config.ts","../../../../libs/modules/system-insight/contracts/src/entities/alert-rule/alert-rule.entity.ts","../../../../libs/modules/system-insight/contracts/src/acorex-platform-module-system-insight-client-contracts-entities-alert-rule.ts"],"sourcesContent":["//#region ---- Command Keys ----\n\nexport const AXMSystemInsightCommandKeys = {\n LogEntry: {\n Export: 'SystemInsight:LogEntry:Export',\n Clear: 'SystemInsight:LogEntry:Clear',\n },\n AlertRule: {\n CreateFromFilter: 'SystemInsight:AlertRule:CreateFromFilter',\n },\n Notification: {\n SendAlert: 'SystemInsight:Notification:SendAlert',\n },\n Trace: {\n OpenTimeline: 'SystemInsight:Trace:OpenTimeline',\n },\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'system-insight',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'system-insight',\n module: 'system-insight',\n name: 'SystemInsight',\n title: '@system-insight:module.title',\n icon: 'fa-light fa-monitor-waveform',\n },\n entities: {\n auditLog: {\n name: 'AuditLog',\n title: '@system-insight:logs.entities.audit-log.title',\n titlePlural: '@system-insight:logs.entities.audit-log.plural',\n icon: 'fa-light fa-file-code',\n },\n logEntry: {\n name: 'LogEntry',\n title: '@system-insight:entities.log-entry.title',\n titlePlural: '@system-insight:entities.log-entry.plural',\n icon: 'fa-light fa-file-lines',\n },\n httpRequestLog: {\n name: 'HttpRequestLog',\n title: '@system-insight:entities.http-request-log.title',\n titlePlural: '@system-insight:entities.http-request-log.plural',\n icon: 'fa-light fa-globe',\n },\n jobExecutionLog: {\n name: 'JobExecutionLog',\n title: '@system-insight:entities.job-execution-log.title',\n titlePlural: '@system-insight:entities.job-execution-log.plural',\n icon: 'fa-light fa-clock',\n },\n traceEntry: {\n name: 'TraceEntry',\n title: '@system-insight:entities.trace-entry.title',\n titlePlural: '@system-insight:entities.trace-entry.plural',\n icon: 'fa-light fa-route',\n },\n traceSpan: {\n name: 'TraceSpan',\n title: '@system-insight:entities.trace-span.title',\n titlePlural: '@system-insight:entities.trace-span.plural',\n icon: 'fa-light fa-diagram-project',\n },\n errorEvent: {\n name: 'ErrorEvent',\n title: '@system-insight:entities.error-event.title',\n titlePlural: '@system-insight:entities.error-event.plural',\n icon: 'fa-light fa-circle-exclamation',\n },\n slowRequest: {\n name: 'SlowRequest',\n title: '@system-insight:entities.slow-request.title',\n titlePlural: '@system-insight:entities.slow-request.plural',\n icon: 'fa-light fa-hourglass-half',\n },\n metricPoint: {\n name: 'MetricPoint',\n title: '@system-insight:entities.metric-point.title',\n titlePlural: '@system-insight:entities.metric-point.plural',\n icon: 'fa-light fa-chart-line',\n },\n savedView: {\n name: 'SavedView',\n title: '@system-insight:entities.saved-view.title',\n titlePlural: '@system-insight:entities.saved-view.plural',\n icon: 'fa-light fa-bookmark',\n },\n alertRule: {\n name: 'AlertRule',\n title: '@system-insight:entities.alert-rule.title',\n titlePlural: '@system-insight:entities.alert-rule.plural',\n icon: 'fa-light fa-bell',\n },\n observabilityDataSource: {\n name: 'ObservabilityDataSource',\n title: '@system-insight:entities.observability-data-source.title',\n titlePlural: '@system-insight:entities.observability-data-source.plural',\n icon: 'fa-light fa-database',\n },\n retentionPolicy: {\n name: 'RetentionPolicy',\n title: '@system-insight:entities.retention-policy.title',\n titlePlural: '@system-insight:entities.retention-policy.plural',\n icon: 'fa-light fa-calendar-clock',\n },\n dashboardWidgetConfig: {\n name: 'DashboardWidgetConfig',\n title: '@system-insight:entities.dashboard-widget-config.title',\n titlePlural: '@system-insight:entities.dashboard-widget-config.plural',\n icon: 'fa-light fa-grid-2',\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\nexport async function alertRuleEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.alertRule.name,\n title: RootConfig.entities.alertRule.title,\n icon: RootConfig.entities.alertRule.icon,\n formats: {\n individual: RootConfig.entities.alertRule.title,\n plural: RootConfig.entities.alertRule.titlePlural,\n searchResult: { title: '{{ name }}', description: RootConfig.entities.alertRule.title },\n },\n groups: [{ id: 'general', title: '@system-insight:groups.general' }],\n properties: [\n { name: 'name', title: '@system-insight:fields.name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } }, validations: [{ rule: 'required' }] },\n { name: 'enabled', title: '@system-insight:fields.enabled', groupId: 'general', schema: { dataType: 'boolean', interface: { type: AXPWidgetsList.Editors.ToggleSwitch } } },\n { name: 'entityFullName', title: '@system-insight:fields.entity-full-name', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },\n { name: 'threshold', title: '@system-insight:fields.threshold', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },\n { name: 'windowMinutes', title: '@system-insight:fields.window-minutes', groupId: 'general', schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } } },\n { name: 'severity', title: '@system-insight:fields.severity', groupId: 'general', schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } } },\n { name: 'lastTriggeredAt', title: '@system-insight:fields.last-triggered-at', groupId: 'general', schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox }, readonly: true } },\n ],\n columns: [{ name: 'name' }, { name: 'enabled' }, { name: 'severity' }, { name: 'entityFullName' }],\n commands: {\n createFromFilter: { execute: AXMSystemInsightCommandKeys.AlertRule.CreateFromFilter },\n },\n interfaces: {\n master: {\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView()] },\n single: { title: '{{ name }}', sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'severity' }], actions: [...entityMasterRecordActions()] },\n create: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },\n update: { sections: [{ id: 'general' }], properties: [{ name: 'name' }, { name: 'enabled' }, { name: 'entityFullName' }, { name: 'threshold' }, { name: 'windowMinutes' }, { name: 'severity' }] },\n },\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.alert-rule';\n"],"names":[],"mappings":";;;AAAA;AAEO,MAAM,2BAA2B,GAAG;AACzC,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE,+BAA+B;AACvC,QAAA,KAAK,EAAE,8BAA8B;AACtC,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,gBAAgB,EAAE,0CAA0C;AAC7D,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,sCAAsC;AAClD,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,YAAY,E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