@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
|
@@ -0,0 +1,150 @@
|
|
|
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 slowRequestEntityFactory() {
|
|
15
|
+
const i18n = RootConfig.config.i18n;
|
|
16
|
+
const properties = [
|
|
17
|
+
{
|
|
18
|
+
name: 'timestamp',
|
|
19
|
+
title: '@system-insight:fields.timestamp',
|
|
20
|
+
groupId: 'general',
|
|
21
|
+
schema: { dataType: 'date', interface: { type: AXPWidgetsList.Editors.DateTimeBox } },
|
|
22
|
+
options: listFieldOptions,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'method',
|
|
26
|
+
title: '@system-insight:fields.method',
|
|
27
|
+
groupId: 'general',
|
|
28
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
29
|
+
options: listFieldOptions,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'url',
|
|
33
|
+
title: '@system-insight:fields.url',
|
|
34
|
+
groupId: 'general',
|
|
35
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
36
|
+
options: listFieldOptions,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'duration',
|
|
40
|
+
title: '@system-insight:fields.duration',
|
|
41
|
+
groupId: 'general',
|
|
42
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
43
|
+
options: listFieldOptions,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'thresholdMs',
|
|
47
|
+
title: '@system-insight:fields.threshold-ms',
|
|
48
|
+
groupId: 'general',
|
|
49
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
50
|
+
options: listFieldOptions,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'statusCode',
|
|
54
|
+
title: '@system-insight:fields.status-code',
|
|
55
|
+
groupId: 'general',
|
|
56
|
+
schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },
|
|
57
|
+
options: listFieldOptions,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'serviceName',
|
|
61
|
+
title: '@system-insight:fields.service-name',
|
|
62
|
+
groupId: 'general',
|
|
63
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
64
|
+
options: listFieldOptions,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'traceId',
|
|
68
|
+
title: '@system-insight:fields.trace-id',
|
|
69
|
+
groupId: 'general',
|
|
70
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
71
|
+
options: listFieldOptions,
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
return {
|
|
75
|
+
module: RootConfig.module.name,
|
|
76
|
+
name: RootConfig.entities.slowRequest.name,
|
|
77
|
+
title: RootConfig.entities.slowRequest.title,
|
|
78
|
+
icon: RootConfig.entities.slowRequest.icon,
|
|
79
|
+
formats: {
|
|
80
|
+
individual: RootConfig.entities.slowRequest.title,
|
|
81
|
+
plural: RootConfig.entities.slowRequest.titlePlural,
|
|
82
|
+
searchResult: {
|
|
83
|
+
title: '{{ method }} {{ url }}',
|
|
84
|
+
description: RootConfig.entities.slowRequest.title,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
88
|
+
properties,
|
|
89
|
+
columns: [
|
|
90
|
+
{ name: 'timestamp' },
|
|
91
|
+
{ name: 'method' },
|
|
92
|
+
{ name: 'url' },
|
|
93
|
+
{ name: 'duration' },
|
|
94
|
+
{ name: 'statusCode' },
|
|
95
|
+
{ name: 'serviceName' },
|
|
96
|
+
],
|
|
97
|
+
queries: {
|
|
98
|
+
list: { execute: AXMSystemInsightQueryKeys.SlowRequest.List, type: AXPEntityQueryType.List },
|
|
99
|
+
byKey: { execute: AXMSystemInsightQueryKeys.SlowRequest.GetOne, type: AXPEntityQueryType.Single },
|
|
100
|
+
},
|
|
101
|
+
commands: {
|
|
102
|
+
create: { execute: readOnlyCrud },
|
|
103
|
+
update: { execute: readOnlyCrud },
|
|
104
|
+
delete: { execute: readOnlyCrud },
|
|
105
|
+
},
|
|
106
|
+
interfaces: {
|
|
107
|
+
master: {
|
|
108
|
+
list: {
|
|
109
|
+
actions: [
|
|
110
|
+
{
|
|
111
|
+
title: '@general:actions.detail.title',
|
|
112
|
+
icon: 'fa-light fa-eye',
|
|
113
|
+
command: 'Entity:View',
|
|
114
|
+
priority: 'primary',
|
|
115
|
+
type: 'view',
|
|
116
|
+
scope: AXPEntityCommandScope.Individual,
|
|
117
|
+
default: true,
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
views: [
|
|
121
|
+
createAllQueryView({
|
|
122
|
+
sorts: [{ name: 'timestamp', dir: 'desc' }],
|
|
123
|
+
}),
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
single: {
|
|
127
|
+
title: '{{ method }} {{ url }}',
|
|
128
|
+
sections: [{ id: 'general' }],
|
|
129
|
+
properties: properties.map((property) => ({
|
|
130
|
+
name: property.name,
|
|
131
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
132
|
+
})),
|
|
133
|
+
actions: [
|
|
134
|
+
{
|
|
135
|
+
title: `@${i18n}:actions.view-trace.title`,
|
|
136
|
+
command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
|
|
137
|
+
priority: 'secondary',
|
|
138
|
+
type: 'view',
|
|
139
|
+
scope: AXPEntityCommandScope.Individual,
|
|
140
|
+
hidden: `{{ !context.eval("traceId") }}`,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { slowRequestEntityFactory };
|
|
150
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-slow-request.entity-CdQongZo.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/entities/slow-request/slow-request.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 slowRequestEntityFactory(): Promise<AXPEntity> {\n const i18n = RootConfig.config.i18n;\n\n const properties: AXPEntity['properties'] = [\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: '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: '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: 'thresholdMs',\n title: '@system-insight:fields.threshold-ms',\n groupId: 'general',\n schema: { dataType: 'number', interface: { type: AXPWidgetsList.Editors.NumberBox } },\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: '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: '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\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.slowRequest.name,\n title: RootConfig.entities.slowRequest.title,\n icon: RootConfig.entities.slowRequest.icon,\n formats: {\n individual: RootConfig.entities.slowRequest.title,\n plural: RootConfig.entities.slowRequest.titlePlural,\n searchResult: {\n title: '{{ method }} {{ url }}',\n description: RootConfig.entities.slowRequest.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: 'duration' },\n { name: 'statusCode' },\n { name: 'serviceName' },\n ],\n queries: {\n list: { execute: AXMSystemInsightQueryKeys.SlowRequest.List, type: AXPEntityQueryType.List },\n byKey: { execute: AXMSystemInsightQueryKeys.SlowRequest.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,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,wBAAwB,GAAA;AAC5C,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,UAAU,GAA4B;AAC1C,QAAA;AACE,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,kCAAkC;AACzC,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE;AACrF,YAAA,OAAO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E,qBAAqB,CAAC,UAAU;AACvC,4BAAA,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,342 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, AXPEntityQueryType, createAllQueryView, createQueryView } 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 { A as AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS, a as AXPSystemInsightSettings } from './acorex-platform-module-system-insight-client-contracts-entity-catalog-settings.keys-CI-iHRBX.mjs';
|
|
6
|
+
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';
|
|
7
|
+
|
|
8
|
+
/** Registry key for Trace Timeline custom entity page (tab on TraceEntry). */
|
|
9
|
+
const TRACE_TIMELINE_PAGE_COMPONENT_KEY = 'trace-timeline-page';
|
|
10
|
+
/** Registry key for Trace Flow chart custom entity page (tab on TraceEntry). */
|
|
11
|
+
const TRACE_FLOW_PAGE_COMPONENT_KEY = 'trace-flow-page';
|
|
12
|
+
|
|
13
|
+
const slowRequestThresholdMs = AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS[AXPSystemInsightSettings.SlowRequestThresholdMs];
|
|
14
|
+
const listFieldOptions = {
|
|
15
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
16
|
+
sort: { enabled: true },
|
|
17
|
+
};
|
|
18
|
+
const booleanFieldOptions = {
|
|
19
|
+
filter: { inline: { enabled: false }, advance: { enabled: true } },
|
|
20
|
+
sort: { enabled: true },
|
|
21
|
+
};
|
|
22
|
+
const readOnlyField = {
|
|
23
|
+
readonly: true,
|
|
24
|
+
nullable: true,
|
|
25
|
+
};
|
|
26
|
+
const readOnlyCrud = async () => {
|
|
27
|
+
throw new Error('Observability data is read-only');
|
|
28
|
+
};
|
|
29
|
+
const col = (name, colSpan = 6) => ({
|
|
30
|
+
name,
|
|
31
|
+
layout: { positions: { lg: { colSpan } } },
|
|
32
|
+
});
|
|
33
|
+
async function traceEntryEntityFactory() {
|
|
34
|
+
const i18n = RootConfig.config.i18n;
|
|
35
|
+
const properties = [
|
|
36
|
+
{
|
|
37
|
+
name: 'id',
|
|
38
|
+
title: '@system-insight:fields.id',
|
|
39
|
+
groupId: 'general',
|
|
40
|
+
schema: {
|
|
41
|
+
dataType: 'string',
|
|
42
|
+
...readOnlyField,
|
|
43
|
+
visible: false,
|
|
44
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
45
|
+
},
|
|
46
|
+
options: { filter: { inline: { enabled: false }, advance: { enabled: true } }, sort: { enabled: true } },
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'traceId',
|
|
50
|
+
title: '@system-insight:fields.trace-id',
|
|
51
|
+
groupId: 'general',
|
|
52
|
+
schema: {
|
|
53
|
+
dataType: 'string',
|
|
54
|
+
...readOnlyField,
|
|
55
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
56
|
+
},
|
|
57
|
+
options: listFieldOptions,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'kind',
|
|
61
|
+
title: '@system-insight:fields.kind',
|
|
62
|
+
groupId: 'general',
|
|
63
|
+
schema: {
|
|
64
|
+
dataType: 'string',
|
|
65
|
+
...readOnlyField,
|
|
66
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
67
|
+
},
|
|
68
|
+
options: listFieldOptions,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'operation',
|
|
72
|
+
title: '@system-insight:fields.operation',
|
|
73
|
+
groupId: 'general',
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
...readOnlyField,
|
|
77
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
78
|
+
},
|
|
79
|
+
options: listFieldOptions,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'rootServiceName',
|
|
83
|
+
title: '@system-insight:fields.service-name',
|
|
84
|
+
groupId: 'general',
|
|
85
|
+
schema: {
|
|
86
|
+
dataType: 'string',
|
|
87
|
+
...readOnlyField,
|
|
88
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
89
|
+
},
|
|
90
|
+
options: listFieldOptions,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'module',
|
|
94
|
+
title: '@system-insight:fields.module',
|
|
95
|
+
groupId: 'general',
|
|
96
|
+
schema: {
|
|
97
|
+
dataType: 'string',
|
|
98
|
+
...readOnlyField,
|
|
99
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
100
|
+
},
|
|
101
|
+
options: listFieldOptions,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'entityName',
|
|
105
|
+
title: '@system-insight:fields.entity',
|
|
106
|
+
groupId: 'general',
|
|
107
|
+
schema: {
|
|
108
|
+
dataType: 'string',
|
|
109
|
+
...readOnlyField,
|
|
110
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
111
|
+
},
|
|
112
|
+
options: listFieldOptions,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'startTime',
|
|
116
|
+
title: '@system-insight:fields.start-time',
|
|
117
|
+
groupId: 'general',
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'datetime',
|
|
120
|
+
...readOnlyField,
|
|
121
|
+
interface: {
|
|
122
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
123
|
+
options: { type: 'datetime', readonly: true, disabled: true },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
options: listFieldOptions,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'duration',
|
|
130
|
+
title: '@system-insight:fields.duration',
|
|
131
|
+
groupId: 'general',
|
|
132
|
+
schema: {
|
|
133
|
+
dataType: 'number',
|
|
134
|
+
...readOnlyField,
|
|
135
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox, options: { readonly: true, disabled: true } },
|
|
136
|
+
},
|
|
137
|
+
options: listFieldOptions,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'spanCount',
|
|
141
|
+
title: '@system-insight:fields.span-count',
|
|
142
|
+
groupId: 'general',
|
|
143
|
+
schema: {
|
|
144
|
+
dataType: 'number',
|
|
145
|
+
...readOnlyField,
|
|
146
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox, options: { readonly: true, disabled: true } },
|
|
147
|
+
},
|
|
148
|
+
options: listFieldOptions,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'status',
|
|
152
|
+
title: '@system-insight:fields.status',
|
|
153
|
+
groupId: 'general',
|
|
154
|
+
schema: {
|
|
155
|
+
dataType: 'string',
|
|
156
|
+
...readOnlyField,
|
|
157
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
158
|
+
},
|
|
159
|
+
options: listFieldOptions,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'hasError',
|
|
163
|
+
title: '@system-insight:fields.has-error',
|
|
164
|
+
groupId: 'general',
|
|
165
|
+
schema: {
|
|
166
|
+
dataType: 'boolean',
|
|
167
|
+
...readOnlyField,
|
|
168
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch, options: { readonly: true, disabled: true } },
|
|
169
|
+
},
|
|
170
|
+
options: booleanFieldOptions,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'tenantId',
|
|
174
|
+
title: '@system-insight:fields.tenant-id',
|
|
175
|
+
groupId: 'general',
|
|
176
|
+
schema: {
|
|
177
|
+
dataType: 'string',
|
|
178
|
+
...readOnlyField,
|
|
179
|
+
interface: {
|
|
180
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
181
|
+
options: {
|
|
182
|
+
entity: 'TenantManagement.Tenant',
|
|
183
|
+
textField: 'title',
|
|
184
|
+
valueField: 'id',
|
|
185
|
+
look: 'select',
|
|
186
|
+
readonly: true,
|
|
187
|
+
disabled: true,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
options: listFieldOptions,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'applicationId',
|
|
195
|
+
title: '@system-insight:fields.application-id',
|
|
196
|
+
groupId: 'general',
|
|
197
|
+
schema: {
|
|
198
|
+
dataType: 'string',
|
|
199
|
+
...readOnlyField,
|
|
200
|
+
visible: false,
|
|
201
|
+
interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },
|
|
202
|
+
},
|
|
203
|
+
options: { filter: { inline: { enabled: false }, advance: { enabled: true } }, sort: { enabled: true } },
|
|
204
|
+
},
|
|
205
|
+
];
|
|
206
|
+
return {
|
|
207
|
+
module: RootConfig.module.name,
|
|
208
|
+
name: RootConfig.entities.traceEntry.name,
|
|
209
|
+
title: RootConfig.entities.traceEntry.title,
|
|
210
|
+
icon: RootConfig.entities.traceEntry.icon,
|
|
211
|
+
formats: {
|
|
212
|
+
individual: RootConfig.entities.traceEntry.title,
|
|
213
|
+
plural: RootConfig.entities.traceEntry.titlePlural,
|
|
214
|
+
searchResult: {
|
|
215
|
+
title: '{{ operation || rootOperation }}',
|
|
216
|
+
description: RootConfig.entities.traceEntry.title,
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
groups: [{ id: 'general', title: `@${i18n}:groups.general` }],
|
|
220
|
+
plugins: [
|
|
221
|
+
{ name: 'trace', options: { enabled: false } },
|
|
222
|
+
{ name: 'log', options: { enabled: false } },
|
|
223
|
+
],
|
|
224
|
+
properties,
|
|
225
|
+
columns: [
|
|
226
|
+
{ name: 'startTime' },
|
|
227
|
+
{ name: 'kind' },
|
|
228
|
+
{ name: 'operation' },
|
|
229
|
+
{ name: 'rootServiceName' },
|
|
230
|
+
{ name: 'duration' },
|
|
231
|
+
{ name: 'spanCount' },
|
|
232
|
+
{ name: 'hasError' },
|
|
233
|
+
{ name: 'tenantId' },
|
|
234
|
+
],
|
|
235
|
+
// list stays on EntityStore → insight Elasticsearch (filters compile to ES).
|
|
236
|
+
// byKey tries Jaeger/runtime timeline first, then the same ES document as the list.
|
|
237
|
+
queries: {
|
|
238
|
+
byKey: { execute: AXMSystemInsightQueryKeys.TraceEntry.GetOne, type: AXPEntityQueryType.Single },
|
|
239
|
+
},
|
|
240
|
+
commands: {
|
|
241
|
+
create: { execute: readOnlyCrud },
|
|
242
|
+
update: { execute: readOnlyCrud },
|
|
243
|
+
delete: { execute: readOnlyCrud },
|
|
244
|
+
},
|
|
245
|
+
pages: [
|
|
246
|
+
{
|
|
247
|
+
componentKey: TRACE_TIMELINE_PAGE_COMPONENT_KEY,
|
|
248
|
+
title: `@${i18n}:pages.trace-timeline.title`,
|
|
249
|
+
icon: 'fa-light fa-chart-gantt',
|
|
250
|
+
layout: { order: 1, position: 'after' },
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
componentKey: TRACE_FLOW_PAGE_COMPONENT_KEY,
|
|
254
|
+
title: `@${i18n}:pages.trace-flow.title`,
|
|
255
|
+
icon: 'fa-light fa-diagram-project',
|
|
256
|
+
layout: { order: 2, position: 'after' },
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
interfaces: {
|
|
260
|
+
master: {
|
|
261
|
+
list: {
|
|
262
|
+
actions: [
|
|
263
|
+
{
|
|
264
|
+
title: '@general:actions.detail.title',
|
|
265
|
+
icon: 'fa-light fa-eye',
|
|
266
|
+
command: 'Entity:OpenDetails',
|
|
267
|
+
priority: 'primary',
|
|
268
|
+
type: 'view',
|
|
269
|
+
scope: AXPEntityCommandScope.Individual,
|
|
270
|
+
default: true,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: `@${i18n}:actions.view-timeline.title`,
|
|
274
|
+
command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,
|
|
275
|
+
priority: 'secondary',
|
|
276
|
+
type: 'view',
|
|
277
|
+
scope: AXPEntityCommandScope.Individual,
|
|
278
|
+
hidden: `{{ !context.eval("traceId") }}`,
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
views: [
|
|
282
|
+
createAllQueryView({
|
|
283
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
284
|
+
}),
|
|
285
|
+
createQueryView('command', `@${i18n}:entities.trace-entry.views.command.title`, true, {
|
|
286
|
+
conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'command' }],
|
|
287
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
288
|
+
}),
|
|
289
|
+
createQueryView('query', `@${i18n}:entities.trace-entry.views.query.title`, true, {
|
|
290
|
+
conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'query' }],
|
|
291
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
292
|
+
}),
|
|
293
|
+
createQueryView('entity', `@${i18n}:entities.trace-entry.views.entity.title`, true, {
|
|
294
|
+
conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'entity' }],
|
|
295
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
296
|
+
}),
|
|
297
|
+
createQueryView('slow', `@${i18n}:entities.trace-entry.views.slow.title`, true, {
|
|
298
|
+
conditions: [
|
|
299
|
+
{
|
|
300
|
+
name: 'duration',
|
|
301
|
+
operator: { type: 'greaterThanOrEqual' },
|
|
302
|
+
value: slowRequestThresholdMs,
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
306
|
+
}),
|
|
307
|
+
createQueryView('error', `@${i18n}:entities.trace-entry.views.error.title`, true, {
|
|
308
|
+
conditions: [{ name: 'hasError', operator: { type: 'equal' }, value: true }],
|
|
309
|
+
sorts: [{ name: 'startTime', dir: 'desc' }],
|
|
310
|
+
}),
|
|
311
|
+
],
|
|
312
|
+
},
|
|
313
|
+
single: {
|
|
314
|
+
title: '{{ operation || rootOperation }}',
|
|
315
|
+
sections: [{ id: 'general' }],
|
|
316
|
+
properties: [
|
|
317
|
+
col('traceId', 12),
|
|
318
|
+
col('kind'),
|
|
319
|
+
col('operation'),
|
|
320
|
+
col('rootServiceName'),
|
|
321
|
+
col('module'),
|
|
322
|
+
col('entityName'),
|
|
323
|
+
col('startTime'),
|
|
324
|
+
col('duration'),
|
|
325
|
+
col('spanCount'),
|
|
326
|
+
col('status'),
|
|
327
|
+
col('hasError'),
|
|
328
|
+
col('tenantId'),
|
|
329
|
+
],
|
|
330
|
+
actions: [],
|
|
331
|
+
},
|
|
332
|
+
update: {
|
|
333
|
+
sections: [],
|
|
334
|
+
properties: [],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export { traceEntryEntityFactory };
|
|
342
|
+
//# sourceMappingURL=acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-system-insight-client-contracts-entity-catalog-trace-entry.entity-B_B8zT6c.mjs","sources":["../../../../libs/modules/system-insight/contracts/src/trace-timeline-page.component-key.ts","../../../../libs/modules/system-insight/contracts/src/entities/trace-entry/trace-entry.entity.ts"],"sourcesContent":["/** Registry key for Trace Timeline custom entity page (tab on TraceEntry). */\r\nexport const TRACE_TIMELINE_PAGE_COMPONENT_KEY = 'trace-timeline-page';\r\n\r\n/** Registry key for Trace Flow chart custom entity page (tab on TraceEntry). */\r\nexport const TRACE_FLOW_PAGE_COMPONENT_KEY = 'trace-flow-page';\r\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n createQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXMSystemInsightCommandKeys } from '../../commands.keys';\nimport { AXMSystemInsightQueryKeys } from '../../queries.keys';\nimport {\n AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS,\n AXPSystemInsightSettings,\n} from '../../settings.keys';\nimport {\n TRACE_FLOW_PAGE_COMPONENT_KEY,\n TRACE_TIMELINE_PAGE_COMPONENT_KEY,\n} from '../../trace-timeline-page.component-key';\nimport { RootConfig } from '../../root-config';\nconst slowRequestThresholdMs =\n AXP_SYSTEM_INSIGHT_SETTING_DEFAULTS[AXPSystemInsightSettings.SlowRequestThresholdMs];\n\nconst listFieldOptions = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst booleanFieldOptions = {\n filter: { inline: { enabled: false }, advance: { enabled: true } },\n sort: { enabled: true },\n};\n\nconst readOnlyField = {\n readonly: true,\n nullable: true,\n} as const;\n\nconst readOnlyCrud = async () => {\n throw new Error('Observability data is read-only');\n};\n\nconst col = (name: string, colSpan = 6) => ({\n name,\n layout: { positions: { lg: { colSpan } } },\n});\n\nexport async function traceEntryEntityFactory(): 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: {\n dataType: 'string',\n ...readOnlyField,\n visible: false,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: { filter: { inline: { enabled: false }, advance: { enabled: true } }, sort: { enabled: true } },\n },\n {\n name: 'traceId',\n title: '@system-insight:fields.trace-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'kind',\n title: '@system-insight:fields.kind',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'operation',\n title: '@system-insight:fields.operation',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'rootServiceName',\n title: '@system-insight:fields.service-name',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'module',\n title: '@system-insight:fields.module',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'entityName',\n title: '@system-insight:fields.entity',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'startTime',\n title: '@system-insight:fields.start-time',\n groupId: 'general',\n schema: {\n dataType: 'datetime',\n ...readOnlyField,\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { type: 'datetime', readonly: true, disabled: true },\n },\n },\n options: listFieldOptions,\n },\n {\n name: 'duration',\n title: '@system-insight:fields.duration',\n groupId: 'general',\n schema: {\n dataType: 'number',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.NumberBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'spanCount',\n title: '@system-insight:fields.span-count',\n groupId: 'general',\n schema: {\n dataType: 'number',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.NumberBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'status',\n title: '@system-insight:fields.status',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: listFieldOptions,\n },\n {\n name: 'hasError',\n title: '@system-insight:fields.has-error',\n groupId: 'general',\n schema: {\n dataType: 'boolean',\n ...readOnlyField,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch, options: { readonly: true, disabled: true } },\n },\n options: booleanFieldOptions,\n },\n {\n name: 'tenantId',\n title: '@system-insight:fields.tenant-id',\n groupId: 'general',\n schema: {\n dataType: 'string',\n ...readOnlyField,\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 },\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 ...readOnlyField,\n visible: false,\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { readonly: true, disabled: true } },\n },\n options: { filter: { inline: { enabled: false }, advance: { enabled: true } }, sort: { enabled: true } },\n },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.traceEntry.name,\n title: RootConfig.entities.traceEntry.title,\n icon: RootConfig.entities.traceEntry.icon,\n formats: {\n individual: RootConfig.entities.traceEntry.title,\n plural: RootConfig.entities.traceEntry.titlePlural,\n searchResult: {\n title: '{{ operation || rootOperation }}',\n description: RootConfig.entities.traceEntry.title,\n },\n },\n groups: [{ id: 'general', title: `@${i18n}:groups.general` }],\n plugins: [\n { name: 'trace', options: { enabled: false } },\n { name: 'log', options: { enabled: false } },\n ],\n properties,\n columns: [\n { name: 'startTime' },\n { name: 'kind' },\n { name: 'operation' },\n { name: 'rootServiceName' },\n { name: 'duration' },\n { name: 'spanCount' },\n { name: 'hasError' },\n { name: 'tenantId' },\n ],\n // list stays on EntityStore → insight Elasticsearch (filters compile to ES).\n // byKey tries Jaeger/runtime timeline first, then the same ES document as the list.\n queries: {\n byKey: { execute: AXMSystemInsightQueryKeys.TraceEntry.GetOne, type: AXPEntityQueryType.Single },\n },\n commands: {\n create: { execute: readOnlyCrud },\n update: { execute: readOnlyCrud },\n delete: { execute: readOnlyCrud },\n },\n pages: [\n {\n componentKey: TRACE_TIMELINE_PAGE_COMPONENT_KEY,\n title: `@${i18n}:pages.trace-timeline.title`,\n icon: 'fa-light fa-chart-gantt',\n layout: { order: 1, position: 'after' },\n },\n {\n componentKey: TRACE_FLOW_PAGE_COMPONENT_KEY,\n title: `@${i18n}:pages.trace-flow.title`,\n icon: 'fa-light fa-diagram-project',\n layout: { order: 2, position: 'after' },\n },\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:OpenDetails',\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n {\n title: `@${i18n}:actions.view-timeline.title`,\n command: AXMSystemInsightCommandKeys.Trace.OpenTimeline,\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n hidden: `{{ !context.eval(\"traceId\") }}`,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n createQueryView('command', `@${i18n}:entities.trace-entry.views.command.title`, true, {\n conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'command' }],\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n createQueryView('query', `@${i18n}:entities.trace-entry.views.query.title`, true, {\n conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'query' }],\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n createQueryView('entity', `@${i18n}:entities.trace-entry.views.entity.title`, true, {\n conditions: [{ name: 'kind', operator: { type: 'equal' }, value: 'entity' }],\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n createQueryView('slow', `@${i18n}:entities.trace-entry.views.slow.title`, true, {\n conditions: [\n {\n name: 'duration',\n operator: { type: 'greaterThanOrEqual' },\n value: slowRequestThresholdMs,\n },\n ],\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n createQueryView('error', `@${i18n}:entities.trace-entry.views.error.title`, true, {\n conditions: [{ name: 'hasError', operator: { type: 'equal' }, value: true }],\n sorts: [{ name: 'startTime', dir: 'desc' }],\n }),\n ],\n },\n single: {\n title: '{{ operation || rootOperation }}',\n sections: [{ id: 'general' }],\n properties: [\n col('traceId', 12),\n col('kind'),\n col('operation'),\n col('rootServiceName'),\n col('module'),\n col('entityName'),\n col('startTime'),\n col('duration'),\n col('spanCount'),\n col('status'),\n col('hasError'),\n col('tenantId'),\n ],\n actions: [],\n },\n update: {\n sections: [],\n properties: [],\n },\n },\n },\n };\n}\n"],"names":[],"mappings":";;;;;;;AAAA;AACO,MAAM,iCAAiC,GAAG,qBAAqB;AAEtE;AACO,MAAM,6BAA6B,GAAG,iBAAiB;;ACe9D,MAAM,sBAAsB,GAC1B,mCAAmC,CAAC,wBAAwB,CAAC,sBAAsB,CAAC;AAEtF,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,mBAAmB,GAAG;AAC1B,IAAA,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AAClE,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CACxB;AAED,MAAM,aAAa,GAAG;AACpB,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,QAAQ,EAAE,IAAI;CACN;AAEV,MAAM,YAAY,GAAG,YAAW;AAC9B,IAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC;AACpD,CAAC;AAED,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,OAAO,GAAG,CAAC,MAAM;IAC1C,IAAI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