@dx-do/client 7.8.0 → 7.10.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.
Files changed (45) hide show
  1. package/dist/index.cjs.js +1190 -92
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1148 -93
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/index.d.ts +2 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/lib/model/config/DXDoConfiguration.d.ts +8 -0
  8. package/dist/src/lib/model/config/DXDoConfiguration.d.ts.map +1 -1
  9. package/dist/src/lib/model/datastore/tas/store.d.ts +114 -129
  10. package/dist/src/lib/model/datastore/tas/store.d.ts.map +1 -1
  11. package/dist/src/lib/model/log/ingest.d.ts +13 -0
  12. package/dist/src/lib/model/log/ingest.d.ts.map +1 -1
  13. package/dist/src/lib/model/nass/NASS.d.ts +4 -2
  14. package/dist/src/lib/model/nass/NASS.d.ts.map +1 -1
  15. package/dist/src/lib/model/oi/services.create.d.ts +19 -0
  16. package/dist/src/lib/model/oi/services.create.d.ts.map +1 -1
  17. package/dist/src/lib/model/oi/services.transform.d.ts +20 -1
  18. package/dist/src/lib/model/oi/services.transform.d.ts.map +1 -1
  19. package/dist/src/lib/model/service/service-overview.d.ts +2 -0
  20. package/dist/src/lib/model/service/service-overview.d.ts.map +1 -1
  21. package/dist/src/lib/model/situations/clustering-policy.d.ts +492 -0
  22. package/dist/src/lib/model/situations/clustering-policy.d.ts.map +1 -0
  23. package/dist/src/lib/model/tas/TASGraph.d.ts +7 -3
  24. package/dist/src/lib/model/tas/TASGraph.d.ts.map +1 -1
  25. package/dist/src/lib/services/alarm.service.d.ts +11 -1
  26. package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
  27. package/dist/src/lib/services/clustering-policy.service.d.ts +159 -0
  28. package/dist/src/lib/services/clustering-policy.service.d.ts.map +1 -0
  29. package/dist/src/lib/services/datastore/datastore-metrics-metadata.service.d.ts +6 -3
  30. package/dist/src/lib/services/datastore/datastore-metrics-metadata.service.d.ts.map +1 -1
  31. package/dist/src/lib/services/datastore/datastore-nass.service.d.ts +6 -2
  32. package/dist/src/lib/services/datastore/datastore-nass.service.d.ts.map +1 -1
  33. package/dist/src/lib/services/datastore/datastore-tas.service.d.ts +8 -5
  34. package/dist/src/lib/services/datastore/datastore-tas.service.d.ts.map +1 -1
  35. package/dist/src/lib/services/dx-saas.service.d.ts +16 -7
  36. package/dist/src/lib/services/dx-saas.service.d.ts.map +1 -1
  37. package/dist/src/lib/services/event.service.d.ts +10 -1
  38. package/dist/src/lib/services/event.service.d.ts.map +1 -1
  39. package/dist/src/lib/services/logs.service.d.ts +40 -0
  40. package/dist/src/lib/services/logs.service.d.ts.map +1 -1
  41. package/dist/src/lib/services/service-monolith.d.ts +2 -0
  42. package/dist/src/lib/services/service-monolith.d.ts.map +1 -1
  43. package/dist/src/lib/services/service.service.d.ts +24 -2
  44. package/dist/src/lib/services/service.service.d.ts.map +1 -1
  45. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -39917,7 +39917,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
39917
39917
  isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,
39918
39918
  isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
39919
39919
 
39920
- BASE = 1e7,
39920
+ BASE$1 = 1e7,
39921
39921
  LOG_BASE = 7,
39922
39922
  MAX_SAFE_INTEGER$2 = 9007199254740991,
39923
39923
 
@@ -41188,9 +41188,9 @@ P$2.minus = P$2.sub = function (y) {
41188
41188
  for (i = yd.length; i > k;) {
41189
41189
 
41190
41190
  if (xd[--i] < yd[i]) {
41191
- for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;
41191
+ for (j = i; j && xd[--j] === 0;) xd[j] = BASE$1 - 1;
41192
41192
  --xd[j];
41193
- xd[i] += BASE;
41193
+ xd[i] += BASE$1;
41194
41194
  }
41195
41195
 
41196
41196
  xd[i] -= yd[i];
@@ -41419,8 +41419,8 @@ P$2.plus = P$2.add = function (y) {
41419
41419
 
41420
41420
  // Only start adding at yd.length - 1 as the further digits of xd can be left as they are.
41421
41421
  for (carry = 0; i;) {
41422
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
41423
- xd[i] %= BASE;
41422
+ carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE$1 | 0;
41423
+ xd[i] %= BASE$1;
41424
41424
  }
41425
41425
 
41426
41426
  if (carry) {
@@ -41718,11 +41718,11 @@ P$2.times = P$2.mul = function (y) {
41718
41718
  carry = 0;
41719
41719
  for (k = xdL + i; k > i;) {
41720
41720
  t = r[k] + yd[i] * xd[k - i - 1] + carry;
41721
- r[k--] = t % BASE | 0;
41722
- carry = t / BASE | 0;
41721
+ r[k--] = t % BASE$1 | 0;
41722
+ carry = t / BASE$1 | 0;
41723
41723
  }
41724
41724
 
41725
- r[k] = (r[k] + carry) % BASE | 0;
41725
+ r[k] = (r[k] + carry) % BASE$1 | 0;
41726
41726
  }
41727
41727
 
41728
41728
  // Remove trailing zeros.
@@ -42548,7 +42548,7 @@ var divide$1 = (function () {
42548
42548
  logBase = 1;
42549
42549
  e = x.e - y.e;
42550
42550
  } else {
42551
- base = BASE;
42551
+ base = BASE$1;
42552
42552
  logBase = LOG_BASE;
42553
42553
  e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
42554
42554
  }
@@ -42871,13 +42871,13 @@ var divide$1 = (function () {
42871
42871
  // if i != k the length has increased.
42872
42872
  if (i != k) {
42873
42873
  x.e++;
42874
- if (xd[0] == BASE) xd[0] = 1;
42874
+ if (xd[0] == BASE$1) xd[0] = 1;
42875
42875
  }
42876
42876
 
42877
42877
  break;
42878
42878
  } else {
42879
42879
  xd[xdi] += k;
42880
- if (xd[xdi] != BASE) break;
42880
+ if (xd[xdi] != BASE$1) break;
42881
42881
  xd[xdi--] = 0;
42882
42882
  k = 1;
42883
42883
  }
@@ -43453,7 +43453,7 @@ function parseOther(x, str) {
43453
43453
  divisor = intPow(Ctor, new Ctor(base), i, i * 2);
43454
43454
  }
43455
43455
 
43456
- xd = convertBase(str, base, BASE);
43456
+ xd = convertBase(str, base, BASE$1);
43457
43457
  xe = xd.length - 1;
43458
43458
 
43459
43459
  // Remove trailing zeros.
@@ -49375,29 +49375,114 @@ const TasGraphSchema = z.looseObject({
49375
49375
  totalEdges: z.number().optional(),
49376
49376
  });
49377
49377
 
49378
+ /**
49379
+ * Attribute value the TAS write interface accepts: a string or a list of
49380
+ * strings (`docs/data-store-doc/tas-rest.html`, "Write Interface").
49381
+ */
49382
+ const TasStoreAttributeValueSchema = z
49383
+ .union([z.string(), z.array(z.string())])
49384
+ .describe('Attribute value: a string or an array of strings');
49385
+ /**
49386
+ * Request-side vertex for `POST /tas/graph/store`.
49387
+ *
49388
+ * Ingestion identifies a vertex by `externalId` only — a vertex being created
49389
+ * has no numeric id yet (`docs/data-store-doc/tas-index.html` §2.2, "ingestion
49390
+ * tasks should use external ID only") — so this deliberately differs from the
49391
+ * response-side `TasVertexSchema`, which requires `id`.
49392
+ */
49393
+ const TasStoreVertexSchema = z.looseObject({
49394
+ externalId: TasExternalIdSchema.describe('Ingestion identity of the vertex (`<LAYER>:<TYPE>:…`); the only id a producer supplies'),
49395
+ id: z
49396
+ .number()
49397
+ .optional()
49398
+ .describe('Numeric id; only meaningful when updating a vertex the platform already holds'),
49399
+ startTime: z.number().optional().describe('Epoch milliseconds'),
49400
+ endTime: z.number().optional().describe('Epoch milliseconds'),
49401
+ attributes: z
49402
+ .object({
49403
+ name: z.string().describe('Display name — required by the platform'),
49404
+ type: z
49405
+ .string()
49406
+ .describe('Vertex type, e.g. AGENT or ACTIVEMQ_DESTINATION — required by the platform'),
49407
+ })
49408
+ .catchall(TasStoreAttributeValueSchema)
49409
+ .describe('Complete attribute set. A GATHERED store replaces the previous attribute set wholesale, so always send every attribute'),
49410
+ attributesType: z
49411
+ .record(z.string(), TasAttributeTypeSchema)
49412
+ .optional()
49413
+ .describe('Per-attribute store type override (GATHERED, CUSTOM, DECORATED, HIDDEN)'),
49414
+ });
49415
+ /**
49416
+ * Request-side edge for `POST /tas/graph/store`: endpoints are named by
49417
+ * `externalId`; numeric ids are optional and only apply to edges between
49418
+ * vertices the platform already holds. The platform silently drops an edge
49419
+ * whose endpoint vertex does not exist.
49420
+ */
49421
+ const TasStoreEdgeSchema = z.looseObject({
49422
+ sourceExternalId: TasExternalIdSchema.describe('externalId of the source (parent) vertex'),
49423
+ targetExternalId: TasExternalIdSchema.describe('externalId of the target (child) vertex'),
49424
+ flowExternalId: TasExternalIdSchema.optional().describe('externalId of the flow vertex, when the edge belongs to a flow'),
49425
+ wireExternalId: TasExternalIdSchema.optional().describe('externalId of the wire vertex, when the edge belongs to a wire'),
49426
+ sourceId: z.number().optional().describe('Numeric id of the source vertex (existing vertices only)'),
49427
+ targetId: z.number().optional().describe('Numeric id of the target vertex (existing vertices only)'),
49428
+ flowId: z.number().optional().describe('Numeric id of the flow vertex'),
49429
+ wireId: z.number().optional().describe('Numeric id of the wire vertex'),
49430
+ startTime: z.number().optional().describe('Epoch milliseconds'),
49431
+ endTime: z.number().optional().describe('Epoch milliseconds'),
49432
+ attributes: z
49433
+ .record(z.string(), TasStoreAttributeValueSchema)
49434
+ .optional()
49435
+ .describe('Edge attributes (e.g. `semantic`)'),
49436
+ attributesType: z
49437
+ .record(z.string(), TasAttributeTypeSchema)
49438
+ .optional()
49439
+ .describe('Per-attribute store type override'),
49440
+ });
49441
+ /** The graph body of a store request: externalId-keyed vertices and edges. */
49442
+ const TasStoreGraphSchema = z.looseObject({
49443
+ vertices: z.array(TasStoreVertexSchema).optional().describe('Vertices to create or update'),
49444
+ edges: z.array(TasStoreEdgeSchema).optional().describe('Edges to create or update'),
49445
+ });
49378
49446
  const TasStoreGraphInputSchema = z.looseObject({
49379
- includeSuccessResult: z.boolean().optional(),
49380
- ttl: z.number().optional(),
49381
- endTimeAllowedThreshold: z.number().optional(),
49382
- storeType: TasAttributeTypeSchema.optional(),
49383
- graph: TasGraphSchema,
49447
+ includeSuccessResult: z
49448
+ .boolean()
49449
+ .optional()
49450
+ .describe('Echo the stored graph back in the response'),
49451
+ ttl: z
49452
+ .number()
49453
+ .optional()
49454
+ .describe('Time to live in milliseconds for every vertex in this request; omitted = the platform default (24 h). One ttl per request'),
49455
+ endTimeAllowedThreshold: z.number().optional().describe('Platform option; see tas-rest.html'),
49456
+ storeType: TasAttributeTypeSchema.optional().describe('Attribute store type for the whole request (default GATHERED)'),
49457
+ graph: TasStoreGraphSchema,
49384
49458
  });
49385
49459
  const TasStoreChangeSchema = z.looseObject({
49386
49460
  changeType: z.string().optional(),
49387
49461
  id: z.unknown().optional(),
49388
49462
  });
49463
+ /**
49464
+ * A vertex or edge the platform refused, echoed back as it was sent (so it
49465
+ * carries the request-side externalId shape, not a numeric id).
49466
+ */
49467
+ const TasStoreFailedObjectSchema = z.looseObject({
49468
+ externalId: TasExternalIdSchema.optional(),
49469
+ sourceExternalId: TasExternalIdSchema.optional(),
49470
+ targetExternalId: TasExternalIdSchema.optional(),
49471
+ id: z.number().optional(),
49472
+ attributes: z.record(z.string(), z.unknown()).optional(),
49473
+ });
49389
49474
  const TasStoreGraphResponseSchema = z.looseObject({
49390
49475
  graph: TasGraphSchema.optional(),
49391
49476
  failedVertices: z
49392
49477
  .array(z.looseObject({
49393
- object: TasVertexSchema,
49478
+ object: TasStoreFailedObjectSchema,
49394
49479
  code: z.string().optional(),
49395
49480
  message: z.string().optional(),
49396
49481
  }))
49397
49482
  .optional(),
49398
49483
  failedEdges: z
49399
49484
  .array(z.looseObject({
49400
- object: TasEdgeSchema,
49485
+ object: TasStoreFailedObjectSchema,
49401
49486
  code: z.string().optional(),
49402
49487
  message: z.string().optional(),
49403
49488
  }))
@@ -60084,6 +60169,24 @@ var LogIngest;
60084
60169
  return LogIngest.RESERVED_ADDITIONAL_FIELDS.includes(name.toLowerCase());
60085
60170
  }
60086
60171
  LogIngest.isReservedLogField = isReservedLogField;
60172
+ /**
60173
+ * Thrown by `DxSaasService.resolveLogIngestionURL` when no log gateway can
60174
+ * be determined. `definitive` is true when the profile itself rules an
60175
+ * endpoint out (unparseable or on-premise gateway, Log Analytics absent or
60176
+ * not provisioned) and false when only the products lookup failed — a
60177
+ * producer keeps shipping off for the process in the first case and retries
60178
+ * later in the second. The message names the reason and how to set
60179
+ * `dxLogIngestionURL`.
60180
+ */
60181
+ class LogIngestionEndpointError extends Error {
60182
+ definitive;
60183
+ constructor(message, definitive) {
60184
+ super(message);
60185
+ this.definitive = definitive;
60186
+ this.name = 'LogIngestionEndpointError';
60187
+ }
60188
+ }
60189
+ LogIngest.LogIngestionEndpointError = LogIngestionEndpointError;
60087
60190
  LogIngest.LogIngestOptionsSchema = z.looseObject({
60088
60191
  logtype: z
60089
60192
  .string()
@@ -60118,7 +60221,7 @@ var LogIngest;
60118
60221
  file: z
60119
60222
  .string()
60120
60223
  .optional()
60121
- .describe('Source file label (default: `"dx-do.cli"`)'),
60224
+ .describe('Source file label, typically a logger name (default: `"dx-do.cli"`). A value without a dot gets `.log` appended: the platform only parses a dotted source file, and an undotted one corrupts the stored `message`, `file` and `tags` (#620).'),
60122
60225
  ip: z
60123
60226
  .string()
60124
60227
  .optional()
@@ -60598,6 +60701,12 @@ var OIAlarm;
60598
60701
  };
60599
60702
  })(OIAlarm || (OIAlarm = {}));
60600
60703
 
60704
+ var CreateServices;
60705
+ (function (CreateServices) {
60706
+ /** The service kinds the platform recognises, in wire casing (`servicerepo/filters` catalog). */
60707
+ CreateServices.SERVICE_TYPES = ['Service', 'Application', 'Group'];
60708
+ })(CreateServices || (CreateServices = {}));
60709
+
60601
60710
  /**
60602
60711
  * The `service export` / `service export-hierarchy` file format and the
60603
60712
  * `service import` boundary validator.
@@ -60678,6 +60787,7 @@ var ServiceTransform;
60678
60787
  attributes: {
60679
60788
  type: 'saService',
60680
60789
  name: a.name,
60790
+ serviceType: normalizeServiceType(a.serviceType),
60681
60791
  state: 'ACTIVE',
60682
60792
  maintenance: a.maintenance ?? false,
60683
60793
  situationsIncludeChildServices: a.situationsIncludeChildServices ?? false,
@@ -60693,6 +60803,80 @@ var ServiceTransform;
60693
60803
  };
60694
60804
  }
60695
60805
  ServiceTransform.retrievedToServiceVertex = retrievedToServiceVertex;
60806
+ const SERVICE_TYPE_BY_LOWER = Object.fromEntries(CreateServices.SERVICE_TYPES.map((t) => [t.toLowerCase(), t]));
60807
+ /**
60808
+ * Canonicalise a read-back `serviceType` (any casing). Missing or unknown
60809
+ * values map to `Service`, the server's default for records that predate
60810
+ * the field.
60811
+ */
60812
+ function normalizeServiceType(value) {
60813
+ if (typeof value !== 'string')
60814
+ return 'Service';
60815
+ return SERVICE_TYPE_BY_LOWER[value.toLowerCase()] ?? 'Service';
60816
+ }
60817
+ ServiceTransform.normalizeServiceType = normalizeServiceType;
60818
+ /** Parse a user-supplied service type (`service|application|group`, any casing); throws on anything else. */
60819
+ function parseServiceType(input) {
60820
+ const t = SERVICE_TYPE_BY_LOWER[input.trim().toLowerCase()];
60821
+ if (!t) {
60822
+ throw new Error(`Unknown service type '${input}' — expected one of ${CreateServices.SERVICE_TYPES.map((x) => x.toLowerCase()).join(', ')}`);
60823
+ }
60824
+ return t;
60825
+ }
60826
+ ServiceTransform.parseServiceType = parseServiceType;
60827
+ function list(xs) {
60828
+ return `[${xs.join(', ')}]`;
60829
+ }
60830
+ function sameSet(a, b) {
60831
+ const sa = [...a].sort();
60832
+ const sb = [...b].sort();
60833
+ return sa.length === sb.length && sa.every((x, i) => x === sb[i]);
60834
+ }
60835
+ function propPairs(ps) {
60836
+ return ps.map((p) => `${p.name}=${p.value}`);
60837
+ }
60838
+ /**
60839
+ * Apply an attribute patch to ONE vertex of a store body (in place) and return
60840
+ * human-readable change lines; an empty result means nothing differs. Fields
60841
+ * omitted from the patch keep their values; `tags` / `customProperties` are
60842
+ * replaced wholesale (what the UI editor sends), not merged. The name and the
60843
+ * `serviceType` are never touched — both are fixed at creation (the server
60844
+ * does not allow renames and ignores a type change on a re-save).
60845
+ *
60846
+ * @throws Error if `serviceName` is not among `body.vertices`.
60847
+ */
60848
+ function applyServiceUpdate(body, serviceName, patch) {
60849
+ const target = body.vertices.find((v) => v.attributes.name === serviceName);
60850
+ if (!target) {
60851
+ throw new Error(`No service with name '${serviceName}' found`);
60852
+ }
60853
+ const a = target.attributes;
60854
+ const changes = [];
60855
+ if (patch.description !== undefined && patch.description !== a.description) {
60856
+ changes.push(`description: '${a.description}' -> '${patch.description}'`);
60857
+ a.description = patch.description;
60858
+ }
60859
+ if (patch.location !== undefined && patch.location !== a.location) {
60860
+ changes.push(`location: '${a.location}' -> '${patch.location}'`);
60861
+ a.location = patch.location;
60862
+ }
60863
+ if (patch.tags !== undefined && !sameSet(patch.tags, a.tags)) {
60864
+ changes.push(`tags: ${list(a.tags)} -> ${list(patch.tags)}`);
60865
+ a.tags = [...patch.tags];
60866
+ }
60867
+ if (patch.customProperties !== undefined &&
60868
+ !sameSet(propPairs(patch.customProperties), propPairs(a.customProperties))) {
60869
+ changes.push(`properties: ${list(propPairs(a.customProperties))} -> ${list(propPairs(patch.customProperties))}`);
60870
+ a.customProperties = patch.customProperties.map((p) => ({ ...p }));
60871
+ }
60872
+ if (patch.situationsIncludeChildServices !== undefined &&
60873
+ patch.situationsIncludeChildServices !== a.situationsIncludeChildServices) {
60874
+ changes.push(`includeChildServices: ${a.situationsIncludeChildServices} -> ${patch.situationsIncludeChildServices}`);
60875
+ a.situationsIncludeChildServices = patch.situationsIncludeChildServices;
60876
+ }
60877
+ return changes;
60878
+ }
60879
+ ServiceTransform.applyServiceUpdate = applyServiceUpdate;
60696
60880
  /**
60697
60881
  * Build NAME-keyed store edges from a topology graph, preserving weights +
60698
60882
  * semantic. Endpoints are mapped from `SA:<uuid>` to service name via the
@@ -63226,6 +63410,506 @@ var Situations;
63226
63410
  (function (Situations) {
63227
63411
  })(Situations || (Situations = {}));
63228
63412
 
63413
+ /**
63414
+ * Custom situation policies — the product calls them "custom situation
63415
+ * definitions"; the API calls them clustering policies (`clusteringpolicy`).
63416
+ *
63417
+ * Situations are alarm clusters. A policy controls how and when a cluster
63418
+ * forms, in three independent parts over one alarm stream:
63419
+ *
63420
+ * 1. `filterCriteria` — which raw alarms the policy may cluster at all.
63421
+ * 2. `rcFilterCriteria` — which of those are root-cause candidates (nullable).
63422
+ * 3. `clusteringCriteria` — the ranked fields the grouping keys on, each with
63423
+ * a match weight and optional per-field properties.
63424
+ *
63425
+ * Shapes measured from HARs of the lab tenant's UI
63426
+ * (`docs/internal/custom-situation.har`, `custom-situation-preview.har`,
63427
+ * 2026-09-20) plus a live preview probe against seeded alarms.
63428
+ */
63429
+ // ---------------------------------------------------------------------------
63430
+ // Vocabularies
63431
+ // ---------------------------------------------------------------------------
63432
+ /**
63433
+ * Conditions accepted in criteria atoms. `equals`, `contains` and `not_empty`
63434
+ * are observed in UI-authored policies; the rest come from the platform's
63435
+ * shared alarm-filter component, which the policy editor reuses.
63436
+ */
63437
+ const CLUSTERING_POLICY_CONDITIONS = [
63438
+ 'equals',
63439
+ 'not_equals',
63440
+ 'contains',
63441
+ 'not_contains',
63442
+ 'starts_with',
63443
+ 'ends_with',
63444
+ 'not_empty',
63445
+ 'exists',
63446
+ 'does_not_exists',
63447
+ 'greater_than',
63448
+ 'less_than',
63449
+ ];
63450
+ /** `not_empty` / `exists` / `does_not_exists` are presence tests; the UI sends `*` as their value. */
63451
+ const CLUSTERING_POLICY_PRESENCE_CONDITIONS = [
63452
+ 'not_empty',
63453
+ 'exists',
63454
+ 'does_not_exists',
63455
+ ];
63456
+ const CLUSTERING_POLICY_STATUSES = ['ACTIVE', 'INACTIVE'];
63457
+ /**
63458
+ * The preview windows the UI offers, in seconds. `time=` on the preview call
63459
+ * accepts any integer; these are the labelled choices.
63460
+ */
63461
+ const CLUSTERING_POLICY_PREVIEW_RANGES = {
63462
+ '1h': 3600,
63463
+ '4h': 14400,
63464
+ '8h': 28800,
63465
+ '24h': 86400,
63466
+ '3d': 259200,
63467
+ '1w': 604800,
63468
+ };
63469
+ /** `updatedBy` values the platform stamps on its own seeded policies. */
63470
+ const CLUSTERING_POLICY_BUILTIN_AUTHORS = ['DefaultPolicy', 'DefaultSpectrum'];
63471
+ // ---------------------------------------------------------------------------
63472
+ // Criteria
63473
+ // ---------------------------------------------------------------------------
63474
+ /**
63475
+ * Per-field clustering options. `hierarchy` makes a service match walk the
63476
+ * service hierarchy; `leftElementTrim` drops N leading dot-separated elements
63477
+ * of the value before comparing (e.g. trimming a host's subdomain).
63478
+ */
63479
+ const ClusteringCriterionPropertiesSchema = z.looseObject({
63480
+ hierarchy: z.boolean().optional().describe('Match up the service hierarchy rather than on the exact service'),
63481
+ leftElementTrim: z
63482
+ .number()
63483
+ .int()
63484
+ .optional()
63485
+ .describe('Drop this many leading dot-separated elements of the value before matching'),
63486
+ });
63487
+ /** One ranked clustering field and how strongly its values must match. */
63488
+ const ClusteringCriterionSchema = z.looseObject({
63489
+ field: z
63490
+ .string()
63491
+ .min(1)
63492
+ .describe('Clustering field name from `policyfields.clusteringFields` (host, message, product, services_impacted, severity)'),
63493
+ value: z
63494
+ .number()
63495
+ .min(0)
63496
+ .max(100)
63497
+ .describe('Match weight as a percentage; the field catalog gives the allowed [min, max] per field'),
63498
+ rank: z.number().int().min(1).describe('Evaluation order, 1-based; lower ranks are applied first'),
63499
+ properties: ClusteringCriterionPropertiesSchema.optional().describe('Optional per-field matching options'),
63500
+ });
63501
+ /**
63502
+ * Criteria are the platform's shared AND-of-OR-groups filter tree — the same
63503
+ * shape as a notification policy's `filterExpressionV1`, so the atom and
63504
+ * expression schemas are shared. The UI emits one OR-group per field.
63505
+ */
63506
+ const ClusteringPolicyCriteriaSchema = PolicyFilterExpressionSchema;
63507
+ /**
63508
+ * An unset criteria tree. The server does not store `null` — it normalizes an
63509
+ * omitted or null `rcFilterCriteria` to an empty object and returns `{}`,
63510
+ * which is not a valid atom / and / or node. Measured on the lab tenant.
63511
+ */
63512
+ const EmptyCriteriaSchema = z.strictObject({});
63513
+ /** A criteria tree as the server may return it: a real tree, `{}`, or null. */
63514
+ const StoredCriteriaSchema = z.union([ClusteringPolicyCriteriaSchema, EmptyCriteriaSchema]);
63515
+ /** True for the server's `{}` representation of "no criteria", and for null/undefined. */
63516
+ function isEmptyCriteria(criteria) {
63517
+ if (criteria === null || criteria === undefined) {
63518
+ return true;
63519
+ }
63520
+ return typeof criteria === 'object' && Object.keys(criteria).length === 0;
63521
+ }
63522
+ // ---------------------------------------------------------------------------
63523
+ // The policy record
63524
+ // ---------------------------------------------------------------------------
63525
+ /**
63526
+ * A policy as the server returns it. `filterSearchFields`,
63527
+ * `rcFilterSearchFields` and `clusteringSearchFields` are derived by the
63528
+ * server from the criteria — never send them.
63529
+ */
63530
+ const ClusteringPolicySchema = z.looseObject({
63531
+ policy_id: z
63532
+ .string()
63533
+ .describe('Policy id. NOTE: an update can mint a NEW id (it does for a policy created ACTIVE); the name is the stable handle'),
63534
+ tenant_id: z.string().optional().describe('Owning tenant, uppercase-hyphenated'),
63535
+ name: z.string().describe('Policy name as shown in the UI'),
63536
+ situation_custom_name: z
63537
+ .string()
63538
+ .optional()
63539
+ .describe('Naming template for situations this policy creates, e.g. "{rootcausealarm(product)}"'),
63540
+ priority: z
63541
+ .number()
63542
+ .describe('Evaluation order, ascending; the UI seeds new policies with a creation timestamp so they evaluate last'),
63543
+ version: z.number().optional().describe('Increments on every update'),
63544
+ created: z.number().optional().describe('Creation time, epoch milliseconds'),
63545
+ lastUpdated: z.number().optional().describe('Last update time, epoch milliseconds'),
63546
+ updatedBy: z.string().optional().describe('User or platform component that last wrote the policy'),
63547
+ stableWindow: z
63548
+ .number()
63549
+ .describe('Minutes a cluster stays open with no new alarms before it is considered stable'),
63550
+ extensionWindow: z
63551
+ .number()
63552
+ .optional()
63553
+ .describe('Minutes a stable cluster may still absorb a late alarm; 0 disables extension'),
63554
+ maxStableWindow: z
63555
+ .number()
63556
+ .optional()
63557
+ .describe('Hard ceiling in minutes on how long a cluster may stay open; 0 means no ceiling'),
63558
+ status: z.string().describe('ACTIVE (the policy runs) or INACTIVE (it is saved but not applied)'),
63559
+ filterCriteria: StoredCriteriaSchema.describe('Which raw alarms this policy may cluster'),
63560
+ rcFilterCriteria: StoredCriteriaSchema.nullable()
63561
+ .optional()
63562
+ .describe('Which matched alarms count as root-cause candidates; the server returns {} when unset'),
63563
+ clusteringCriteria: z
63564
+ .array(ClusteringCriterionSchema)
63565
+ .describe('Ranked fields the clustering groups on'),
63566
+ filterSearchFields: z.array(z.string()).optional().describe('Server-derived: fields used in filterCriteria'),
63567
+ rcFilterSearchFields: z.array(z.string()).optional().describe('Server-derived: fields used in rcFilterCriteria'),
63568
+ clusteringSearchFields: z.array(z.string()).optional().describe('Server-derived: fields used in clusteringCriteria'),
63569
+ });
63570
+ /**
63571
+ * The envelope of `POST clusteringpolicy/search` — and of
63572
+ * `GET clusteringpolicy/{id}`, which returns the same shape with one result.
63573
+ */
63574
+ const ClusteringPolicySearchResponseSchema = z.looseObject({
63575
+ searchPolicyResults: z.array(ClusteringPolicySchema).describe('The matching policies'),
63576
+ displayCount: z.number().describe('Total number of policies matching the search'),
63577
+ });
63578
+ const ClusteringPolicySearchRequestSchema = z.looseObject({
63579
+ recordFrom: z.number().int().min(0).describe('Zero-based index of the first record'),
63580
+ recordTo: z.number().int().min(1).describe('Exclusive upper bound of the record window'),
63581
+ sortCol: z.string().describe('Sort spec, e.g. "priority:asc"'),
63582
+ });
63583
+ /**
63584
+ * The body of `PUT clusteringpolicy`. There is no POST: the presence of
63585
+ * `policy_id` is the only thing that distinguishes an update from a create.
63586
+ */
63587
+ const ClusteringPolicyWriteBodySchema = z.looseObject({
63588
+ policy_id: z.string().optional().describe('Present on update, absent on create'),
63589
+ name: z.string().min(1).describe('Policy name'),
63590
+ situation_custom_name: z.string().describe('Naming template; empty string when unset'),
63591
+ stableWindow: z.number().int().describe('Minutes before a cluster is stable'),
63592
+ maxStableWindow: z.number().int().describe('Ceiling in minutes on cluster lifetime; 0 for none'),
63593
+ extensionWindow: z.number().int().describe('Minutes a stable cluster may still absorb alarms; 0 for none'),
63594
+ status: z.enum(CLUSTERING_POLICY_STATUSES).describe('ACTIVE or INACTIVE'),
63595
+ filterCriteria: ClusteringPolicyCriteriaSchema.describe('Which raw alarms this policy may cluster'),
63596
+ rcFilterCriteria: StoredCriteriaSchema.nullable()
63597
+ .optional()
63598
+ .describe('Root-cause candidates; null when unset'),
63599
+ clusteringCriteria: z.array(ClusteringCriterionSchema).describe('Ranked clustering fields'),
63600
+ priority: z.number().describe('Evaluation order, ascending'),
63601
+ version: z.number().optional().describe('Update only: echoed from the fetched policy'),
63602
+ created: z.number().optional().describe('Update only: echoed from the fetched policy'),
63603
+ lastUpdated: z.number().optional().describe('Update only: echoed from the fetched policy'),
63604
+ updatedBy: z.string().optional().describe('Update only: echoed from the fetched policy'),
63605
+ });
63606
+ // ---------------------------------------------------------------------------
63607
+ // Preview
63608
+ // ---------------------------------------------------------------------------
63609
+ /** For one clustering field: every value seen, and those that actually matched. */
63610
+ const ClusteringCriteriaValuesSchema = z.record(z.string(), z.looseObject({
63611
+ allValues: z.array(z.string()).describe('Every value of this field across the previewed alarms'),
63612
+ matchingValues: z.array(z.string()).describe('The values that met the field weight'),
63613
+ }));
63614
+ /**
63615
+ * One alarm template inside a previewed cluster. `alarms` carries the full raw
63616
+ * alarm documents, so a preview response grows quickly with `size` — render a
63617
+ * summary, never the whole thing.
63618
+ */
63619
+ const ClusteringPreviewTemplateSchema = z.looseObject({
63620
+ templateId: z.number().describe('Template id within the preview'),
63621
+ clusterId: z.number().describe('Id of the cluster this template belongs to'),
63622
+ message: z.string().optional().describe('Normalized template message (variable parts removed)'),
63623
+ earliestAlarmMessage: z.string().optional().describe('Verbatim message of the earliest alarm'),
63624
+ host: z.string().optional().describe('Host of the template'),
63625
+ product: z.string().optional().describe('Source product of the template'),
63626
+ severity: z.string().optional().describe('Highest severity in the template'),
63627
+ lastAlarmsCount: z.number().optional().describe('Alarms in the template'),
63628
+ highestSeverityAlarmCount: z.number().optional().describe('Alarms at the highest severity'),
63629
+ highestSeverityEarliestAlarmTime: z.number().optional().describe('Epoch ms of the earliest highest-severity alarm'),
63630
+ alarms: z.array(z.unknown()).optional().describe('Full raw alarm documents — large; summarize before output'),
63631
+ totalAlarmIds: z.array(z.string()).optional().describe('alarm_unique_id of every alarm in the template'),
63632
+ closedAlarmIds: z.array(z.string()).optional().describe('Subset of totalAlarmIds already closed'),
63633
+ servicesImpacted: z.array(z.unknown()).optional().describe('Services the alarms in this template impact'),
63634
+ earliestSourceAlarmURL: z.string().optional().describe('Deep link to the earliest alarm in its source product'),
63635
+ customAttributeMap: z.record(z.string(), z.unknown()).optional().describe('Custom alarm attributes carried through'),
63636
+ templateMetaDataMap: z
63637
+ .record(z.string(), z.looseObject({
63638
+ alarmCount: z.number().describe('Alarms at this severity'),
63639
+ earliestAlarmTime: z.number().describe('Epoch ms of the earliest alarm at this severity'),
63640
+ earliestAlarmMessage: z.string().optional().describe('Message of that earliest alarm'),
63641
+ }))
63642
+ .optional()
63643
+ .describe('Per-severity rollup for the template'),
63644
+ });
63645
+ /** One cluster the policy would have produced over the previewed window. */
63646
+ const ClusteringPreviewClusterSchema = z.looseObject({
63647
+ clusterId: z.number().describe('Id of the cluster within this preview'),
63648
+ clusterName: z.string().optional().describe('Name the policy would give the situation'),
63649
+ templates: z.array(ClusteringPreviewTemplateSchema).describe('Alarm templates grouped into this cluster'),
63650
+ totalTemplates: z.number().optional().describe('Templates in the cluster'),
63651
+ totalAlarms: z.number().optional().describe('Alarms in the cluster'),
63652
+ severity: z.string().optional().describe('Highest severity in the cluster'),
63653
+ product: z.array(z.string()).optional().describe('Distinct source products in the cluster'),
63654
+ mostImpacted_alarmId: z.string().optional().describe('alarm_unique_id of the most impacted alarm'),
63655
+ clusteringCriteriaValues: ClusteringCriteriaValuesSchema.optional().describe('Per clustering field: the values seen and the values that matched'),
63656
+ });
63657
+ /** Response of `PUT clusteringpolicy/preview?size=&time=`. */
63658
+ const ClusteringPolicyPreviewResponseSchema = z.looseObject({
63659
+ tenantId: z.string().optional().describe('Tenant the preview ran against'),
63660
+ clusteringList: z.array(ClusteringPreviewClusterSchema).describe('Clusters the policy would have produced'),
63661
+ totalAlarms: z.number().describe('Raw alarms matched by filterCriteria in the window'),
63662
+ totalClusters: z.number().describe('Situations the policy would have created'),
63663
+ totalTemplates: z.number().describe('Distinct alarm templates across all clusters'),
63664
+ noiseReductionPercent: z
63665
+ .number()
63666
+ .describe('Percentage fewer items an operator would see: 100 * (1 - totalClusters / totalAlarms)'),
63667
+ });
63668
+ // ---------------------------------------------------------------------------
63669
+ // Catalogs
63670
+ // ---------------------------------------------------------------------------
63671
+ /**
63672
+ * A catalog entry. `values` is NOT a closed vocabulary: for the window fields
63673
+ * it is `[min, max, default]` and for clustering fields `[min, max]`. Only
63674
+ * filtering fields use it as a value suggestion list.
63675
+ */
63676
+ const PolicyFieldSchema = z.looseObject({
63677
+ field: z.string().describe('Field name to use in criteria'),
63678
+ fieldDescription: z.string().describe('Human label the UI shows'),
63679
+ values: z.array(z.string()).optional().describe('Bounds or suggested values — see the schema note'),
63680
+ hideMoreOptions: z.boolean().optional().describe('UI hint; no CLI meaning'),
63681
+ });
63682
+ /** One custom-naming operation usable inside `situation_custom_name`. */
63683
+ const PolicyNamingOperationSchema = z.looseObject({
63684
+ opName: z.string().describe('Operation name as written in the template, e.g. "rootcausealarm"'),
63685
+ displayName: z.string().optional().describe('Human label'),
63686
+ parameters: z
63687
+ .array(z.looseObject({
63688
+ paramNumber: z.number().describe('1-based parameter position'),
63689
+ isMandatory: z.boolean().describe('Whether the parameter must be supplied'),
63690
+ type: z.string().describe('String or Integer'),
63691
+ defaultValue: z.string().optional().describe('Value used when the parameter is omitted'),
63692
+ }))
63693
+ .optional()
63694
+ .describe('Positional parameters the operation accepts'),
63695
+ supportedFields: z
63696
+ .array(z.looseObject({ field: z.string(), fieldDescription: z.string().optional() }))
63697
+ .optional()
63698
+ .describe('Alarm fields this operation may be applied to'),
63699
+ });
63700
+ /** Response of `GET policyfields` — everything the policy editor needs. */
63701
+ const PolicyFieldsResponseSchema = z.looseObject({
63702
+ filteringFields: z.array(PolicyFieldSchema).describe('Alarm fields usable in filterCriteria / rcFilterCriteria'),
63703
+ clusteringFields: z.array(PolicyFieldSchema).describe('Fields usable in clusteringCriteria; values are [min, max] weights'),
63704
+ operationsDefinition: z.array(PolicyNamingOperationSchema).describe('Operations usable in situation_custom_name'),
63705
+ stableWindow: PolicyFieldSchema.describe('Bounds for stableWindow: values are [min, max, default] minutes'),
63706
+ maxStableWindow: PolicyFieldSchema.describe('Bounds for maxStableWindow: values are [min, max, default] minutes'),
63707
+ extensionWindow: PolicyFieldSchema.describe('Bounds for extensionWindow: values are [min, max, default] minutes'),
63708
+ });
63709
+ /** Response of `GET tenantConfigAttributes` — tenant-wide clustering knobs. */
63710
+ const TenantConfigAttributeSchema = z.looseObject({
63711
+ key: z
63712
+ .string()
63713
+ .describe('Clustering engine attribute name. Internal tuning surface, not a documented API: only ' +
63714
+ 'enable_algorithm_cluster has verified semantics — treat every other key as unverified'),
63715
+ value: z
63716
+ .unknown()
63717
+ .describe('Attribute value; shape given by `type`. The server accepts out-of-range and nonsensical ' +
63718
+ 'values without error, so a bad write fails silently and shows up later as broken clustering'),
63719
+ type: z.string().describe('double, boolean, integer or list — a wrong type corrupts that attribute'),
63720
+ });
63721
+ const TenantConfigAttributesResponseSchema = z.looseObject({
63722
+ tenantId: z.string().optional().describe('Tenant the attributes belong to'),
63723
+ configAttrList: z.array(TenantConfigAttributeSchema).describe('The tenant clustering configuration'),
63724
+ });
63725
+ /**
63726
+ * The body of `PUT tenantConfigAttributes`. A **partial** update: send only the
63727
+ * attributes to change, not the whole list. Measured on the lab tenant.
63728
+ *
63729
+ * **These attributes are the clustering engine's internal tuning surface, not a
63730
+ * documented public API.** Of the ~three dozen keys a tenant exposes, only
63731
+ * {@link ALGORITHMIC_SITUATIONS_KEY} has semantics established here; the rest
63732
+ * are unverified, the server accepts nonsensical values without complaint, the
63733
+ * effect is tenant-wide and continuous, and there is no reset-to-defaults. Read
63734
+ * the hazards in full on `ClusteringPolicyService.setTenantConfigAttributes`
63735
+ * before writing anything else.
63736
+ */
63737
+ const TenantConfigAttributesWriteBodySchema = z.looseObject({
63738
+ tenantId: z.string().min(1).describe('Tenant to write to, as returned by the GET'),
63739
+ configAttrList: z
63740
+ .array(TenantConfigAttributeSchema)
63741
+ .min(1)
63742
+ .describe('Only the attributes being changed; omitted keys keep their value. Send the narrowest set ' +
63743
+ 'that does the job — this is a tenant-wide write with no reset-to-defaults'),
63744
+ });
63745
+ /** Response of `PUT tenantConfigAttributes`. */
63746
+ const TenantConfigAttributesWriteResponseSchema = z.looseObject({
63747
+ Status: z.string().describe('"Success" when the attributes were written'),
63748
+ });
63749
+ /**
63750
+ * The tenant attribute behind the UI's "Enable Algorithmic Situations" toggle.
63751
+ *
63752
+ * When it is on, the platform clusters alarms with its own algorithm and custom
63753
+ * situation policies are ignored or behave unpredictably — the single most
63754
+ * common reason a correct-looking policy produces nothing.
63755
+ */
63756
+ const ALGORITHMIC_SITUATIONS_KEY = 'enable_algorithm_cluster';
63757
+ /** Reads one attribute out of a `tenantConfigAttributes` response. */
63758
+ function tenantConfigAttribute(config, key) {
63759
+ return (config.configAttrList ?? []).find((attribute) => attribute.key === key);
63760
+ }
63761
+ /**
63762
+ * Whether algorithmic situations are on for the tenant. `undefined` when the
63763
+ * attribute is absent, which is not the same as "off" — say so rather than
63764
+ * guessing.
63765
+ */
63766
+ function algorithmicSituationsEnabled(config) {
63767
+ const attribute = tenantConfigAttribute(config, ALGORITHMIC_SITUATIONS_KEY);
63768
+ return attribute === undefined ? undefined : attribute.value === true;
63769
+ }
63770
+ // ---------------------------------------------------------------------------
63771
+ // Helpers
63772
+ // ---------------------------------------------------------------------------
63773
+ /** Platform-seeded policies, which a tenant user should not be editing casually. */
63774
+ function isBuiltInClusteringPolicy(policy) {
63775
+ return CLUSTERING_POLICY_BUILTIN_AUTHORS.includes(policy.updatedBy ?? '');
63776
+ }
63777
+ /** `[min, max]` from a catalog entry's `values`, when it carries bounds. */
63778
+ function policyFieldBounds(entry) {
63779
+ const values = entry?.values;
63780
+ if (!values || values.length < 2) {
63781
+ return undefined;
63782
+ }
63783
+ const min = Number(values[0]);
63784
+ const max = Number(values[1]);
63785
+ return Number.isFinite(min) && Number.isFinite(max) ? { min, max } : undefined;
63786
+ }
63787
+ /**
63788
+ * The create body with the UI's defaults filled in. `priority` defaults to
63789
+ * the current epoch-ms the way the UI seeds it, which sorts a new policy
63790
+ * after every platform-seeded one.
63791
+ */
63792
+ function toClusteringPolicyWriteBody(input) {
63793
+ return {
63794
+ name: input.name,
63795
+ situation_custom_name: input.situationName ?? '',
63796
+ stableWindow: input.stableWindow ?? 30,
63797
+ maxStableWindow: input.maxStableWindow ?? 0,
63798
+ extensionWindow: input.extensionWindow ?? 0,
63799
+ status: input.status ?? 'ACTIVE',
63800
+ filterCriteria: input.filterCriteria,
63801
+ rcFilterCriteria: input.rcFilterCriteria ?? null,
63802
+ clusteringCriteria: input.clusteringCriteria,
63803
+ priority: input.priority ?? Date.now(),
63804
+ };
63805
+ }
63806
+ /** Renders `clusteringCriteria` as a short, comparable string for change lines. */
63807
+ function describeClusteringCriteria(criteria) {
63808
+ if (criteria.length === 0) {
63809
+ return '(none)';
63810
+ }
63811
+ return criteria
63812
+ .map((criterion) => {
63813
+ const properties = criterion.properties ?? {};
63814
+ const extras = Object.entries(properties)
63815
+ .filter(([, value]) => value !== undefined)
63816
+ .map(([key, value]) => `${key}=${String(value)}`);
63817
+ return `${criterion.field}@${criterion.value}${extras.length > 0 ? ` (${extras.join(', ')})` : ''}`;
63818
+ })
63819
+ .join(', ');
63820
+ }
63821
+ /**
63822
+ * The update body for an existing policy with only the patched fields changed;
63823
+ * everything else is echoed back verbatim, including the envelope fields the
63824
+ * server needs (`version`, `created`, `lastUpdated`, `updatedBy`).
63825
+ *
63826
+ * Returns human-readable `changes`; an empty list means nothing to save.
63827
+ */
63828
+ function buildClusteringPolicyUpdateBody(existing, patch) {
63829
+ const changes = [];
63830
+ const scalar = (label, current, next) => {
63831
+ if (next === undefined || next === current) {
63832
+ return current;
63833
+ }
63834
+ changes.push(`${label}: ${String(current)} -> ${String(next)}`);
63835
+ return next;
63836
+ };
63837
+ const name = scalar('name', existing.name, patch.name);
63838
+ const situationName = scalar('situationName', existing.situation_custom_name ?? '', patch.situationName);
63839
+ const stableWindow = scalar('stableWindow', existing.stableWindow, patch.stableWindow);
63840
+ const maxStableWindow = scalar('maxStableWindow', existing.maxStableWindow ?? 0, patch.maxStableWindow);
63841
+ const extensionWindow = scalar('extensionWindow', existing.extensionWindow ?? 0, patch.extensionWindow);
63842
+ const status = scalar('status', existing.status, patch.status);
63843
+ const priority = scalar('priority', existing.priority, patch.priority);
63844
+ let filterCriteria = existing.filterCriteria;
63845
+ if (patch.filterCriteria !== undefined) {
63846
+ changes.push('filter: replaced');
63847
+ filterCriteria = patch.filterCriteria;
63848
+ }
63849
+ // The server returns `{}` for an unset root-cause filter; normalize it back
63850
+ // to null so an untouched policy does not echo an invalid criteria tree.
63851
+ let rcFilterCriteria = isEmptyCriteria(existing.rcFilterCriteria)
63852
+ ? null
63853
+ : existing.rcFilterCriteria;
63854
+ if (patch.rcFilterCriteria !== undefined) {
63855
+ const cleared = patch.rcFilterCriteria === null;
63856
+ if (!cleared || rcFilterCriteria !== null) {
63857
+ changes.push(cleared ? 'rcFilter: cleared' : 'rcFilter: replaced');
63858
+ }
63859
+ rcFilterCriteria = patch.rcFilterCriteria;
63860
+ }
63861
+ let clusteringCriteria = existing.clusteringCriteria;
63862
+ if (patch.clusteringCriteria !== undefined) {
63863
+ const before = describeClusteringCriteria(existing.clusteringCriteria);
63864
+ const after = describeClusteringCriteria(patch.clusteringCriteria);
63865
+ if (before !== after) {
63866
+ changes.push(`clustering: ${before} -> ${after}`);
63867
+ clusteringCriteria = patch.clusteringCriteria;
63868
+ }
63869
+ }
63870
+ const body = {
63871
+ policy_id: existing.policy_id,
63872
+ name,
63873
+ situation_custom_name: situationName,
63874
+ stableWindow,
63875
+ maxStableWindow,
63876
+ extensionWindow,
63877
+ status,
63878
+ filterCriteria,
63879
+ rcFilterCriteria,
63880
+ clusteringCriteria,
63881
+ priority,
63882
+ };
63883
+ if (existing.version !== undefined) {
63884
+ body.version = existing.version;
63885
+ }
63886
+ if (existing.created !== undefined) {
63887
+ body.created = existing.created;
63888
+ }
63889
+ if (existing.lastUpdated !== undefined) {
63890
+ body.lastUpdated = existing.lastUpdated;
63891
+ }
63892
+ if (existing.updatedBy !== undefined) {
63893
+ body.updatedBy = existing.updatedBy;
63894
+ }
63895
+ return { body, changes };
63896
+ }
63897
+ /**
63898
+ * The seven-key subset `PUT clusteringpolicy/preview` accepts. Sending the
63899
+ * full write body is rejected, so the pick is deliberate.
63900
+ */
63901
+ function toClusteringPolicyPreviewBody(body) {
63902
+ return {
63903
+ clusteringCriteria: body.clusteringCriteria,
63904
+ filterCriteria: body.filterCriteria,
63905
+ rcFilterCriteria: body.rcFilterCriteria ?? null,
63906
+ stableWindow: body.stableWindow,
63907
+ status: body.status,
63908
+ name: body.name,
63909
+ situation_custom_name: body.situation_custom_name,
63910
+ };
63911
+ }
63912
+
63229
63913
  /**
63230
63914
  * One row of an SLI group's match criteria. SLI groups select the metrics they
63231
63915
  * watch by a list of these AND-ed filters (e.g. "Source contains bd605" AND
@@ -67122,6 +67806,46 @@ class AlarmService {
67122
67806
  alarmId: alarmId,
67123
67807
  });
67124
67808
  }
67809
+ /**
67810
+ * Finds one alarm, open or closed, by its ID (for an ingested alarm, the
67811
+ * `alarm_unique_id` it was sent with) among alarms from the last
67812
+ * `lookbackMs`, through the alarm search.
67813
+ *
67814
+ * @remarks Resolves `undefined` when there is no such alarm. {@link getAlarm}
67815
+ * cannot tell that apart from a failure: its endpoint answers HTTP 500 for an
67816
+ * unknown ID.
67817
+ */
67818
+ async findAlarm(alarmId, lookbackMs, requestOverrides = {}) {
67819
+ const now = Date.now();
67820
+ const body = {
67821
+ ...DEFAULT_ALARMS_REQUEST_BODY$1,
67822
+ timeFrom: now - lookbackMs,
67823
+ timeTo: now,
67824
+ pageNumber: 0,
67825
+ pageSize: 10,
67826
+ includeClosedAlarms: true,
67827
+ customFilter: {
67828
+ and: {
67829
+ expressions: [
67830
+ {
67831
+ or: {
67832
+ expressions: [
67833
+ {
67834
+ fieldDescription: 'Alarm Id',
67835
+ field: 'alarmId',
67836
+ value: alarmId,
67837
+ condition: 'equals',
67838
+ },
67839
+ ],
67840
+ },
67841
+ },
67842
+ ],
67843
+ },
67844
+ },
67845
+ };
67846
+ const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body, undefined, undefined, requestOverrides);
67847
+ return (response.alarms ?? []).find((alarm) => alarm.alarmId === alarmId);
67848
+ }
67125
67849
  /** Returns the overview (first alarm in a custom-filter search) for an alarm ID. */
67126
67850
  async getAlarmOverview(alarmId) {
67127
67851
  const singleAlarmQuery = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', {
@@ -70365,6 +71089,232 @@ class ChannelService {
70365
71089
  }
70366
71090
  }
70367
71091
 
71092
+ var NullSimpleLog$6 = Logging.NullSimpleLog;
71093
+ const BASE = 'oi/v2/api/clusteralarms';
71094
+ const POLICY = `${BASE}/clusteringpolicy`;
71095
+ /**
71096
+ * Custom situation policies (the product's "custom situation definitions";
71097
+ * the API's clustering policies). Backs the `situation *-custom-situation-policy`
71098
+ * CLI commands.
71099
+ *
71100
+ * Uses `oiPost`/`oiGet`/`oiPut`/`oiDelete` (OI namespace). Requests are
71101
+ * validated with `parse` (throws); responses with `safeParse` (warn + return
71102
+ * raw on mismatch).
71103
+ */
71104
+ class ClusteringPolicyService {
71105
+ dxSaasService;
71106
+ log;
71107
+ constructor(dxSaasService, log = new NullSimpleLog$6()) {
71108
+ this.dxSaasService = dxSaasService;
71109
+ this.log = log;
71110
+ }
71111
+ /**
71112
+ * Lists policies, lowest `priority` first.
71113
+ *
71114
+ * `POST oi/v2/api/clusteralarms/clusteringpolicy/search`
71115
+ *
71116
+ * @remarks The response is validated, not thrown on.
71117
+ * @throws ZodError when the request window is malformed.
71118
+ */
71119
+ async listPolicies(request = {}) {
71120
+ const body = {
71121
+ recordFrom: 0,
71122
+ recordTo: 1000,
71123
+ sortCol: 'priority:asc',
71124
+ ...request,
71125
+ };
71126
+ ClusteringPolicySearchRequestSchema.parse(body);
71127
+ const raw = await this.dxSaasService.oiPost(`${POLICY}/search`, body);
71128
+ const result = ClusteringPolicySearchResponseSchema.safeParse(raw);
71129
+ if (!result.success) {
71130
+ this.log.warn('ClusteringPolicySearchResponse validation warning:', result.error.message);
71131
+ }
71132
+ return raw;
71133
+ }
71134
+ /**
71135
+ * One policy by id.
71136
+ *
71137
+ * `GET oi/v2/api/clusteralarms/clusteringpolicy/{policyId}`
71138
+ *
71139
+ * @remarks The server returns the same `{searchPolicyResults, displayCount}`
71140
+ * envelope as the search, with one result; this unwraps it.
71141
+ * @throws Error when no policy has that id.
71142
+ */
71143
+ async getPolicy(policyId) {
71144
+ const raw = await this.dxSaasService.oiGet(`${POLICY}/${encodeURIComponent(policyId)}`);
71145
+ const result = ClusteringPolicySearchResponseSchema.safeParse(raw);
71146
+ if (!result.success) {
71147
+ this.log.warn('ClusteringPolicy detail validation warning:', result.error.message);
71148
+ }
71149
+ const policy = raw.searchPolicyResults?.[0];
71150
+ if (!policy) {
71151
+ throw new Error(`No custom situation policy with policyId '${policyId}' was found.`);
71152
+ }
71153
+ return policy;
71154
+ }
71155
+ /**
71156
+ * Creates or updates a policy. There is no POST — the presence of
71157
+ * `policy_id` in the body is what makes this an update.
71158
+ *
71159
+ * `PUT oi/v2/api/clusteralarms/clusteringpolicy`
71160
+ *
71161
+ * @remarks An update can return a policy with a **new** `policy_id` and an
71162
+ * incremented `version`, after which the id that was sent stops resolving.
71163
+ * Measured on the lab tenant: it does for a policy created ACTIVE, and does
71164
+ * not for one created INACTIVE (even after switching that one to ACTIVE).
71165
+ * Callers must read the id back off the response rather than reusing theirs.
71166
+ * @throws ZodError when the body is malformed.
71167
+ */
71168
+ async savePolicy(body) {
71169
+ ClusteringPolicyWriteBodySchema.parse(body);
71170
+ const raw = await this.dxSaasService.oiPut(POLICY, body);
71171
+ const result = ClusteringPolicySchema.safeParse(raw);
71172
+ if (!result.success) {
71173
+ this.log.warn('ClusteringPolicy save response validation warning:', result.error.message);
71174
+ }
71175
+ return raw;
71176
+ }
71177
+ /**
71178
+ * Permanently deletes a policy.
71179
+ *
71180
+ * `DELETE oi/v2/api/clusteralarms/clusteringpolicy/{policyId}`
71181
+ *
71182
+ * @remarks The server answers with an empty body; callers should verify by
71183
+ * re-listing rather than trusting the response.
71184
+ */
71185
+ async deletePolicy(policyId) {
71186
+ await this.dxSaasService.oiDelete(`${POLICY}/${encodeURIComponent(policyId)}`);
71187
+ }
71188
+ /**
71189
+ * Replays a candidate policy over recent alarms without saving it: how many
71190
+ * raw alarms it would match, how many situations it would create, and the
71191
+ * resulting noise reduction.
71192
+ *
71193
+ * `PUT oi/v2/api/clusteralarms/clusteringpolicy/preview?size=&time=`
71194
+ *
71195
+ * @param body - The policy to preview; only the seven keys the endpoint
71196
+ * accepts are sent (see `toClusteringPolicyPreviewBody`).
71197
+ * @param timeSeconds - Look-back window in seconds, e.g. 86400 for a day.
71198
+ * @param size - Maximum raw alarms to scan (the UI sends 1000).
71199
+ * @remarks `clusteringList[].templates[].alarms` carries whole raw alarm
71200
+ * documents, so the response grows quickly with `size` — summarize it.
71201
+ * @example
71202
+ * ```ts
71203
+ * const preview = await service.previewPolicy(body, 86400);
71204
+ * console.log(preview.totalAlarms, preview.totalClusters, preview.noiseReductionPercent);
71205
+ * ```
71206
+ */
71207
+ async previewPolicy(body, timeSeconds, size = 1000) {
71208
+ const raw = await this.dxSaasService.oiPut(`${POLICY}/preview`, toClusteringPolicyPreviewBody(body), { size, time: timeSeconds });
71209
+ const result = ClusteringPolicyPreviewResponseSchema.safeParse(raw);
71210
+ if (!result.success) {
71211
+ this.log.warn('ClusteringPolicyPreviewResponse validation warning:', result.error.message);
71212
+ }
71213
+ return raw;
71214
+ }
71215
+ /**
71216
+ * The policy editor's catalogs: filterable alarm fields, clustering fields
71217
+ * with their weight bounds, the custom-naming operations, and the window
71218
+ * bounds.
71219
+ *
71220
+ * `GET oi/v2/api/clusteralarms/policyfields`
71221
+ *
71222
+ * @remarks A catalog entry's `values` is not a closed vocabulary — for the
71223
+ * window fields it is `[min, max, default]` and for clustering fields
71224
+ * `[min, max]`.
71225
+ */
71226
+ async listPolicyFields() {
71227
+ const raw = await this.dxSaasService.oiGet(`${BASE}/policyfields`);
71228
+ const result = PolicyFieldsResponseSchema.safeParse(raw);
71229
+ if (!result.success) {
71230
+ this.log.warn('PolicyFieldsResponse validation warning:', result.error.message);
71231
+ }
71232
+ return raw;
71233
+ }
71234
+ /**
71235
+ * Tenant-wide clustering configuration — the weights, thresholds and
71236
+ * feature flags that govern clustering for every policy.
71237
+ *
71238
+ * `GET oi/v2/api/clusteralarms/tenantConfigAttributes`
71239
+ */
71240
+ async getTenantConfigAttributes() {
71241
+ const raw = await this.dxSaasService.oiGet(`${BASE}/tenantConfigAttributes`);
71242
+ const result = TenantConfigAttributesResponseSchema.safeParse(raw);
71243
+ if (!result.success) {
71244
+ this.log.warn('TenantConfigAttributesResponse validation warning:', result.error.message);
71245
+ }
71246
+ return raw;
71247
+ }
71248
+ /**
71249
+ * **RAW, UNGUARDED WRITE TO TENANT-WIDE CLUSTERING INTERNALS — read this
71250
+ * before calling it with anything but {@link ALGORITHMIC_SITUATIONS_KEY}.**
71251
+ *
71252
+ * `PUT oi/v2/api/clusteralarms/tenantConfigAttributes`
71253
+ *
71254
+ * This writes whatever key you hand it into the tenant's clustering engine
71255
+ * configuration. It is the platform's own internal tuning surface — roughly
71256
+ * three dozen attributes governing scoring weights, thresholds, HDBSCAN
71257
+ * parameters, stop words, retention and feature flags — and it is **not a
71258
+ * documented public API**.
71259
+ *
71260
+ * What we actually know, and what we do not:
71261
+ *
71262
+ * - **Only one key's semantics are established here.**
71263
+ * {@link ALGORITHMIC_SITUATIONS_KEY} was verified end to end against a lab
71264
+ * tenant. Every other key's meaning, valid range, interactions and blast
71265
+ * radius are **unverified** — the names are suggestive, not authoritative.
71266
+ * - **The server validates almost nothing.** Every write observed returned
71267
+ * `{"Status":"Success"}`, including ones the UI would never produce. A
71268
+ * nonsensical value is accepted, not rejected, and the damage shows up
71269
+ * later as situations that silently stop forming or form wrongly.
71270
+ * - **Tenant-wide, and it affects data you cannot re-derive.** Clustering is
71271
+ * continuous. A bad value corrupts the situations produced while it is set;
71272
+ * restoring the attribute does not reconstruct them.
71273
+ * - **There is no reset-to-defaults.** Nothing returns the platform's
71274
+ * shipped values, so an overwritten attribute is only recoverable if the
71275
+ * caller captured the previous value first.
71276
+ * - **The update is partial**, which cuts both ways: omitted keys are safe,
71277
+ * but a wrong `type` on a key you *do* send corrupts just that one quietly.
71278
+ *
71279
+ * Because of all that, no CLI command exposes this generically. The only
71280
+ * callers in this repo are `situation enable-algorithmic-situations` and
71281
+ * `situation disable-algorithmic-situations`, which touch exactly one boolean
71282
+ * and verify it by re-reading.
71283
+ *
71284
+ * If you are adding a caller for another attribute, the bar is: establish the
71285
+ * semantics empirically against a lab tenant first (never a customer tenant),
71286
+ * read and record the current value, make the change reversible, and verify
71287
+ * by re-reading. Prefer {@link getTenantConfigAttributes} — reading is free.
71288
+ *
71289
+ * @param tenantId - Tenant to write to; use the id {@link getTenantConfigAttributes}
71290
+ * returned rather than composing one, since the write expects that exact form.
71291
+ * @param attributes - Only the attributes to change. The update is partial:
71292
+ * keys that are not sent keep their current value. Send the narrowest set
71293
+ * that does the job.
71294
+ * @throws ZodError when the body is malformed. Note this validates the
71295
+ * *envelope* only — it cannot tell you whether a key or value is sane.
71296
+ * @example
71297
+ * ```ts
71298
+ * // The one supported use: flip algorithmic situations, having read it first.
71299
+ * const config = await service.getTenantConfigAttributes();
71300
+ * const before = algorithmicSituationsEnabled(config);
71301
+ * await service.setTenantConfigAttributes(config.tenantId, [
71302
+ * { key: ALGORITHMIC_SITUATIONS_KEY, value: false, type: 'boolean' },
71303
+ * ]);
71304
+ * ```
71305
+ */
71306
+ async setTenantConfigAttributes(tenantId, attributes) {
71307
+ const body = { tenantId, configAttrList: attributes };
71308
+ TenantConfigAttributesWriteBodySchema.parse(body);
71309
+ const raw = await this.dxSaasService.oiPut(`${BASE}/tenantConfigAttributes`, body);
71310
+ const result = TenantConfigAttributesWriteResponseSchema.safeParse(raw);
71311
+ if (!result.success) {
71312
+ this.log.warn('TenantConfigAttributesWriteResponse validation warning:', result.error.message);
71313
+ }
71314
+ return raw;
71315
+ }
71316
+ }
71317
+
70368
71318
  var PermissionType = DashboardPermissionsUpdateRequest.PermissionType;
70369
71319
  /**
70370
71320
  * Service for Grafana-style dashboard API: themes, API keys, dashboards,
@@ -75625,6 +76575,12 @@ class DxSaasService {
75625
76575
  this.simplifiedCohortId = this.dxdoConfiguration.dxConfiguration.cohortId
75626
76576
  .replace(/-/g, '')
75627
76577
  .toLowerCase();
76578
+ // Opt-in only: without it axios keeps its default of no timeout, which the
76579
+ // CLI's streaming and long-running query paths rely on.
76580
+ const requestTimeoutMs = this.dxdoConfiguration.requestTimeoutMs;
76581
+ if (requestTimeoutMs !== undefined && requestTimeoutMs > 0) {
76582
+ this._httpClient.defaults.timeout = requestTimeoutMs;
76583
+ }
75628
76584
  this.initializeProxyIfNecessary();
75629
76585
  // Strip auth tokens from any error this client surfaces, so nothing downstream
75630
76586
  // (handleAxiosError, re-throws, top-level catches) can log the Authorization header.
@@ -75909,9 +76865,7 @@ class DxSaasService {
75909
76865
  * @param body - Request body (JSON-serializable). Defaults to `{}`.
75910
76866
  * @param params - Query-string parameters.
75911
76867
  * @param headers - Additional request headers merged over the auth header.
75912
- * @param requestOverrides - Per-call axios settings (`timeout`, `signal`);
75913
- * the shared client has no default timeout, so a caller that must not
75914
- * hang — the at-exit command audit — bounds itself here.
76868
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
75915
76869
  */
75916
76870
  async tenantPost(path, body, params, headers = {}, requestOverrides = {}) {
75917
76871
  const url = `${this.dxdoConfiguration.dxConfiguration.dxGatewayHost}${this.getCohortIDForURL()}/${path}`;
@@ -76104,10 +77058,14 @@ class DxSaasService {
76104
77058
  * @param body - Request body.
76105
77059
  * @param params - Query-string parameters.
76106
77060
  * @param extraHeaders - Additional request headers.
77061
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
76107
77062
  */
76108
- async oiPost(path, body, params, extraHeaders) {
77063
+ async oiPost(path, body, params, extraHeaders, requestOverrides = {}) {
76109
77064
  const url = `${this.dxdoConfiguration.dxConfiguration.dxGatewayHost}${this.getCohortIDForURL()}/${path}`;
76110
- const config = this.createUserAuthorizedRequestConfig(params ?? {});
77065
+ const config = {
77066
+ ...this.createUserAuthorizedRequestConfig(params ?? {}),
77067
+ ...requestOverrides,
77068
+ };
76111
77069
  if (extraHeaders) {
76112
77070
  if (config.headers) {
76113
77071
  config.headers = { ...config.headers, ...extraHeaders };
@@ -76256,7 +77214,10 @@ class DxSaasService {
76256
77214
  }
76257
77215
  const profile = this.dxdoConfiguration.configurationFilePath ?? '~/.dxdo/<profile>.dxo2.config.json';
76258
77216
  const host = config.dxGatewayHost;
76259
- const cannot = (reason) => new Error(`Cannot determine the log ingestion endpoint: ${reason}`);
77217
+ // `definitive` tells a long-running producer whether to give up on log
77218
+ // shipping for the process (the profile itself rules it out) or to retry
77219
+ // later (only the products lookup failed, e.g. a maintenance window).
77220
+ const cannot = (reason, definitive = true) => new LogIngest.LogIngestionEndpointError(`Cannot determine the log ingestion endpoint: ${reason}`, definitive);
76260
77221
  let gateway;
76261
77222
  try {
76262
77223
  gateway = parseSaasGateway(host);
@@ -76279,7 +77240,7 @@ class DxSaasService {
76279
77240
  catch (error) {
76280
77241
  const message = error instanceof Error ? error.message : String(error);
76281
77242
  throw cannot(`the tenant products lookup (GET spp/v5/products on ${gateway.hostname}) failed: ${message}. ` +
76282
- `Set "dxLogIngestionURL" (e.g. "${derived}") in ${profile} to bypass the lookup.`);
77243
+ `Set "dxLogIngestionURL" (e.g. "${derived}") in ${profile} to bypass the lookup.`, false);
76283
77244
  }
76284
77245
  const tenant = products.displayName ?? '?';
76285
77246
  const la = findProduct(products, LOG_ANALYTICS_PRODUCT);
@@ -76303,14 +77264,19 @@ class DxSaasService {
76303
77264
  * `dxLogIngestionURL`, or the SaaS logs-gateway derived from the region and
76304
77265
  * Log Analytics provisioning. Auth uses the same `Bearer {userToken}` as
76305
77266
  * other tenant methods.
76306
- * @throws Error from {@link resolveLogIngestionURL} when no endpoint can be determined.
77267
+ * @param requestOverrides - Per-call axios settings, see {@link RequestOverrides}.
77268
+ * @throws {@link LogIngest.LogIngestionEndpointError} from
77269
+ * {@link resolveLogIngestionURL} when no endpoint can be determined.
76307
77270
  */
76308
- async logPost(path, body) {
77271
+ async logPost(path, body, requestOverrides = {}) {
76309
77272
  const logBase = await this.resolveLogIngestionURL();
76310
77273
  const url = `${logBase}/${path}`;
76311
77274
  this.log.debug(`log posting to: ${url}`);
76312
77275
  return this._httpClient
76313
- .post(url, body ?? {}, this.createSimpleUserAuthorizedRequestConfig(undefined))
77276
+ .post(url, body ?? {}, {
77277
+ ...this.createSimpleUserAuthorizedRequestConfig(undefined),
77278
+ ...requestOverrides,
77279
+ })
76314
77280
  .then((response) => response.data)
76315
77281
  .catch((reason) => {
76316
77282
  if (reason.response || reason.request) {
@@ -76951,6 +77917,17 @@ class EventService {
76951
77917
  }
76952
77918
  /** Ingests a custom alarm event via the Jarvis ingestion API. */
76953
77919
  createAlarm(alarmEvent) {
77920
+ return this.createAlarms([alarmEvent]);
77921
+ }
77922
+ /**
77923
+ * Ingests several custom alarm documents in one Jarvis ingestion request.
77924
+ *
77925
+ * @remarks Each document's `alarm_unique_id` is its alarm's id: a second
77926
+ * document with the same id updates that alarm in place, a closed alarm
77927
+ * ignores every later document, and a CLOSED document for an id that was
77928
+ * never opened creates a closed alarm.
77929
+ */
77930
+ createAlarms(alarmEvents, requestOverrides = {}) {
76954
77931
  const ingestionBody = {
76955
77932
  documents: [
76956
77933
  {
@@ -76961,14 +77938,14 @@ class EventService {
76961
77938
  product_id: 'ao',
76962
77939
  unique_id: "$['alarm_unique_id']",
76963
77940
  },
76964
- body: [alarmEvent],
77941
+ body: [...alarmEvents],
76965
77942
  },
76966
77943
  ],
76967
77944
  };
76968
- this.log.debug('createAlarm', JSON.stringify(ingestionBody, null, 2));
77945
+ this.log.debug('createAlarms', JSON.stringify(ingestionBody, null, 2));
76969
77946
  return this.dxSaaSService.oiPost('jarvis/v2/ingestion', ingestionBody, {}, {
76970
77947
  index_name: 'ao_itoa_alarms_custom_1',
76971
- });
77948
+ }, requestOverrides);
76972
77949
  }
76973
77950
  /** Ingests a custom event (non-change) via the Jarvis ingestion API. */
76974
77951
  createEvent(changeEvent) {
@@ -81191,8 +82168,93 @@ function detectIPv4() {
81191
82168
  function orDefault(value, fallback) {
81192
82169
  return value ? value : fallback;
81193
82170
  }
81194
- /** Ingestion path on the log gateway — the uim_logs pipeline shared with the on-prem log collector. */
82171
+ /**
82172
+ * A source file slot the platform can actually parse.
82173
+ *
82174
+ * The Kafka consumer's pattern for slot 8 matches only a dotted token. When it does not match, the
82175
+ * parse slides and the record is stored wrong: `tags` swallows the middle, `file` takes the
82176
+ * second-to-last word of the message, and `message` keeps only the last word. Measured on a lab
82177
+ * tenant (2026-09-16, issue #620): `orig.file` parsed, while `orig-file`, `orig_file` and `origfile`
82178
+ * each corrupted the record. Producers that pass a Java logger name never saw it, because those are
82179
+ * dotted; `broker-events` or a bare integration name did.
82180
+ *
82181
+ * Appending `.log` makes the slot parseable and leaves a value that already has a dot untouched.
82182
+ */
82183
+ function dottedFileSlot(value) {
82184
+ return value.includes('.') ? value : `${value}.log`;
82185
+ }
82186
+ /**
82187
+ * Ingestion path on the log gateway — the uim_logs pipeline shared with the
82188
+ * on-prem log collector. POSTed under the log gateway base (no cohort
82189
+ * segment) via {@link DxSaasService.logPost}.
82190
+ */
81195
82191
  const UIM_LOGS_INGESTION_PATH = 'mdo/v2/aoanalytics/ingestion/uim_logs';
82192
+ /**
82193
+ * Builds the uim_logs document for one log entry — the pure form of
82194
+ * {@link LogsService.buildLogPayload}, for producers that own their own
82195
+ * transport (a monitoring loop's log shipper) but must stay byte-compatible
82196
+ * with what `dx-do log ingest` sends.
82197
+ *
82198
+ * @param cohortId - The tenant's cohort id as it appears in the profile; it is
82199
+ * upper-cased into `tenant_id` and the first `temp_fields` slot.
82200
+ * @param options - Known log entry fields (`message` required; the rest
82201
+ * optional with sensible defaults). Validated against
82202
+ * {@link LogIngest.LogIngestOptionsSchema}.
82203
+ * @param additionalFields - Arbitrary extra fields to include in the indexed
82204
+ * document. `severity` and `logseverity` (any letter case) are refused:
82205
+ * severity travels through `options.severity` and is emitted as `logseverity`.
82206
+ * @remarks `options.file` is passed through {@link dottedFileSlot}: a source file
82207
+ * without a dot gets `.log` appended, because the platform's positional parse
82208
+ * only matches a dotted source file and corrupts the record otherwise (#620).
82209
+ * @throws ZodError if `options` fails schema validation.
82210
+ * @throws Error if `additionalFields` names a reserved field.
82211
+ */
82212
+ function buildUimLogPayload(cohortId, options, additionalFields) {
82213
+ LogIngest.LogIngestOptionsSchema.parse(options);
82214
+ for (const key of Object.keys(additionalFields ?? {})) {
82215
+ if (LogIngest.isReservedLogField(key)) {
82216
+ throw new Error(`additional field '${key}' is reserved: pass severity through the 'severity' option — it is sent as 'logseverity'`);
82217
+ }
82218
+ }
82219
+ const tenantIdUpper = cohortId.toUpperCase();
82220
+ // `orDefault` (not `??`) so an explicit empty string is treated as omitted —
82221
+ // a blank value in any temp_fields component shifts every downstream
82222
+ // positional field. See the temp_fields comment below.
82223
+ const logtype = orDefault(options.logtype, 'generic');
82224
+ const host = orDefault(options.host, hostname());
82225
+ const ip = orDefault(options.ip, detectIPv4());
82226
+ const agentInstance = orDefault(options.agentInstance, 'dx-do');
82227
+ const agentName = orDefault(options.agentName, 'Logs Collector');
82228
+ const containerId = orDefault(options.containerId, host);
82229
+ const containerName = orDefault(options.containerName, agentInstance);
82230
+ // A source file without a dot corrupts the whole record; see dottedFileSlot.
82231
+ const file = dottedFileSlot(orDefault(options.file, 'dx-do.cli'));
82232
+ const tag = `${logtype} logs`;
82233
+ // temp_fields must have exactly 9 space-separated components before the message
82234
+ // is appended by the SaaS filter (agentbase_msg = temp_fields + " " + message).
82235
+ // The Kafka consumer parses positionally: [0]=tenant [1]=logtype [2]=host
82236
+ // [3]=container_id [4]=container_name [5]=ip [6-7]=tags [8]=source_file [9+]=message.
82237
+ const temp_fields = `${tenantIdUpper} ${logtype} ${host} ${containerId} ${containerName} ${ip} ${tag} ${file}`;
82238
+ return {
82239
+ '@timestamp': options.timestamp ?? new Date().toISOString(),
82240
+ // logtype must be top-level: the SaaS filter does `update => ["type", "%{logtype}"]`
82241
+ // which drives Kafka consumer index routing — without it type stays as "ingestionapi"
82242
+ logtype,
82243
+ // The platform indexes severity as `logseverity`; a bare `severity` is
82244
+ // silently dropped, which is why both are reserved as custom fields.
82245
+ logseverity: options.severity ?? LogIngest.DEFAULT_LOG_SEVERITY,
82246
+ message: options.message,
82247
+ host: { name: host, hostname: host },
82248
+ tenant_id: tenantIdUpper,
82249
+ temp_fields,
82250
+ tags: [tag],
82251
+ __agent_name: agentName,
82252
+ __agent_instance: agentInstance,
82253
+ container_id: containerId,
82254
+ container_name: containerName,
82255
+ ...additionalFields,
82256
+ };
82257
+ }
81196
82258
  /**
81197
82259
  * Service for querying and ingesting log analytics data.
81198
82260
  */
@@ -81233,50 +82295,7 @@ class LogsService {
81233
82295
  * @throws Error if `additionalFields` names a reserved field.
81234
82296
  */
81235
82297
  buildLogPayload(options, additionalFields) {
81236
- LogIngest.LogIngestOptionsSchema.parse(options);
81237
- for (const key of Object.keys(additionalFields ?? {})) {
81238
- if (LogIngest.isReservedLogField(key)) {
81239
- throw new Error(`additional field '${key}' is reserved: pass severity through the 'severity' option — it is sent as 'logseverity'`);
81240
- }
81241
- }
81242
- const cohortId = this.dxSaasService.dxdoConfiguration.dxConfiguration.cohortId;
81243
- const tenantIdUpper = cohortId.toUpperCase();
81244
- // `orDefault` (not `??`) so an explicit empty string is treated as omitted —
81245
- // a blank value in any temp_fields component shifts every downstream
81246
- // positional field. See the temp_fields comment below.
81247
- const logtype = orDefault(options.logtype, 'generic');
81248
- const host = orDefault(options.host, hostname());
81249
- const ip = orDefault(options.ip, detectIPv4());
81250
- const agentInstance = orDefault(options.agentInstance, 'dx-do');
81251
- const agentName = orDefault(options.agentName, 'Logs Collector');
81252
- const containerId = orDefault(options.containerId, host);
81253
- const containerName = orDefault(options.containerName, agentInstance);
81254
- const file = orDefault(options.file, 'dx-do.cli');
81255
- const tag = `${logtype} logs`;
81256
- // temp_fields must have exactly 9 space-separated components before the message
81257
- // is appended by the SaaS filter (agentbase_msg = temp_fields + " " + message).
81258
- // The Kafka consumer parses positionally: [0]=tenant [1]=logtype [2]=host
81259
- // [3]=container_id [4]=container_name [5]=ip [6-7]=tags [8]=source_file [9+]=message.
81260
- const temp_fields = `${tenantIdUpper} ${logtype} ${host} ${containerId} ${containerName} ${ip} ${tag} ${file}`;
81261
- return {
81262
- '@timestamp': options.timestamp ?? new Date().toISOString(),
81263
- // logtype must be top-level: the SaaS filter does `update => ["type", "%{logtype}"]`
81264
- // which drives Kafka consumer index routing — without it type stays as "ingestionapi"
81265
- logtype,
81266
- // The platform indexes severity as `logseverity`; a bare `severity` is
81267
- // silently dropped, which is why both are reserved as custom fields.
81268
- logseverity: options.severity ?? LogIngest.DEFAULT_LOG_SEVERITY,
81269
- message: options.message,
81270
- host: { name: host, hostname: host },
81271
- tenant_id: tenantIdUpper,
81272
- temp_fields,
81273
- tags: [tag],
81274
- __agent_name: agentName,
81275
- __agent_instance: agentInstance,
81276
- container_id: containerId,
81277
- container_name: containerName,
81278
- ...additionalFields,
81279
- };
82298
+ return buildUimLogPayload(this.dxSaasService.dxdoConfiguration.dxConfiguration.cohortId, options, additionalFields);
81280
82299
  }
81281
82300
  /**
81282
82301
  * Ingests a single log entry into the log gateway.
@@ -83292,6 +84311,27 @@ class ServiceService {
83292
84311
  const { body } = await this.buildServiceContentBody(serviceName, newContent, mode);
83293
84312
  return this.createService(body, { replace: true });
83294
84313
  }
84314
+ /**
84315
+ * Builds the store body for changing a service's own attributes (description,
84316
+ * location, tags, custom properties, includeChildServices) WITHOUT saving.
84317
+ * Re-saves the full subtree (via {@link buildHierarchyBody}) so the children
84318
+ * edges survive `replace=true`; only the target vertex changes. The name and
84319
+ * the service type are never patched — both are fixed at creation (the server
84320
+ * does not allow renames and ignores a `serviceType` change on a re-save).
84321
+ *
84322
+ * @returns the store body plus human-readable change lines (empty = no-op).
84323
+ * @throws Error if the service does not exist.
84324
+ */
84325
+ async buildServiceUpdateBody(serviceName, patch) {
84326
+ const body = await this.buildHierarchyBody(serviceName);
84327
+ const changes = ServiceTransform.applyServiceUpdate(body, serviceName, patch);
84328
+ return { body, changes };
84329
+ }
84330
+ /** Updates a service's attributes and saves it. See {@link buildServiceUpdateBody}. */
84331
+ async updateService(serviceName, patch) {
84332
+ const { body } = await this.buildServiceUpdateBody(serviceName, patch);
84333
+ return this.createService(body, { replace: true });
84334
+ }
83295
84335
  /** Deletes a service by name; optionally deletes child services recursively. */
83296
84336
  async deleteService(serviceName, recursive = false) {
83297
84337
  return this.dxSaaSService.tenantPost('/oi/v2/sa/service/status', { name: serviceName, action: 'delete' }, { recursive });
@@ -83311,19 +84351,23 @@ class ServiceService {
83311
84351
  },
83312
84352
  };
83313
84353
  }
83314
- /** Builds an empty (no-content) service vertex payload ready to be populated. */
83315
- generateEmptyServiceVertex(serviceName, serviceDescription, situationsIncludeChildServices, tags = [], customProperties = []) {
84354
+ /**
84355
+ * Builds an empty (no-content) service vertex payload ready to be populated.
84356
+ * @param serviceType - `Service` (default) | `Application` | `Group`.
84357
+ */
84358
+ generateEmptyServiceVertex(serviceName, serviceDescription, situationsIncludeChildServices, tags = [], customProperties = [], serviceType = 'Service', location = '') {
83316
84359
  return {
83317
84360
  attributes: {
83318
84361
  type: 'saService',
83319
84362
  name: serviceName,
84363
+ serviceType,
83320
84364
  state: 'ACTIVE',
83321
84365
  maintenance: false,
83322
84366
  situationsIncludeChildServices,
83323
84367
  serviceContent: [],
83324
84368
  root_service: null,
83325
84369
  tags,
83326
- location: '',
84370
+ location,
83327
84371
  description: serviceDescription,
83328
84372
  customProperties,
83329
84373
  customMetrics: [],
@@ -84165,17 +85209,20 @@ class DataStoreMetricsMetadataService {
84165
85209
  * schema validation, a warning is logged but the raw API response is
84166
85210
  * still returned.
84167
85211
  *
85212
+ * @param requestOverrides - Per-call `timeout` / `signal`; registration is
85213
+ * an idempotent upsert, so a caller may safely retry after a timeout.
85214
+ *
84168
85215
  * @throws ZodError if the request fails schema validation — including the
84169
85216
  * tag-registration restrictions ("@tags" non-empty, every listed tag
84170
85217
  * present with a non-empty string value, TYPE_TAGS never set without tags).
84171
85218
  */
84172
- async registerMetrics(metrics, sync) {
85219
+ async registerMetrics(metrics, sync, requestOverrides = {}) {
84173
85220
  const body = {
84174
85221
  metrics: metrics.map((m) => ensureTypeTagsFlag(m)),
84175
85222
  ...(sync !== undefined ? { sync } : {}),
84176
85223
  };
84177
85224
  MetricRegisterRequestSchema.parse(body);
84178
- const raw = await this.dxSaasService.tenantPost('metadata/registerMetric', body);
85225
+ const raw = await this.dxSaasService.tenantPost('metadata/registerMetric', body, undefined, {}, requestOverrides);
84179
85226
  const result = MetricRegisterResponseSchema.safeParse(raw);
84180
85227
  if (!result.success) {
84181
85228
  this.log.warn('MetricRegisterResponse validation warning:', result.error.message);
@@ -84183,8 +85230,8 @@ class DataStoreMetricsMetadataService {
84183
85230
  return raw;
84184
85231
  }
84185
85232
  /** Registers a single metric. Convenience wrapper around {@link registerMetrics}. */
84186
- async registerMetric(metric, sync) {
84187
- return this.registerMetrics([metric], sync);
85233
+ async registerMetric(metric, sync, requestOverrides = {}) {
85234
+ return this.registerMetrics([metric], sync, requestOverrides);
84188
85235
  }
84189
85236
  /**
84190
85237
  * POSTs a metadata query to `/metadata/queryMetric` and returns the matching
@@ -84441,15 +85488,18 @@ class DataStoreTASService {
84441
85488
  * POSTs a graph to `/tas/graph/store` and returns the store result including
84442
85489
  * any failed vertices or edges.
84443
85490
  *
84444
- * @remarks The request is validated against {@link TasStoreGraphInputSchema}.
84445
- * If the response fails schema validation, a warning is logged but the raw
84446
- * API response is still returned.
85491
+ * @remarks The request is validated against {@link TasStoreGraphInputSchema}
85492
+ * (externalId-keyed vertices and edges — the ingestion contract; numeric
85493
+ * ids are optional). If the response fails schema validation, a warning is
85494
+ * logged but the raw API response is still returned.
85495
+ * @param requestOverrides - Per-call `timeout` / `signal`; the store is
85496
+ * idempotent, so a caller may safely retry after a timeout.
84447
85497
  *
84448
85498
  * @throws ZodError if the request fails schema validation.
84449
85499
  */
84450
- async storeGraph(input) {
85500
+ async storeGraph(input, requestOverrides = {}) {
84451
85501
  TasStoreGraphInputSchema.parse(input);
84452
- const raw = await this.dxSaasService.tenantPost('tas/graph/store', input);
85502
+ const raw = await this.dxSaasService.tenantPost('tas/graph/store', input, undefined, {}, requestOverrides);
84453
85503
  const result = TasStoreGraphResponseSchema.safeParse(raw);
84454
85504
  if (!result.success) {
84455
85505
  this.log.warn('TasStoreGraphResponse validation warning:', result.error.message);
@@ -84877,13 +85927,17 @@ class DataStoreNASSService {
84877
85927
  * @remarks The request is validated against {@link NassStoreRequestSchema}.
84878
85928
  * If the response fails schema validation, a warning is logged but the raw
84879
85929
  * API response is still returned.
85930
+ * @param requestOverrides - Per-call `timeout` / `signal`. A store is NOT
85931
+ * idempotent: a second write to the same `(metricId, timestamp)` merges
85932
+ * with the first, so only retry when the request provably never reached
85933
+ * the server.
84880
85934
  *
84881
85935
  * @throws ZodError if any datapoint fails schema validation.
84882
85936
  */
84883
- async storeMetricValues(values) {
85937
+ async storeMetricValues(values, requestOverrides = {}) {
84884
85938
  const body = { values };
84885
85939
  NassStoreRequestSchema.parse(body);
84886
- const raw = await this.dxSaasService.tenantPost('nass/metricValue/store', body);
85940
+ const raw = await this.dxSaasService.tenantPost('nass/metricValue/store', body, undefined, {}, requestOverrides);
84887
85941
  const result = NassStoreResponseSchema.safeParse(raw);
84888
85942
  if (!result.success) {
84889
85943
  this.log.warn('NassStoreResponse validation warning:', result.error.message);
@@ -85303,6 +86357,7 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
85303
86357
  dxBlobService: new BlobService(dxSaaSService, log),
85304
86358
  dxBlobStorageService: new DataStoreBlobStorageService(dxSaaSService, log),
85305
86359
  dxChannelService: new ChannelService(dxSaaSService, log),
86360
+ dxClusteringPolicyService: new ClusteringPolicyService(dxSaaSService, log),
85306
86361
  dxDashboardService: new DashboardService(dxSaaSService),
85307
86362
  dxDataStoreMetricsMetadataService: new DataStoreMetricsMetadataService(dxSaaSService, log),
85308
86363
  dxDataStoreNASSService: new DataStoreNASSService(dxSaaSService, log),
@@ -85343,5 +86398,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
85343
86398
  };
85344
86399
  }
85345
86400
 
85346
- export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, ENRICHMENT_FILTER_CONDITIONS, ENRICHMENT_PREVIEW_WINDOWS, ENRICHMENT_SOURCES, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EnrichmentCustomFieldSchema, EnrichmentCustomFieldsResponseSchema, EnrichmentMappingSchema, EnrichmentPreviewResponseSchema, EnrichmentRuleSchema, EnrichmentRuleWriteBodySchema, EnrichmentRulesResponseSchema, EnrichmentSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogIngest, LogQuery, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAttributeSchema, MetricBatchService, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SQLService, ServiceDeskFieldSchema, ServiceDeskFieldsResponseSchema, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TICKET_ENRICHMENT_ALARM_TYPES, TICKET_ENRICHMENT_FIELD_CODES, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreChangeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TicketEnrichmentAlarmFieldSchema, TicketEnrichmentAlarmFieldsResponseSchema, TicketEnrichmentListResponseSchema, TicketEnrichmentMappingSchema, TicketEnrichmentRuleSchema, TicketEnrichmentWriteBodySchema, TicketEnrichmentWriteResponseSchema, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alertsForSliIndex, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, capVertexDetail, checkGet, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, displayColumnsFor, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, parseExpression, parseFilter, parseSaasGateway, parseServiceNowUrl, planEnrichmentReorder, policyCategoryGuard, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sliHumanName, sloTripletFor, sortRulesByPriority, splitAttributePath, splitTemplate, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToMmPattern, templateUsage, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toChannelWriteBody, toEnrichmentRuleCreateBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, toTicketEnrichmentWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
86401
+ export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, ALGORITHMIC_SITUATIONS_KEY, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CLUSTERING_POLICY_BUILTIN_AUTHORS, CLUSTERING_POLICY_CONDITIONS, CLUSTERING_POLICY_PRESENCE_CONDITIONS, CLUSTERING_POLICY_PREVIEW_RANGES, CLUSTERING_POLICY_STATUSES, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, ClusteringCriteriaValuesSchema, ClusteringCriterionPropertiesSchema, ClusteringCriterionSchema, ClusteringPolicyCriteriaSchema, ClusteringPolicyPreviewResponseSchema, ClusteringPolicySchema, ClusteringPolicySearchRequestSchema, ClusteringPolicySearchResponseSchema, ClusteringPolicyService, ClusteringPolicyWriteBodySchema, ClusteringPreviewClusterSchema, ClusteringPreviewTemplateSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateServices, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, ENRICHMENT_FILTER_CONDITIONS, ENRICHMENT_PREVIEW_WINDOWS, ENRICHMENT_SOURCES, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EmptyCriteriaSchema, EnrichmentCustomFieldSchema, EnrichmentCustomFieldsResponseSchema, EnrichmentMappingSchema, EnrichmentPreviewResponseSchema, EnrichmentRuleSchema, EnrichmentRuleWriteBodySchema, EnrichmentRulesResponseSchema, EnrichmentSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogIngest, LogQuery, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAttributeSchema, MetricBatchService, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFieldSchema, PolicyFieldsResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyNamingOperationSchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SQLService, ServiceDeskFieldSchema, ServiceDeskFieldsResponseSchema, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, StoredCriteriaSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TICKET_ENRICHMENT_ALARM_TYPES, TICKET_ENRICHMENT_FIELD_CODES, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreAttributeValueSchema, TasStoreChangeSchema, TasStoreEdgeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasStoreGraphSchema, TasStoreVertexSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantConfigAttributeSchema, TenantConfigAttributesResponseSchema, TenantConfigAttributesWriteBodySchema, TenantConfigAttributesWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TicketEnrichmentAlarmFieldSchema, TicketEnrichmentAlarmFieldsResponseSchema, TicketEnrichmentListResponseSchema, TicketEnrichmentMappingSchema, TicketEnrichmentRuleSchema, TicketEnrichmentWriteBodySchema, TicketEnrichmentWriteResponseSchema, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UIM_LOGS_INGESTION_PATH, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alertsForSliIndex, algorithmicSituationsEnabled, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, describeClusteringCriteria, displayColumnsFor, dottedFileSlot, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInClusteringPolicy, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isEmptyCriteria, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, parseExpression, parseFilter, parseSaasGateway, parseServiceNowUrl, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sliHumanName, sloTripletFor, sortRulesByPriority, splitAttributePath, splitTemplate, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToMmPattern, templateUsage, tenantConfigAttribute, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toChannelWriteBody, toClusteringPolicyPreviewBody, toClusteringPolicyWriteBody, toEnrichmentRuleCreateBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, toTicketEnrichmentWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
85347
86402
  //# sourceMappingURL=index.esm.js.map