@acorex-platform/module-system-insight-client 0.0.32 → 0.0.33
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-local-entities.mjs +42 -0
- package/fesm2022/acorex-platform-module-system-insight-client-local-entities.mjs.map +1 -0
- 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
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { A as AXMSystemInsightCommandKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs';
|
|
4
|
+
import { A as AXMSystemInsightQueryKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs';
|
|
5
|
+
import { R as RootConfig } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs';
|
|
6
|
+
|
|
7
|
+
const listFieldOptions = {
|
|
8
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
9
|
+
sort: { enabled: true },
|
|
10
|
+
};
|
|
11
|
+
const readOnlyCrud = async () => {
|
|
12
|
+
throw new Error('Observability data is read-only');
|
|
13
|
+
};
|
|
14
|
+
async function httpRequestLogEntityFactory() {
|
|
15
|
+
const i18n = RootConfig.config.i18n;
|
|
16
|
+
const properties = [
|
|
17
|
+
{
|
|
18
|
+
name: 'id',
|
|
19
|
+
title: '@system-insight:fields.id',
|
|
20
|
+
groupId: 'general',
|
|
21
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
22
|
+
options: listFieldOptions,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'timestamp',
|
|
26
|
+
title: '@system-insight:fields.timestamp',
|
|
27
|
+
groupId: 'general',
|
|
28
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
|
|
29
|
+
options: listFieldOptions,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'level',
|
|
33
|
+
title: '@system-insight:fields.level',
|
|
34
|
+
groupId: 'general',
|
|
35
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
36
|
+
options: listFieldOptions,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'message',
|
|
40
|
+
title: '@system-insight:fields.message',
|
|
41
|
+
groupId: 'general',
|
|
42
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
43
|
+
options: listFieldOptions,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'requestId',
|
|
47
|
+
title: '@system-insight:fields.request-id',
|
|
48
|
+
groupId: 'general',
|
|
49
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
50
|
+
options: listFieldOptions,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'traceId',
|
|
54
|
+
title: '@system-insight:fields.trace-id',
|
|
55
|
+
groupId: 'general',
|
|
56
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
57
|
+
options: listFieldOptions,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'spanId',
|
|
61
|
+
title: '@system-insight:fields.span-id',
|
|
62
|
+
groupId: 'general',
|
|
63
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
64
|
+
options: listFieldOptions,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'userId',
|
|
68
|
+
title: '@system-insight:fields.user-id',
|
|
69
|
+
groupId: 'general',
|
|
70
|
+
schema: {
|
|
71
|
+
dataType: 'string',
|
|
72
|
+
nullable: true,
|
|
73
|
+
readonly: true,
|
|
74
|
+
interface: {
|
|
75
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
76
|
+
options: {
|
|
77
|
+
entity: 'SecurityManagement.User',
|
|
78
|
+
textField: 'displayName',
|
|
79
|
+
valueField: 'id',
|
|
80
|
+
look: 'select',
|
|
81
|
+
readonly: true,
|
|
82
|
+
disabled: true,
|
|
83
|
+
expose: [
|
|
84
|
+
{ source: 'id', target: 'user.id' },
|
|
85
|
+
{ source: 'displayName', target: 'user.displayName' },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: listFieldOptions,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'tenantId',
|
|
94
|
+
title: '@system-insight:fields.tenant-id',
|
|
95
|
+
groupId: 'general',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'string',
|
|
98
|
+
nullable: true,
|
|
99
|
+
readonly: true,
|
|
100
|
+
interface: {
|
|
101
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
102
|
+
options: {
|
|
103
|
+
entity: 'TenantManagement.Tenant',
|
|
104
|
+
textField: 'title',
|
|
105
|
+
valueField: 'id',
|
|
106
|
+
look: 'select',
|
|
107
|
+
readonly: true,
|
|
108
|
+
disabled: true,
|
|
109
|
+
expose: [
|
|
110
|
+
{ source: 'id', target: 'tenant.id' },
|
|
111
|
+
{ source: 'title', target: 'tenant.title' },
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
options: listFieldOptions,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'applicationId',
|
|
120
|
+
title: '@system-insight:fields.application-id',
|
|
121
|
+
groupId: 'general',
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'string',
|
|
124
|
+
nullable: true,
|
|
125
|
+
readonly: true,
|
|
126
|
+
interface: {
|
|
127
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
128
|
+
options: {
|
|
129
|
+
entity: 'ApplicationManagement.Application',
|
|
130
|
+
textField: 'title',
|
|
131
|
+
valueField: 'id',
|
|
132
|
+
look: 'select',
|
|
133
|
+
readonly: true,
|
|
134
|
+
disabled: true,
|
|
135
|
+
expose: [
|
|
136
|
+
{ source: 'id', target: 'application.id' },
|
|
137
|
+
{ source: 'title', target: 'application.title' },
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
options: listFieldOptions,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'serviceName',
|
|
146
|
+
title: '@system-insight:fields.service-name',
|
|
147
|
+
groupId: 'general',
|
|
148
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
149
|
+
options: listFieldOptions,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'module',
|
|
153
|
+
title: '@system-insight:fields.module',
|
|
154
|
+
groupId: 'general',
|
|
155
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
156
|
+
options: listFieldOptions,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'entity',
|
|
160
|
+
title: '@system-insight:fields.entity',
|
|
161
|
+
groupId: 'general',
|
|
162
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
163
|
+
options: listFieldOptions,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'operation',
|
|
167
|
+
title: '@system-insight:fields.operation',
|
|
168
|
+
groupId: 'general',
|
|
169
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
170
|
+
options: listFieldOptions,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'method',
|
|
174
|
+
title: '@system-insight:fields.method',
|
|
175
|
+
groupId: 'general',
|
|
176
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
177
|
+
options: listFieldOptions,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'url',
|
|
181
|
+
title: '@system-insight:fields.url',
|
|
182
|
+
groupId: 'general',
|
|
183
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
184
|
+
options: listFieldOptions,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'statusCode',
|
|
188
|
+
title: '@system-insight:fields.status-code',
|
|
189
|
+
groupId: 'general',
|
|
190
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
191
|
+
options: listFieldOptions,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'duration',
|
|
195
|
+
title: '@system-insight:fields.duration',
|
|
196
|
+
groupId: 'general',
|
|
197
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
198
|
+
options: listFieldOptions,
|
|
199
|
+
},
|
|
200
|
+
];
|
|
201
|
+
return {
|
|
202
|
+
module: RootConfig.module.name,
|
|
203
|
+
name: RootConfig.entities.httpRequestLog.name,
|
|
204
|
+
title: RootConfig.entities.httpRequestLog.title,
|
|
205
|
+
icon: RootConfig.entities.httpRequestLog.icon,
|
|
206
|
+
formats: {
|
|
207
|
+
individual: RootConfig.entities.httpRequestLog.title,
|
|
208
|
+
plural: RootConfig.entities.httpRequestLog.titlePlural,
|
|
209
|
+
searchResult: {
|
|
210
|
+
title: '{{ method }} {{ url }}',
|
|
211
|
+
description: RootConfig.entities.httpRequestLog.title,
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
215
|
+
properties,
|
|
216
|
+
columns: [
|
|
217
|
+
{ name: 'timestamp' },
|
|
218
|
+
{ name: 'method' },
|
|
219
|
+
{ name: 'url' },
|
|
220
|
+
{ name: 'statusCode' },
|
|
221
|
+
{ name: 'duration' },
|
|
222
|
+
{ name: 'serviceName' },
|
|
223
|
+
],
|
|
224
|
+
queries: {
|
|
225
|
+
list: { execute: AXMSystemInsightQueryKeys.HttpRequestLog.List, type: AXPEntityQueryType.List },
|
|
226
|
+
byKey: { execute: AXMSystemInsightQueryKeys.HttpRequestLog.GetOne, type: AXPEntityQueryType.Single },
|
|
227
|
+
},
|
|
228
|
+
commands: {
|
|
229
|
+
create: { execute: readOnlyCrud },
|
|
230
|
+
update: { execute: readOnlyCrud },
|
|
231
|
+
delete: { execute: readOnlyCrud },
|
|
232
|
+
},
|
|
233
|
+
interfaces: {
|
|
234
|
+
master: {
|
|
235
|
+
list: {
|
|
236
|
+
actions: [
|
|
237
|
+
{
|
|
238
|
+
title: '@general:actions.detail.title',
|
|
239
|
+
icon: 'fa-light fa-eye',
|
|
240
|
+
command: 'Entity:View',
|
|
241
|
+
priority: 'primary',
|
|
242
|
+
type: 'view',
|
|
243
|
+
scope: AXPEntityCommandScope.Individual,
|
|
244
|
+
default: true,
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
views: [
|
|
248
|
+
createAllQueryView({
|
|
249
|
+
sorts: [{ name: 'timestamp', dir: 'desc' }],
|
|
250
|
+
}),
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
single: {
|
|
254
|
+
title: '{{ method }} {{ url }}',
|
|
255
|
+
sections: [{ id: 'general' }],
|
|
256
|
+
properties: properties.map((property) => ({
|
|
257
|
+
name: property.name,
|
|
258
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
259
|
+
})),
|
|
260
|
+
actions: [
|
|
261
|
+
{
|
|
262
|
+
title: `@${i18n}:actions.view-trace.title`,
|
|
263
|
+
command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
|
|
264
|
+
priority: 'secondary',
|
|
265
|
+
type: 'view',
|
|
266
|
+
scope: AXPEntityCommandScope.Individual,
|
|
267
|
+
hidden: `{{ !context.eval("traceId") }}`,
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export { httpRequestLogEntityFactory };
|
|
277
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-http-request-log.entity-DuUG39be.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/http-request-log/http-request-log.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { AXMSystemInsightQueryKeys } from '../../queries.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst readOnlyCrud = async () => {\n throw new Error('Observability data is read-only');\n};\n\nexport async function httpRequestLogEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\n {\n name: 'id',\n title: '@system-insight:fields.id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'timestamp',\n title: '@system-insight:fields.timestamp',\n groupId: 'general',\n schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },\n options: listFieldOptions,\n },\n {\n name: 'level',\n title: '@system-insight:fields.level',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'message',\n title: '@system-insight:fields.message',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'requestId',\n title: '@system-insight:fields.request-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'traceId',\n title: '@system-insight:fields.trace-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'spanId',\n title: '@system-insight:fields.span-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'userId',\n title: '@system-insight:fields.user-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'user.id' },\n { source: 'displayName', target: 'user.displayName' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'applicationId',\n title: '@system-insight:fields.application-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'ApplicationManagement.Application',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'application.id' },\n { source: 'title', target: 'application.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'serviceName',\n title: '@system-insight:fields.service-name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'module',\n title: '@system-insight:fields.module',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'entity',\n title: '@system-insight:fields.entity',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'operation',\n title: '@system-insight:fields.operation',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'method',\n title: '@system-insight:fields.method',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'url',\n title: '@system-insight:fields.url',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'statusCode',\n title: '@system-insight:fields.status-code',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'duration',\n title: '@system-insight:fields.duration',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.httpRequestLog.name,\n title: RootConfig.entities.httpRequestLog.title,\n icon: RootConfig.entities.httpRequestLog.icon,\n formats: {\n individual: RootConfig.entities.httpRequestLog.title,\n plural: RootConfig.entities.httpRequestLog.titlePlural,\n searchResult: {\n title: '{{ method }} {{ url }}',\n description: RootConfig.entities.httpRequestLog.title,\n },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n properties,\n columns: [\n { name: 'timestamp' },\n { name: 'method' },\n { name: 'url' },\n { name: 'statusCode' },\n { name: 'duration' },\n { name: 'serviceName' },\n ],\n queries: {\n list: { execute: AXMSystemInsightQueryKeys.HttpRequestLog.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMSystemInsightQueryKeys.HttpRequestLog.GetOne, type: AXPEntityQueryType.Single },\n },\n commands: {\n create: { execute: readOnlyCrud },\n update: { execute: readOnlyCrud },\n delete: { execute: readOnlyCrud },\n },\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.detail.title',\n icon: 'fa-light fa-eye',\n command: 'Entity:View',\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'timestamp', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ method }} {{ url }}',\n sections: [{ id: 'general' }],\n properties: properties.map((property) => ({\n name: property.name,\n layout: { positions: { lg: { colSpan: 6 } } },\n })),\n actions: [\n {\n title: `@${i18n}:actions.view-trace.title`,\n command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n hidden: `{{ !context.eval(\"traceId\") }}`,\n },\n ],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,gBAAgB,GAA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AA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;AACD,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;yBAC5C,CAAC;AACH,qBAAA;AACF,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,wBAAwB;AAC/B,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;oBAC7B,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,MAAM;wBACxC,IAAI,EAAE,QAAQ,CAAC,IAAI;AACnB,wBAAA,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE;AAC9C,qBAAA,CAAC,CAAC;AACH,oBAAA,OAAO,EAAE;AACP,wBAAA;4BACE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,yBAAA,CAA2B;AAC1C,4BAAA,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,YAAY;AACvD,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,MAAM,EAAE,CAAA,8BAAA,CAAgC;AACzC,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;;;;"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { A as AXMSystemInsightCommandKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-commands.keys-yv865ABJ.mjs';
|
|
4
|
+
import { A as AXMSystemInsightQueryKeys } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-queries.keys-C768fZe1.mjs';
|
|
5
|
+
import { R as RootConfig } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-acorex-platform-module-system-insight-client-contracts-entity-catalog-L_KQ_ZRS.mjs';
|
|
6
|
+
|
|
7
|
+
const listFieldOptions = {
|
|
8
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
9
|
+
sort: { enabled: true },
|
|
10
|
+
};
|
|
11
|
+
const readOnlyCrud = async () => {
|
|
12
|
+
throw new Error('Observability data is read-only');
|
|
13
|
+
};
|
|
14
|
+
async function jobExecutionLogEntityFactory() {
|
|
15
|
+
const i18n = RootConfig.config.i18n;
|
|
16
|
+
const properties = [
|
|
17
|
+
{
|
|
18
|
+
name: 'id',
|
|
19
|
+
title: '@system-insight:fields.id',
|
|
20
|
+
groupId: 'general',
|
|
21
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
22
|
+
options: listFieldOptions,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'timestamp',
|
|
26
|
+
title: '@system-insight:fields.timestamp',
|
|
27
|
+
groupId: 'general',
|
|
28
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
|
|
29
|
+
options: listFieldOptions,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'level',
|
|
33
|
+
title: '@system-insight:fields.level',
|
|
34
|
+
groupId: 'general',
|
|
35
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
36
|
+
options: listFieldOptions,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'message',
|
|
40
|
+
title: '@system-insight:fields.message',
|
|
41
|
+
groupId: 'general',
|
|
42
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
43
|
+
options: listFieldOptions,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'requestId',
|
|
47
|
+
title: '@system-insight:fields.request-id',
|
|
48
|
+
groupId: 'general',
|
|
49
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
50
|
+
options: listFieldOptions,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'traceId',
|
|
54
|
+
title: '@system-insight:fields.trace-id',
|
|
55
|
+
groupId: 'general',
|
|
56
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
57
|
+
options: listFieldOptions,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'spanId',
|
|
61
|
+
title: '@system-insight:fields.span-id',
|
|
62
|
+
groupId: 'general',
|
|
63
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
64
|
+
options: listFieldOptions,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'userId',
|
|
68
|
+
title: '@system-insight:fields.user-id',
|
|
69
|
+
groupId: 'general',
|
|
70
|
+
schema: {
|
|
71
|
+
dataType: 'string',
|
|
72
|
+
nullable: true,
|
|
73
|
+
readonly: true,
|
|
74
|
+
interface: {
|
|
75
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
76
|
+
options: {
|
|
77
|
+
entity: 'SecurityManagement.User',
|
|
78
|
+
textField: 'displayName',
|
|
79
|
+
valueField: 'id',
|
|
80
|
+
look: 'select',
|
|
81
|
+
readonly: true,
|
|
82
|
+
disabled: true,
|
|
83
|
+
expose: [
|
|
84
|
+
{ source: 'id', target: 'user.id' },
|
|
85
|
+
{ source: 'displayName', target: 'user.displayName' },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: listFieldOptions,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'tenantId',
|
|
94
|
+
title: '@system-insight:fields.tenant-id',
|
|
95
|
+
groupId: 'general',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'string',
|
|
98
|
+
nullable: true,
|
|
99
|
+
readonly: true,
|
|
100
|
+
interface: {
|
|
101
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
102
|
+
options: {
|
|
103
|
+
entity: 'TenantManagement.Tenant',
|
|
104
|
+
textField: 'title',
|
|
105
|
+
valueField: 'id',
|
|
106
|
+
look: 'select',
|
|
107
|
+
readonly: true,
|
|
108
|
+
disabled: true,
|
|
109
|
+
expose: [
|
|
110
|
+
{ source: 'id', target: 'tenant.id' },
|
|
111
|
+
{ source: 'title', target: 'tenant.title' },
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
options: listFieldOptions,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'applicationId',
|
|
120
|
+
title: '@system-insight:fields.application-id',
|
|
121
|
+
groupId: 'general',
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'string',
|
|
124
|
+
nullable: true,
|
|
125
|
+
readonly: true,
|
|
126
|
+
interface: {
|
|
127
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
128
|
+
options: {
|
|
129
|
+
entity: 'ApplicationManagement.Application',
|
|
130
|
+
textField: 'title',
|
|
131
|
+
valueField: 'id',
|
|
132
|
+
look: 'select',
|
|
133
|
+
readonly: true,
|
|
134
|
+
disabled: true,
|
|
135
|
+
expose: [
|
|
136
|
+
{ source: 'id', target: 'application.id' },
|
|
137
|
+
{ source: 'title', target: 'application.title' },
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
options: listFieldOptions,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'serviceName',
|
|
146
|
+
title: '@system-insight:fields.service-name',
|
|
147
|
+
groupId: 'general',
|
|
148
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
149
|
+
options: listFieldOptions,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'module',
|
|
153
|
+
title: '@system-insight:fields.module',
|
|
154
|
+
groupId: 'general',
|
|
155
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
156
|
+
options: listFieldOptions,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'entity',
|
|
160
|
+
title: '@system-insight:fields.entity',
|
|
161
|
+
groupId: 'general',
|
|
162
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
163
|
+
options: listFieldOptions,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'operation',
|
|
167
|
+
title: '@system-insight:fields.operation',
|
|
168
|
+
groupId: 'general',
|
|
169
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
170
|
+
options: listFieldOptions,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'jobId',
|
|
174
|
+
title: '@system-insight:fields.job-id',
|
|
175
|
+
groupId: 'general',
|
|
176
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
177
|
+
options: listFieldOptions,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'jobName',
|
|
181
|
+
title: '@system-insight:fields.job-name',
|
|
182
|
+
groupId: 'general',
|
|
183
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
184
|
+
options: listFieldOptions,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'status',
|
|
188
|
+
title: '@system-insight:fields.status',
|
|
189
|
+
groupId: 'general',
|
|
190
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
191
|
+
options: listFieldOptions,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'duration',
|
|
195
|
+
title: '@system-insight:fields.duration',
|
|
196
|
+
groupId: 'general',
|
|
197
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
198
|
+
options: listFieldOptions,
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'error',
|
|
202
|
+
title: '@system-insight:fields.error',
|
|
203
|
+
groupId: 'general',
|
|
204
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
205
|
+
options: listFieldOptions,
|
|
206
|
+
},
|
|
207
|
+
];
|
|
208
|
+
return {
|
|
209
|
+
module: RootConfig.module.name,
|
|
210
|
+
name: RootConfig.entities.jobExecutionLog.name,
|
|
211
|
+
title: RootConfig.entities.jobExecutionLog.title,
|
|
212
|
+
icon: RootConfig.entities.jobExecutionLog.icon,
|
|
213
|
+
formats: {
|
|
214
|
+
individual: RootConfig.entities.jobExecutionLog.title,
|
|
215
|
+
plural: RootConfig.entities.jobExecutionLog.titlePlural,
|
|
216
|
+
searchResult: {
|
|
217
|
+
title: '{{ jobName }}',
|
|
218
|
+
description: RootConfig.entities.jobExecutionLog.title,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
222
|
+
properties,
|
|
223
|
+
columns: [
|
|
224
|
+
{ name: 'timestamp' },
|
|
225
|
+
{ name: 'jobName' },
|
|
226
|
+
{ name: 'status' },
|
|
227
|
+
{ name: 'duration' },
|
|
228
|
+
{ name: 'serviceName' },
|
|
229
|
+
],
|
|
230
|
+
queries: {
|
|
231
|
+
list: { execute: AXMSystemInsightQueryKeys.JobExecutionLog.List, type: AXPEntityQueryType.List },
|
|
232
|
+
byKey: { execute: AXMSystemInsightQueryKeys.JobExecutionLog.GetOne, type: AXPEntityQueryType.Single },
|
|
233
|
+
},
|
|
234
|
+
commands: {
|
|
235
|
+
create: { execute: readOnlyCrud },
|
|
236
|
+
update: { execute: readOnlyCrud },
|
|
237
|
+
delete: { execute: readOnlyCrud },
|
|
238
|
+
},
|
|
239
|
+
interfaces: {
|
|
240
|
+
master: {
|
|
241
|
+
list: {
|
|
242
|
+
actions: [
|
|
243
|
+
{
|
|
244
|
+
title: '@general:actions.detail.title',
|
|
245
|
+
icon: 'fa-light fa-eye',
|
|
246
|
+
command: 'Entity:View',
|
|
247
|
+
priority: 'primary',
|
|
248
|
+
type: 'view',
|
|
249
|
+
scope: AXPEntityCommandScope.Individual,
|
|
250
|
+
default: true,
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
views: [
|
|
254
|
+
createAllQueryView({
|
|
255
|
+
sorts: [{ name: 'timestamp', dir: 'desc' }],
|
|
256
|
+
}),
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
single: {
|
|
260
|
+
title: '{{ jobName }}',
|
|
261
|
+
sections: [{ id: 'general' }],
|
|
262
|
+
properties: properties.map((property) => ({
|
|
263
|
+
name: property.name,
|
|
264
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
265
|
+
})),
|
|
266
|
+
actions: [
|
|
267
|
+
{
|
|
268
|
+
title: `@${i18n}:actions.view-trace.title`,
|
|
269
|
+
command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
|
|
270
|
+
priority: 'secondary',
|
|
271
|
+
type: 'view',
|
|
272
|
+
scope: AXPEntityCommandScope.Individual,
|
|
273
|
+
hidden: `{{ !context.eval("traceId") }}`,
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export { jobExecutionLogEntityFactory };
|
|
283
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-job-execution-log.entity-DjScVny4.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/job-execution-log/job-execution-log.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { AXMSystemInsightQueryKeys } from '../../queries.keys';\nimport { RootConfig } from '../../root-config';\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst readOnlyCrud = async () => {\n throw new Error('Observability data is read-only');\n};\n\nexport async function jobExecutionLogEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\n {\n name: 'id',\n title: '@system-insight:fields.id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'timestamp',\n title: '@system-insight:fields.timestamp',\n groupId: 'general',\n schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },\n options: listFieldOptions,\n },\n {\n name: 'level',\n title: '@system-insight:fields.level',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'message',\n title: '@system-insight:fields.message',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'requestId',\n title: '@system-insight:fields.request-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'traceId',\n title: '@system-insight:fields.trace-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'spanId',\n title: '@system-insight:fields.span-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'userId',\n title: '@system-insight:fields.user-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.User',\n textField: 'displayName',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'user.id' },\n { source: 'displayName', target: 'user.displayName' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'TenantManagement.Tenant',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'tenant.id' },\n { source: 'title', target: 'tenant.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'applicationId',\n title: '@system-insight:fields.application-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'ApplicationManagement.Application',\n textField: 'title',\n valueField: 'id',\n look: 'select',\n readonly: true,\n disabled: true,\n expose: [\n { source: 'id', target: 'application.id' },\n { source: 'title', target: 'application.title' },\n ],\n },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'serviceName',\n title: '@system-insight:fields.service-name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'module',\n title: '@system-insight:fields.module',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'entity',\n title: '@system-insight:fields.entity',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'operation',\n title: '@system-insight:fields.operation',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'jobId',\n title: '@system-insight:fields.job-id',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'jobName',\n title: '@system-insight:fields.job-name',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'status',\n title: '@system-insight:fields.status',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n {\n name: 'duration',\n title: '@system-insight:fields.duration',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\n options: listFieldOptions,\n },\n {\n name: 'error',\n title: '@system-insight:fields.error',\n groupId: 'general',\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: listFieldOptions,\n },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.jobExecutionLog.name,\n title: RootConfig.entities.jobExecutionLog.title,\n icon: RootConfig.entities.jobExecutionLog.icon,\n formats: {\n individual: RootConfig.entities.jobExecutionLog.title,\n plural: RootConfig.entities.jobExecutionLog.titlePlural,\n searchResult: {\n title: '{{ jobName }}',\n description: RootConfig.entities.jobExecutionLog.title,\n },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n properties,\n columns: [\n { name: 'timestamp' },\n { name: 'jobName' },\n { name: 'status' },\n { name: 'duration' },\n { name: 'serviceName' },\n ],\n queries: {\n list: { execute: AXMSystemInsightQueryKeys.JobExecutionLog.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMSystemInsightQueryKeys.JobExecutionLog.GetOne, type: AXPEntityQueryType.Single },\n },\n commands: {\n create: { execute: readOnlyCrud },\n update: { execute: readOnlyCrud },\n delete: { execute: readOnlyCrud },\n },\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.detail.title',\n icon: 'fa-light fa-eye',\n command: 'Entity:View',\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'timestamp', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ jobName }}',\n sections: [{ id: 'general' }],\n properties: properties.map((property) => ({\n name: property.name,\n layout: { positions: { lg: { colSpan: 6 } } },\n })),\n actions: [\n {\n title: `@${i18n}:actions.view-trace.title`,\n command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n hidden: `{{ !context.eval(\"traceId\") }}`,\n },\n ],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;;;AAWA,MAAM,gBAAgB,GAAG;AACvB,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AACjE,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CACxB;AAED,MAAM,YAAY,GAAG,YAAW;AAC9B,IAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC;AACpD,CAAC;AAEM,eAAe,4BAA4B,GAAA;AAChD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,UAAU,GAA4B;AAC1C,QAAA;AACE,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,2BAA2B;AAClC,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,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