@dx-do/client 7.15.0 → 7.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2075 -292
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2061 -293
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-record.d.ts +53 -0
- package/dist/src/lib/model/alarm/alarm-record.d.ts.map +1 -0
- package/dist/src/lib/model/datastore/datastore-schemas.d.ts +2 -7
- package/dist/src/lib/model/datastore/datastore-schemas.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/metrics-metadata/attribute-name-specifier.d.ts +2 -2
- package/dist/src/lib/model/datastore/metrics-metadata/folder-name-specifier.d.ts +2 -2
- package/dist/src/lib/model/datastore/metrics-metadata/source-name-specifier.d.ts +2 -2
- package/dist/src/lib/model/datastore/nassql/operations.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/tas/filters.d.ts +11 -10
- package/dist/src/lib/model/datastore/tas/filters.d.ts.map +1 -1
- package/dist/src/lib/model/oi/alarms.d.ts +12 -0
- package/dist/src/lib/model/oi/alarms.d.ts.map +1 -1
- package/dist/src/lib/model/oi/services.bulk-select.d.ts +109 -0
- package/dist/src/lib/model/oi/services.bulk-select.d.ts.map +1 -0
- package/dist/src/lib/model/oi/services.bulk.d.ts +243 -0
- package/dist/src/lib/model/oi/services.bulk.d.ts.map +1 -0
- package/dist/src/lib/model/oi/services.d.ts +2 -0
- package/dist/src/lib/model/oi/services.d.ts.map +1 -1
- package/dist/src/lib/model/oi/services.export.d.ts +10 -0
- package/dist/src/lib/model/oi/services.export.d.ts.map +1 -1
- package/dist/src/lib/model/oi/services.import.d.ts +43 -0
- package/dist/src/lib/model/oi/services.import.d.ts.map +1 -0
- package/dist/src/lib/model/oi/services.transform.d.ts +10 -1
- package/dist/src/lib/model/oi/services.transform.d.ts.map +1 -1
- package/dist/src/lib/model/service/service-overview.d.ts +20 -0
- package/dist/src/lib/model/service/service-overview.d.ts.map +1 -1
- package/dist/src/lib/services/alarm-export.d.ts +85 -0
- package/dist/src/lib/services/alarm-export.d.ts.map +1 -0
- package/dist/src/lib/services/alarm-window-search.d.ts +59 -0
- package/dist/src/lib/services/alarm-window-search.d.ts.map +1 -0
- package/dist/src/lib/services/alarm.service.d.ts +57 -4
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/dxoi.service.d.ts +15 -3
- package/dist/src/lib/services/dxoi.service.d.ts.map +1 -1
- package/dist/src/lib/services/lifecycle-pages.d.ts +20 -0
- package/dist/src/lib/services/lifecycle-pages.d.ts.map +1 -0
- package/dist/src/lib/services/service.service.d.ts +107 -10
- package/dist/src/lib/services/service.service.d.ts.map +1 -1
- package/dist/src/lib/services/situation.service.d.ts +9 -2
- package/dist/src/lib/services/situation.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { CreateServices } from './services.create';
|
|
3
|
+
import type { RetrieveServices } from './services.retrieve';
|
|
4
|
+
/**
|
|
5
|
+
* Pure (HTTP-free) planning for multi-service edits saved in ONE `sa/save`.
|
|
6
|
+
*
|
|
7
|
+
* Measured on a lab tenant (docs/internal/service-bulk-save-findings-2026-10.md):
|
|
8
|
+
* - Every vertex in a save payload is fully overwritten — attributes AND outgoing
|
|
9
|
+
* edges — so a payload carries each changed service plus all its descendants,
|
|
10
|
+
* each complete. Services left out of the payload are untouched, as are
|
|
11
|
+
* incoming edges; a changed leaf is saved alone.
|
|
12
|
+
* - A save that fails validation changes nothing.
|
|
13
|
+
* - `GET sa/services/{name}?subservices=true` returns every hierarchy that
|
|
14
|
+
* CONTAINS the service; descendants are computed from its edges here.
|
|
15
|
+
*
|
|
16
|
+
* Locking is a field-level rebase: a plan records the value each change
|
|
17
|
+
* replaces; a commit re-reads, refuses only when one of those values moved
|
|
18
|
+
* ({@link findConflicts}), then re-applies the changes onto the fresh read.
|
|
19
|
+
*/
|
|
20
|
+
export declare namespace ServiceBulk {
|
|
21
|
+
type ServiceVertex = CreateServices.ServiceVertex;
|
|
22
|
+
type ServiceEdge = CreateServices.ServiceEdge;
|
|
23
|
+
/** Name-keyed services and their parent→child edges, merged from hierarchy reads. */
|
|
24
|
+
export interface ServiceGraph {
|
|
25
|
+
vertices: Record<string, ServiceVertex>;
|
|
26
|
+
edges: ServiceEdge[];
|
|
27
|
+
}
|
|
28
|
+
export const ServiceChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
op: z.ZodLiteral<"addTags">;
|
|
30
|
+
service: z.ZodString;
|
|
31
|
+
tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
op: z.ZodLiteral<"removeTags">;
|
|
34
|
+
service: z.ZodString;
|
|
35
|
+
tags: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
op: z.ZodLiteral<"setProperty">;
|
|
38
|
+
service: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
op: z.ZodLiteral<"removeProperty">;
|
|
43
|
+
service: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
op: z.ZodLiteral<"setAttributes">;
|
|
47
|
+
service: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodString>;
|
|
49
|
+
location: z.ZodOptional<z.ZodString>;
|
|
50
|
+
situationsIncludeChildServices: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52
|
+
op: z.ZodLiteral<"createService">;
|
|
53
|
+
service: z.ZodString;
|
|
54
|
+
serviceType: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
Service: "Service";
|
|
56
|
+
Application: "Application";
|
|
57
|
+
Group: "Group";
|
|
58
|
+
}>>;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
location: z.ZodOptional<z.ZodString>;
|
|
61
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
customProperties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
op: z.ZodLiteral<"link">;
|
|
68
|
+
parent: z.ZodString;
|
|
69
|
+
child: z.ZodString;
|
|
70
|
+
healthWeight: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
riskWeight: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
73
|
+
op: z.ZodLiteral<"unlink">;
|
|
74
|
+
parent: z.ZodString;
|
|
75
|
+
child: z.ZodString;
|
|
76
|
+
}, z.core.$strict>], "op">;
|
|
77
|
+
export type ServiceChange = z.infer<typeof ServiceChangeSchema>;
|
|
78
|
+
/** A direct child of a parent with its link weights. */
|
|
79
|
+
export interface ChildLink {
|
|
80
|
+
child: string;
|
|
81
|
+
healthWeight: number;
|
|
82
|
+
riskWeight: number;
|
|
83
|
+
}
|
|
84
|
+
export interface FieldChange {
|
|
85
|
+
field: string;
|
|
86
|
+
before: unknown;
|
|
87
|
+
after: unknown;
|
|
88
|
+
}
|
|
89
|
+
/** What a plan changes on one service. */
|
|
90
|
+
export interface ServiceDiff {
|
|
91
|
+
service: string;
|
|
92
|
+
status: 'created' | 'changed';
|
|
93
|
+
fields: FieldChange[];
|
|
94
|
+
/** Present when the service's direct children (or their weights) change. */
|
|
95
|
+
children?: {
|
|
96
|
+
before: ChildLink[];
|
|
97
|
+
after: ChildLink[];
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* A reviewed, serialisable edit: the changes plus what they expect to replace.
|
|
102
|
+
* Commit re-derives the save body from a fresh read, so a plan carries no body.
|
|
103
|
+
*/
|
|
104
|
+
export interface ServicePlan {
|
|
105
|
+
/** The services read to build the plan (every existing service the changes name). */
|
|
106
|
+
targets: string[];
|
|
107
|
+
changes: ServiceChange[];
|
|
108
|
+
diff: ServiceDiff[];
|
|
109
|
+
/** Every service the save payload carries: the changed ones and all their descendants. */
|
|
110
|
+
save: string[];
|
|
111
|
+
}
|
|
112
|
+
export class ServiceConflictError extends Error {
|
|
113
|
+
readonly conflicts: string[];
|
|
114
|
+
constructor(conflicts: string[]);
|
|
115
|
+
}
|
|
116
|
+
/** Parse untrusted changes (CLI file, MCP input); throws ZodError. */
|
|
117
|
+
export function parseChanges(raw: unknown): ServiceChange[];
|
|
118
|
+
export const ServicePlanSchema: z.ZodObject<{
|
|
119
|
+
targets: z.ZodArray<z.ZodString>;
|
|
120
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
op: z.ZodLiteral<"addTags">;
|
|
122
|
+
service: z.ZodString;
|
|
123
|
+
tags: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
125
|
+
op: z.ZodLiteral<"removeTags">;
|
|
126
|
+
service: z.ZodString;
|
|
127
|
+
tags: z.ZodArray<z.ZodString>;
|
|
128
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
129
|
+
op: z.ZodLiteral<"setProperty">;
|
|
130
|
+
service: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
value: z.ZodString;
|
|
133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
134
|
+
op: z.ZodLiteral<"removeProperty">;
|
|
135
|
+
service: z.ZodString;
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
+
op: z.ZodLiteral<"setAttributes">;
|
|
139
|
+
service: z.ZodString;
|
|
140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
|
+
location: z.ZodOptional<z.ZodString>;
|
|
142
|
+
situationsIncludeChildServices: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
op: z.ZodLiteral<"createService">;
|
|
145
|
+
service: z.ZodString;
|
|
146
|
+
serviceType: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
Service: "Service";
|
|
148
|
+
Application: "Application";
|
|
149
|
+
Group: "Group";
|
|
150
|
+
}>>;
|
|
151
|
+
description: z.ZodOptional<z.ZodString>;
|
|
152
|
+
location: z.ZodOptional<z.ZodString>;
|
|
153
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
customProperties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
value: z.ZodString;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
op: z.ZodLiteral<"link">;
|
|
160
|
+
parent: z.ZodString;
|
|
161
|
+
child: z.ZodString;
|
|
162
|
+
healthWeight: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
riskWeight: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
op: z.ZodLiteral<"unlink">;
|
|
166
|
+
parent: z.ZodString;
|
|
167
|
+
child: z.ZodString;
|
|
168
|
+
}, z.core.$strict>], "op">>;
|
|
169
|
+
diff: z.ZodArray<z.ZodObject<{
|
|
170
|
+
service: z.ZodString;
|
|
171
|
+
status: z.ZodEnum<{
|
|
172
|
+
changed: "changed";
|
|
173
|
+
created: "created";
|
|
174
|
+
}>;
|
|
175
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
176
|
+
field: z.ZodString;
|
|
177
|
+
before: z.ZodUnknown;
|
|
178
|
+
after: z.ZodUnknown;
|
|
179
|
+
}, z.core.$loose>>;
|
|
180
|
+
children: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
before: z.ZodArray<z.ZodObject<{
|
|
182
|
+
child: z.ZodString;
|
|
183
|
+
healthWeight: z.ZodNumber;
|
|
184
|
+
riskWeight: z.ZodNumber;
|
|
185
|
+
}, z.core.$loose>>;
|
|
186
|
+
after: z.ZodArray<z.ZodObject<{
|
|
187
|
+
child: z.ZodString;
|
|
188
|
+
healthWeight: z.ZodNumber;
|
|
189
|
+
riskWeight: z.ZodNumber;
|
|
190
|
+
}, z.core.$loose>>;
|
|
191
|
+
}, z.core.$loose>>;
|
|
192
|
+
}, z.core.$loose>>;
|
|
193
|
+
save: z.ZodArray<z.ZodString>;
|
|
194
|
+
}, z.core.$loose>;
|
|
195
|
+
/** Parse an untrusted plan (file, MCP input); throws ZodError. */
|
|
196
|
+
export function parsePlan(raw: unknown): ServicePlan;
|
|
197
|
+
/**
|
|
198
|
+
* Every existing service the changes name — what to read before planning.
|
|
199
|
+
* Services created by an earlier change in the list are excluded.
|
|
200
|
+
*/
|
|
201
|
+
export function targetsOf(changes: ServiceChange[]): string[];
|
|
202
|
+
/**
|
|
203
|
+
* Convert one `?subservices=true` read into a name-keyed graph.
|
|
204
|
+
* @throws Error when the read is paged — never observed, so refused rather than guessed at.
|
|
205
|
+
*/
|
|
206
|
+
export function graphFromRead(read: RetrieveServices.RetrieveServiceResponse): ServiceGraph;
|
|
207
|
+
/** Union two graphs; a service or edge present in both keeps the first copy. */
|
|
208
|
+
export function mergeGraphs(a: ServiceGraph, b: ServiceGraph): ServiceGraph;
|
|
209
|
+
/** Direct children of a parent, sorted by name. */
|
|
210
|
+
export function childLinks(graph: ServiceGraph, parent: string): ChildLink[];
|
|
211
|
+
/** The services reachable from the seeds through parent→child edges, seeds included. */
|
|
212
|
+
export function descendantClosure(graph: ServiceGraph, seeds: Iterable<string>): string[];
|
|
213
|
+
/** The store body for a set of services: each one complete, with all its outgoing edges. */
|
|
214
|
+
export function bodyFor(graph: ServiceGraph, services: string[]): CreateServices.CreateServiceBody;
|
|
215
|
+
/** A service and its whole subtree as one store body (export-hierarchy, associate, …). */
|
|
216
|
+
export function subtreeBody(graph: ServiceGraph, root: string): CreateServices.CreateServiceBody;
|
|
217
|
+
/**
|
|
218
|
+
* Apply changes to a copy of the graph, in order.
|
|
219
|
+
* @throws Error naming the offending change (unknown service, duplicate create, cycle, missing link).
|
|
220
|
+
*/
|
|
221
|
+
export function applyChanges(graph: ServiceGraph, changes: ServiceChange[]): ServiceGraph;
|
|
222
|
+
/** Order-insensitive form of an attribute value, for comparison and display. */
|
|
223
|
+
export function normalize(field: string, value: unknown): unknown;
|
|
224
|
+
/** Per-service differences between two graphs (services removed from `after` are not reported). */
|
|
225
|
+
export function diffGraphs(before: ServiceGraph, after: ServiceGraph): ServiceDiff[];
|
|
226
|
+
/**
|
|
227
|
+
* Plan changes against a graph read for `targets`: the diff, the services the
|
|
228
|
+
* payload must carry, and the store body.
|
|
229
|
+
* @throws Error when a change is invalid or a parent's weights exceed 100 %.
|
|
230
|
+
*/
|
|
231
|
+
export function planChanges(graph: ServiceGraph, targets: string[], changes: ServiceChange[]): {
|
|
232
|
+
plan: ServicePlan;
|
|
233
|
+
body: CreateServices.CreateServiceBody;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* What moved between a plan and a fresh read, limited to the values the plan
|
|
237
|
+
* replaces: a changed field, a changed set of children, a service the plan
|
|
238
|
+
* edits that is gone, or one it creates that now exists. Empty = safe to commit.
|
|
239
|
+
*/
|
|
240
|
+
export function findConflicts(planned: ServicePlan, fresh: ServiceGraph): string[];
|
|
241
|
+
export {};
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=services.bulk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.bulk.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.bulk.ts"],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AAc,CAAC,iBAAiB,CAYjG;IAED,0FAA0F;IAC1F,MAAM,UAAU,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC,iBAAiB,CAG/F;IA4BD;;;OAGG;IACH,MAAM,UAAU,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,YAAY,CAiFxF;IAED,gFAAgF;IAChF,MAAM,UAAU,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAQhE;IAmBD,mGAAmG;IACnG,MAAM,UAAU,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAiBnF;IAED;;;;OAIG;IACH,MAAM,UAAU,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,aAAa,EAAE,GACvB;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAA;KAAE,CAY/D;IAED;;;;OAIG;IACH,MAAM,UAAU,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAyBjF;;CACF"}
|
|
@@ -27,6 +27,8 @@ export declare namespace OIService {
|
|
|
27
27
|
nameLowerCase: string;
|
|
28
28
|
serviceMetricGroups?: Record<string, string | Record<string, number>>;
|
|
29
29
|
healthBucket?: Record<string, number>;
|
|
30
|
+
/** Custom properties as a name → value map; only returned when requested in `projectionFilter`. */
|
|
31
|
+
customProperties?: Record<string, string>;
|
|
30
32
|
id: string;
|
|
31
33
|
}
|
|
32
34
|
interface ServicesResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.ts"],"names":[],"mappings":"AAEA,yBAAiB,SAAS,CAAC;IA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CAAC;KACzB;IAED,UAAiB,4BAA4B;QACzC,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,eAAe,EAAE,CAAA;KAC7B;IAED,gBAAgB;IACT,MAAM,iCAAiC,EAAE,4BA2M/C,CAAC;IAGK,MAAM,yCAAyC,UACiE,CAAC;IAEjH,MAAM,yCAAyC,UAG4C,CAAC;IAEnG,gBAAgB;IACT,MAAM,4BAA4B,EAAE,mBAU1C,CAAC;IAEF,gBAAgB;IACT,MAAM,2BAA2B,EAAE,mBAUzC,CAAC;IAGF,gBAAgB;IACT,MAAM,cAAc,EAAE,gBA+M5B,CAAC;CAGL"}
|
|
@@ -23,5 +23,15 @@ export declare namespace ServiceExport {
|
|
|
23
23
|
* @throws Error when the input is neither shape.
|
|
24
24
|
*/
|
|
25
25
|
function parseImport(raw: unknown): CreateServices.CreateServiceBody;
|
|
26
|
+
/**
|
|
27
|
+
* As {@link parseImport}, plus the envelope's provenance: which tenant the file came from
|
|
28
|
+
* (absent for a bare body or an envelope that did not record it) and when.
|
|
29
|
+
* @throws Error when the input is neither shape.
|
|
30
|
+
*/
|
|
31
|
+
function parseImportFile(raw: unknown): {
|
|
32
|
+
body: CreateServices.CreateServiceBody;
|
|
33
|
+
sourceTenant?: string;
|
|
34
|
+
exportedAt?: string;
|
|
35
|
+
};
|
|
26
36
|
}
|
|
27
37
|
//# sourceMappingURL=services.export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.export.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,yBAAiB,aAAa,CAAC;IACtB,MAAM,cAAc,EAAG,CAAU,CAAC;IAEzC,UAAiB,qBAAqB;QACpC,aAAa,EAAE,CAAC,CAAC;QACjB,IAAI,EAAE,SAAS,GAAG,mBAAmB,CAAC;QACtC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC;KACxC;IAwBD,+CAA+C;IAC/C,SAAgB,QAAQ,CACtB,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,EACnC,IAAI,EAAE,cAAc,CAAC,iBAAiB,EACtC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,UAAU,EAAE,MAAM,GACjB,qBAAqB,CAEvB;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAAC,iBAAiB,CAa1E;CACF"}
|
|
1
|
+
{"version":3,"file":"services.export.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,yBAAiB,aAAa,CAAC;IACtB,MAAM,cAAc,EAAG,CAAU,CAAC;IAEzC,UAAiB,qBAAqB;QACpC,aAAa,EAAE,CAAC,CAAC;QACjB,IAAI,EAAE,SAAS,GAAG,mBAAmB,CAAC;QACtC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC;KACxC;IAwBD,+CAA+C;IAC/C,SAAgB,QAAQ,CACtB,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,EACnC,IAAI,EAAE,cAAc,CAAC,iBAAiB,EACtC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,UAAU,EAAE,MAAM,GACjB,qBAAqB,CAEvB;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAAC,iBAAiB,CAa1E;IAED;;;;OAIG;IACH,SAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG;QAC7C,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC;QACvC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CASA;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CreateServices } from './services.create';
|
|
2
|
+
import { ServiceBulk } from './services.bulk';
|
|
3
|
+
/**
|
|
4
|
+
* Pure planning for `service import` into any tenant
|
|
5
|
+
* (docs/internal/service-bulk-save-findings-2026-10.md → "Cross-tenant import"):
|
|
6
|
+
*
|
|
7
|
+
* - A service's `metrics` are tenant identity: a save carrying another tenant's (or a
|
|
8
|
+
* re-created service's stale) metrics is stored verbatim and the server assigns none, so
|
|
9
|
+
* health, risk and availability point at nothing. Metrics therefore always come from the
|
|
10
|
+
* target: an existing service keeps its current ones, a new one is sent with `[]`.
|
|
11
|
+
* - Every saved service is overwritten (attributes and child links), so an import into a
|
|
12
|
+
* tenant that already has some of the names is a diff to review, not a blind write.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace ServiceImport {
|
|
15
|
+
type Body = CreateServices.CreateServiceBody;
|
|
16
|
+
export interface ImportPlan {
|
|
17
|
+
/** The body to save: the file's services, with metrics taken from the target. */
|
|
18
|
+
body: Body;
|
|
19
|
+
/** Services the target does not have yet. */
|
|
20
|
+
created: string[];
|
|
21
|
+
/** Existing services the save would change (fields and child links). */
|
|
22
|
+
overwritten: ServiceBulk.ServiceDiff[];
|
|
23
|
+
/** Existing services the save would leave as they are. */
|
|
24
|
+
unchanged: string[];
|
|
25
|
+
/** New services whose file carried metrics (dropped; the target assigns its own). */
|
|
26
|
+
metricsDropped: string[];
|
|
27
|
+
/** Existing services whose file metrics differed from the target's (the target's kept). */
|
|
28
|
+
metricsKeptFromTarget: string[];
|
|
29
|
+
/** Weight and payload problems that make the save fail; any entry blocks the import. */
|
|
30
|
+
blockers: string[];
|
|
31
|
+
}
|
|
32
|
+
/** Prefix every service name (and link endpoint) in a body. */
|
|
33
|
+
export function renameBody(body: Body, prefix: string): Body;
|
|
34
|
+
/**
|
|
35
|
+
* Plan saving `file` into a target whose current state for the same names is `target`
|
|
36
|
+
* (missing names = new services).
|
|
37
|
+
*/
|
|
38
|
+
export function planImport(file: Body, target: ServiceBulk.ServiceGraph): ImportPlan;
|
|
39
|
+
/** Stable short hash of what an import would change; the apply must present it when overwriting. */
|
|
40
|
+
export function importToken(plan: ImportPlan): string;
|
|
41
|
+
export {};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=services.import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.import.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.import.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;;;;;;;GAUG;AACH,yBAAiB,aAAa,CAAC;IAC7B,KAAK,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC;IAE7C,MAAM,WAAW,UAAU;QACzB,iFAAiF;QACjF,IAAI,EAAE,IAAI,CAAC;QACX,6CAA6C;QAC7C,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,wEAAwE;QACxE,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC;QACvC,0DAA0D;QAC1D,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,qFAAqF;QACrF,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,2FAA2F;QAC3F,qBAAqB,EAAE,MAAM,EAAE,CAAC;QAChC,wFAAwF;QACxF,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;IAED,+DAA+D;IAC/D,MAAM,UAAU,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAc3D;IAED;;;OAGG;IACH,MAAM,UAAU,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,UAAU,CAoDnF;IAED,oGAAoG;IACpG,MAAM,UAAU,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAKpD;;CACF"}
|
|
@@ -51,8 +51,17 @@ export declare namespace ServiceTransform {
|
|
|
51
51
|
* dropped — this is exactly the incoming edge(s) from the root's parent, which
|
|
52
52
|
* `saTopologyGraph` returns without the parent vertex (and which must not be
|
|
53
53
|
* re-posted: the parent isn't re-saved, so its edge survives anyway).
|
|
54
|
+
* Also accepts a `?subservices=true` read, which has the same id/edge shape.
|
|
54
55
|
*/
|
|
55
|
-
export function edgesFromTopology(topo:
|
|
56
|
+
export function edgesFromTopology(topo: {
|
|
57
|
+
vertices: {
|
|
58
|
+
externalId: string;
|
|
59
|
+
attributes: {
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
}[];
|
|
63
|
+
edges: RetrieveServices.ServiceTopologyEdge[];
|
|
64
|
+
}): ServiceEdge[];
|
|
56
65
|
/** Merge two store bodies, de-duplicating vertices by externalId and edges by endpoints. */
|
|
57
66
|
export function mergeBodies(a: CreateServiceBody, b: CreateServiceBody): CreateServiceBody;
|
|
58
67
|
/** Insert or update the parent→child edge with the given weights. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.transform.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;;;;;;GASG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,KAAK,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;IAClD,KAAK,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAC9C,KAAK,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,CAAC;IAE1D;;;;;;;;;OASG;IACH,MAAM,UAAU,wBAAwB,CACtC,CAAC,EAAE,gBAAgB,CAAC,sBAAsB,GACzC,aAAa,CAsBf;IAOD;;;;OAIG;IACH,MAAM,UAAU,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAAC,WAAW,CAG/E;IAED,6GAA6G;IAC7G,MAAM,UAAU,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,WAAW,CAU1E;IAgBD;;;;;;;;;OASG;IACH,MAAM,UAAU,kBAAkB,CAChC,IAAI,EAAE,iBAAiB,EACvB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,cAAc,CAAC,kBAAkB,GACvC,MAAM,EAAE,CAwCV;IAED
|
|
1
|
+
{"version":3,"file":"services.transform.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;;;;;;GASG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,KAAK,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;IAClD,KAAK,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAC9C,KAAK,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,CAAC;IAE1D;;;;;;;;;OASG;IACH,MAAM,UAAU,wBAAwB,CACtC,CAAC,EAAE,gBAAgB,CAAC,sBAAsB,GACzC,aAAa,CAsBf;IAOD;;;;OAIG;IACH,MAAM,UAAU,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAAC,WAAW,CAG/E;IAED,6GAA6G;IAC7G,MAAM,UAAU,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,WAAW,CAU1E;IAgBD;;;;;;;;;OASG;IACH,MAAM,UAAU,kBAAkB,CAChC,IAAI,EAAE,iBA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AAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,MAAM,GACb,IAAI,CAiBN;;CACF"}
|
|
@@ -26,5 +26,25 @@ export interface ServiceOverviewVertex {
|
|
|
26
26
|
externalId: string;
|
|
27
27
|
attributes: ServiceOverviewAttributes;
|
|
28
28
|
}
|
|
29
|
+
/** How far back a listed service metric counts as published. */
|
|
30
|
+
export declare const SERVICE_METRIC_PRESENCE_WINDOW_MS: number;
|
|
31
|
+
/** A listed service metric, with whether the metric store holds it (#1187). */
|
|
32
|
+
export type ServiceMetricWithPresence = ServiceMetric & {
|
|
33
|
+
published: boolean;
|
|
34
|
+
note?: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Marks each metric a service record lists with `published`: whether the metric store holds it within
|
|
38
|
+
* {@link SERVICE_METRIC_PRESENCE_WINDOW_MS}. A service record lists `service_availability` for every service, but the
|
|
39
|
+
* platform computes it only when the service has an `availability` metric configured (measured 2026-10-26 across 108
|
|
40
|
+
* services: none of the 93 without one had it in 30 days; 10 of the 15 with one did), so an agent that reads the id
|
|
41
|
+
* from the record otherwise spends calls on a metric that does not exist. `service_health` / `service_risk` were
|
|
42
|
+
* published for all 108.
|
|
43
|
+
*/
|
|
44
|
+
export declare function markServiceMetricPresence(overview: ServiceOverviewVertex, publishedIds: ReadonlySet<string>): Omit<ServiceOverviewVertex, 'attributes'> & {
|
|
45
|
+
attributes: Omit<ServiceOverviewAttributes, 'metrics'> & {
|
|
46
|
+
metrics: ServiceMetricWithPresence[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
29
49
|
export {};
|
|
30
50
|
//# sourceMappingURL=service-overview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-overview.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/service/service-overview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,KAAK,qBAAqB,GAAG,cAAc,CAAC,qBAAqB,CAAC;AAClE,KAAK,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,8BAA8B,EAAE,OAAO,CAAC;IACxC,wBAAwB,EAAE,OAAO,CAAC;IAClC,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;IAC1C,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,aAAa,EAAE,OAAO,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,yBAAyB,CAAC;CACvC"}
|
|
1
|
+
{"version":3,"file":"service-overview.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/service/service-overview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,KAAK,qBAAqB,GAAG,cAAc,CAAC,qBAAqB,CAAC;AAClE,KAAK,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,8BAA8B,EAAE,OAAO,CAAC;IACxC,wBAAwB,EAAE,OAAO,CAAC;IAClC,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;IAC1C,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,aAAa,EAAE,OAAO,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,yBAAyB,CAAC;CACvC;AAED,gEAAgE;AAChE,eAAO,MAAM,iCAAiC,QAAkB,CAAC;AAEjE,+EAA+E;AAC/E,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9F;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,qBAAqB,EAC/B,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,GAChC,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,GAAG;IAAE,UAAU,EAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,GAAG;QAAE,OAAO,EAAE,yBAAyB,EAAE,CAAA;KAAE,CAAA;CAAE,CAcnJ"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Logging } from '@dx-do/util';
|
|
2
|
+
import type { AlarmRecord } from '../model/alarm/alarm-record';
|
|
3
|
+
/**
|
|
4
|
+
* Most records one analytics query can reach: `from + size` over 10000 is
|
|
5
|
+
* rejected ("Result window is too large"), and a count above it comes back as
|
|
6
|
+
* a lower bound (`relation: gte`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const ALARM_RECORD_WINDOW_CAP = 10000;
|
|
9
|
+
export declare const ALARM_RECORD_PAGE_SIZE = 1000;
|
|
10
|
+
/**
|
|
11
|
+
* Which alarms a range selects:
|
|
12
|
+
* - `opened` — opened in `[from, to)` (each alarm falls in exactly one range,
|
|
13
|
+
* so consecutive exports never overlap);
|
|
14
|
+
* - `closed` — closed in `[from, to)`;
|
|
15
|
+
* - `active` — open at any point in `[from, to)`: opened before `to` and not
|
|
16
|
+
* closed by `from`.
|
|
17
|
+
*/
|
|
18
|
+
export type AlarmExportMatch = 'opened' | 'closed' | 'active';
|
|
19
|
+
export interface AlarmRecordCount {
|
|
20
|
+
total: number;
|
|
21
|
+
/** False when `total` is only a lower bound (more than 10000). */
|
|
22
|
+
exact: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The analytics index, as the exporter needs it. `page` must return records in
|
|
26
|
+
* a total order (open time, then alarm id): without a fixed sort, from/size
|
|
27
|
+
* paging repeats and skips records (measured: 914 unique of 1005).
|
|
28
|
+
*/
|
|
29
|
+
export interface AlarmRecordSource {
|
|
30
|
+
count(query: string): Promise<AlarmRecordCount>;
|
|
31
|
+
page(query: string, from: number, size: number): Promise<AlarmRecord[]>;
|
|
32
|
+
}
|
|
33
|
+
export interface AlarmExportWindow {
|
|
34
|
+
from: number;
|
|
35
|
+
to: number;
|
|
36
|
+
/** Alarms in this window. */
|
|
37
|
+
records: number;
|
|
38
|
+
/** 1-based position of this window, and how many there are. */
|
|
39
|
+
index: number;
|
|
40
|
+
windows: number;
|
|
41
|
+
/** Alarms exported so far, including this window, and the export's total. */
|
|
42
|
+
exported: number;
|
|
43
|
+
total: number;
|
|
44
|
+
elapsedMs: number;
|
|
45
|
+
}
|
|
46
|
+
export interface AlarmExportPlan {
|
|
47
|
+
/** Exact number of alarms the export will write (sum of the windows' counts). */
|
|
48
|
+
total: number;
|
|
49
|
+
windows: number;
|
|
50
|
+
elapsedMs: number;
|
|
51
|
+
}
|
|
52
|
+
export interface AlarmExportOptions {
|
|
53
|
+
/** Called once the range is split into windows, before any record is read. */
|
|
54
|
+
onPlan?: (plan: AlarmExportPlan) => void;
|
|
55
|
+
/** Called after each window is read, checked and yielded, in time order. */
|
|
56
|
+
onWindow?: (window: AlarmExportWindow) => void;
|
|
57
|
+
/** Most requests one export may make (default 20000). */
|
|
58
|
+
maxRequests?: number;
|
|
59
|
+
/** Records per window (default {@link ALARM_RECORD_WINDOW_CAP}); lower only in tests. */
|
|
60
|
+
windowCap?: number;
|
|
61
|
+
/** Records per page (default {@link ALARM_RECORD_PAGE_SIZE}). */
|
|
62
|
+
pageSize?: number;
|
|
63
|
+
log?: Logging.SimpleLog;
|
|
64
|
+
}
|
|
65
|
+
/** An instant as the index's query syntax wants it: whole seconds, `+0000` (`Z` matches nothing). */
|
|
66
|
+
export declare const alarmRecordTime: (ms: number) => string;
|
|
67
|
+
/** Epoch ms of an index time such as `2026-10-22T06:17:39+0000`. */
|
|
68
|
+
export declare const parseAlarmRecordTime: (value: string) => number;
|
|
69
|
+
/**
|
|
70
|
+
* Streams every alarm record that `match` selects in `[from, to)`, in open-time
|
|
71
|
+
* order, reading the analytics index in windows of at most
|
|
72
|
+
* {@link ALARM_RECORD_WINDOW_CAP} records.
|
|
73
|
+
*
|
|
74
|
+
* First the range is planned: count-only requests split it until each window
|
|
75
|
+
* holds at most the cap, which gives the exact total (the index itself reports
|
|
76
|
+
* any total over 10000 as "at least 10000"). Then each window is paged with a
|
|
77
|
+
* fixed sort and checked: the records read must be exactly its planned count. Otherwise it throws
|
|
78
|
+
* {@link IncompleteAlarmSearchError} rather than yielding a partial export:
|
|
79
|
+
* - `changed` — the window's count or contents moved during the read;
|
|
80
|
+
* - `unsplittable` — more than 10000 records share one second;
|
|
81
|
+
* - `request-budget` — `maxRequests` ran out.
|
|
82
|
+
* Records already yielded stay valid; the error says where the export stopped.
|
|
83
|
+
*/
|
|
84
|
+
export declare function exportAlarmRecords(source: AlarmRecordSource, from: number, to: number, match: AlarmExportMatch, options?: AlarmExportOptions): AsyncGenerator<AlarmRecord>;
|
|
85
|
+
//# sourceMappingURL=alarm-export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarm-export.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/alarm-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC/C,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC;CACzB;AAED,qGAAqG;AACrG,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,KAAG,MACa,CAAC;AAE3D,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,MACM,CAAC;AAc5D;;;;;;;;;;;;;;GAcG;AACH,wBAAuB,kBAAkB,CACvC,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,gBAAgB,EACvB,OAAO,GAAE,kBAAuB,GAC/B,cAAc,CAAC,WAAW,CAAC,CAkH7B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Logging } from '@dx-do/util';
|
|
2
|
+
import { OIAlarm } from '../model/oi/alarms';
|
|
3
|
+
/**
|
|
4
|
+
* Most alarms one `oi/v2/api/alarms/_search` request returns, whatever
|
|
5
|
+
* `pageSize` asks for (1001, 2000 and 5000 all answered 1000; measured on
|
|
6
|
+
* demo-dev 2026-10-22). `pageNumber` > 0 answers an empty page, so a range
|
|
7
|
+
* holding more alarms can only be read by splitting it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ALARM_SEARCH_PAGE_CAP = 1000;
|
|
10
|
+
/** One search over `[from, to]`: the exact count the server reports, and the alarms it returned. */
|
|
11
|
+
export interface AlarmSearchPage {
|
|
12
|
+
count: number;
|
|
13
|
+
alarms: OIAlarm.Alarm[];
|
|
14
|
+
}
|
|
15
|
+
export type AlarmWindowSearch = (from: number, to: number) => Promise<AlarmSearchPage>;
|
|
16
|
+
export type IncompleteAlarmSearchReason = 'unsplittable' | 'changed' | 'request-budget';
|
|
17
|
+
/**
|
|
18
|
+
* A complete read of an alarm range was not possible. Thrown instead of
|
|
19
|
+
* returning a partial set, so a caller never mistakes a short list for the
|
|
20
|
+
* whole range.
|
|
21
|
+
*/
|
|
22
|
+
export declare class IncompleteAlarmSearchError extends Error {
|
|
23
|
+
readonly reason: IncompleteAlarmSearchReason;
|
|
24
|
+
readonly expected: number;
|
|
25
|
+
readonly retrieved: number;
|
|
26
|
+
constructor(reason: IncompleteAlarmSearchReason, expected: number, retrieved: number, detail: string);
|
|
27
|
+
}
|
|
28
|
+
export interface AlarmWindowSearchOptions {
|
|
29
|
+
/** Window searches in flight at once (default 4). */
|
|
30
|
+
concurrency?: number;
|
|
31
|
+
/** Most requests one read may make before giving up (default 2000). */
|
|
32
|
+
maxRequests?: number;
|
|
33
|
+
log?: Logging.SimpleLog;
|
|
34
|
+
}
|
|
35
|
+
export interface AlarmWindowSearchResult {
|
|
36
|
+
alarms: Map<string, OIAlarm.Alarm>;
|
|
37
|
+
/** The count the server reported for the whole range. */
|
|
38
|
+
expected: number;
|
|
39
|
+
requests: number;
|
|
40
|
+
windows: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Reads every alarm in `[from, to]`, splitting the range until each window
|
|
44
|
+
* fits in one response.
|
|
45
|
+
*
|
|
46
|
+
* A window holds every alarm whose lifetime (`timeOrigin` to `closedTime`, or
|
|
47
|
+
* now) overlaps it, so windows overlap and their counts do not add up; their
|
|
48
|
+
* union is the range (measured: 448 of 448, 300 of them in both halves). The
|
|
49
|
+
* merge keys on `alarmId` and keeps the copy with the later `lastUpdateTime`.
|
|
50
|
+
*
|
|
51
|
+
* Fails with {@link IncompleteAlarmSearchError} instead of returning less:
|
|
52
|
+
* - `unsplittable` — more alarms than one response holds are present at a
|
|
53
|
+
* single instant (every window containing it is over the cap);
|
|
54
|
+
* - `changed` — the range's count moved during the read, or the merged set
|
|
55
|
+
* does not match it (alarms arriving or backdated into the range);
|
|
56
|
+
* - `request-budget` — `maxRequests` ran out.
|
|
57
|
+
*/
|
|
58
|
+
export declare function searchAlarmWindows(search: AlarmWindowSearch, from: number, to: number, options?: AlarmWindowSearchOptions): Promise<AlarmWindowSearchResult>;
|
|
59
|
+
//# sourceMappingURL=alarm-window-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarm-window-search.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/alarm-window-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,oGAAoG;AACpG,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;AAEvF,MAAM,MAAM,2BAA2B,GAAG,cAAc,GAAG,SAAS,GAAG,gBAAgB,CAAC;AAExF;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IAEjD,QAAQ,CAAC,MAAM,EAAE,2BAA2B;IAC5C,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,QAAQ,CAAC,SAAS,EAAE,MA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