@dx-do/client 7.9.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +775 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +740 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/situations/clustering-policy.d.ts +492 -0
- package/dist/src/lib/model/situations/clustering-policy.d.ts.map +1 -0
- package/dist/src/lib/services/clustering-policy.service.d.ts +159 -0
- package/dist/src/lib/services/clustering-policy.service.d.ts.map +1 -0
- package/dist/src/lib/services/service-monolith.d.ts +2 -0
- package/dist/src/lib/services/service-monolith.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -39939,7 +39939,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
39939
39939
|
isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,
|
|
39940
39940
|
isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
|
|
39941
39941
|
|
|
39942
|
-
BASE = 1e7,
|
|
39942
|
+
BASE$1 = 1e7,
|
|
39943
39943
|
LOG_BASE = 7,
|
|
39944
39944
|
MAX_SAFE_INTEGER$2 = 9007199254740991,
|
|
39945
39945
|
|
|
@@ -41210,9 +41210,9 @@ P$2.minus = P$2.sub = function (y) {
|
|
|
41210
41210
|
for (i = yd.length; i > k;) {
|
|
41211
41211
|
|
|
41212
41212
|
if (xd[--i] < yd[i]) {
|
|
41213
|
-
for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;
|
|
41213
|
+
for (j = i; j && xd[--j] === 0;) xd[j] = BASE$1 - 1;
|
|
41214
41214
|
--xd[j];
|
|
41215
|
-
xd[i] += BASE;
|
|
41215
|
+
xd[i] += BASE$1;
|
|
41216
41216
|
}
|
|
41217
41217
|
|
|
41218
41218
|
xd[i] -= yd[i];
|
|
@@ -41441,8 +41441,8 @@ P$2.plus = P$2.add = function (y) {
|
|
|
41441
41441
|
|
|
41442
41442
|
// Only start adding at yd.length - 1 as the further digits of xd can be left as they are.
|
|
41443
41443
|
for (carry = 0; i;) {
|
|
41444
|
-
carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
|
|
41445
|
-
xd[i] %= BASE;
|
|
41444
|
+
carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE$1 | 0;
|
|
41445
|
+
xd[i] %= BASE$1;
|
|
41446
41446
|
}
|
|
41447
41447
|
|
|
41448
41448
|
if (carry) {
|
|
@@ -41740,11 +41740,11 @@ P$2.times = P$2.mul = function (y) {
|
|
|
41740
41740
|
carry = 0;
|
|
41741
41741
|
for (k = xdL + i; k > i;) {
|
|
41742
41742
|
t = r[k] + yd[i] * xd[k - i - 1] + carry;
|
|
41743
|
-
r[k--] = t % BASE | 0;
|
|
41744
|
-
carry = t / BASE | 0;
|
|
41743
|
+
r[k--] = t % BASE$1 | 0;
|
|
41744
|
+
carry = t / BASE$1 | 0;
|
|
41745
41745
|
}
|
|
41746
41746
|
|
|
41747
|
-
r[k] = (r[k] + carry) % BASE | 0;
|
|
41747
|
+
r[k] = (r[k] + carry) % BASE$1 | 0;
|
|
41748
41748
|
}
|
|
41749
41749
|
|
|
41750
41750
|
// Remove trailing zeros.
|
|
@@ -42570,7 +42570,7 @@ var divide$1 = (function () {
|
|
|
42570
42570
|
logBase = 1;
|
|
42571
42571
|
e = x.e - y.e;
|
|
42572
42572
|
} else {
|
|
42573
|
-
base = BASE;
|
|
42573
|
+
base = BASE$1;
|
|
42574
42574
|
logBase = LOG_BASE;
|
|
42575
42575
|
e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
|
|
42576
42576
|
}
|
|
@@ -42893,13 +42893,13 @@ var divide$1 = (function () {
|
|
|
42893
42893
|
// if i != k the length has increased.
|
|
42894
42894
|
if (i != k) {
|
|
42895
42895
|
x.e++;
|
|
42896
|
-
if (xd[0] == BASE) xd[0] = 1;
|
|
42896
|
+
if (xd[0] == BASE$1) xd[0] = 1;
|
|
42897
42897
|
}
|
|
42898
42898
|
|
|
42899
42899
|
break;
|
|
42900
42900
|
} else {
|
|
42901
42901
|
xd[xdi] += k;
|
|
42902
|
-
if (xd[xdi] != BASE) break;
|
|
42902
|
+
if (xd[xdi] != BASE$1) break;
|
|
42903
42903
|
xd[xdi--] = 0;
|
|
42904
42904
|
k = 1;
|
|
42905
42905
|
}
|
|
@@ -43475,7 +43475,7 @@ function parseOther(x, str) {
|
|
|
43475
43475
|
divisor = intPow(Ctor, new Ctor(base), i, i * 2);
|
|
43476
43476
|
}
|
|
43477
43477
|
|
|
43478
|
-
xd = convertBase(str, base, BASE);
|
|
43478
|
+
xd = convertBase(str, base, BASE$1);
|
|
43479
43479
|
xe = xd.length - 1;
|
|
43480
43480
|
|
|
43481
43481
|
// Remove trailing zeros.
|
|
@@ -63432,6 +63432,506 @@ exports.Situations = void 0;
|
|
|
63432
63432
|
(function (Situations) {
|
|
63433
63433
|
})(exports.Situations || (exports.Situations = {}));
|
|
63434
63434
|
|
|
63435
|
+
/**
|
|
63436
|
+
* Custom situation policies — the product calls them "custom situation
|
|
63437
|
+
* definitions"; the API calls them clustering policies (`clusteringpolicy`).
|
|
63438
|
+
*
|
|
63439
|
+
* Situations are alarm clusters. A policy controls how and when a cluster
|
|
63440
|
+
* forms, in three independent parts over one alarm stream:
|
|
63441
|
+
*
|
|
63442
|
+
* 1. `filterCriteria` — which raw alarms the policy may cluster at all.
|
|
63443
|
+
* 2. `rcFilterCriteria` — which of those are root-cause candidates (nullable).
|
|
63444
|
+
* 3. `clusteringCriteria` — the ranked fields the grouping keys on, each with
|
|
63445
|
+
* a match weight and optional per-field properties.
|
|
63446
|
+
*
|
|
63447
|
+
* Shapes measured from HARs of the lab tenant's UI
|
|
63448
|
+
* (`docs/internal/custom-situation.har`, `custom-situation-preview.har`,
|
|
63449
|
+
* 2026-09-20) plus a live preview probe against seeded alarms.
|
|
63450
|
+
*/
|
|
63451
|
+
// ---------------------------------------------------------------------------
|
|
63452
|
+
// Vocabularies
|
|
63453
|
+
// ---------------------------------------------------------------------------
|
|
63454
|
+
/**
|
|
63455
|
+
* Conditions accepted in criteria atoms. `equals`, `contains` and `not_empty`
|
|
63456
|
+
* are observed in UI-authored policies; the rest come from the platform's
|
|
63457
|
+
* shared alarm-filter component, which the policy editor reuses.
|
|
63458
|
+
*/
|
|
63459
|
+
const CLUSTERING_POLICY_CONDITIONS = [
|
|
63460
|
+
'equals',
|
|
63461
|
+
'not_equals',
|
|
63462
|
+
'contains',
|
|
63463
|
+
'not_contains',
|
|
63464
|
+
'starts_with',
|
|
63465
|
+
'ends_with',
|
|
63466
|
+
'not_empty',
|
|
63467
|
+
'exists',
|
|
63468
|
+
'does_not_exists',
|
|
63469
|
+
'greater_than',
|
|
63470
|
+
'less_than',
|
|
63471
|
+
];
|
|
63472
|
+
/** `not_empty` / `exists` / `does_not_exists` are presence tests; the UI sends `*` as their value. */
|
|
63473
|
+
const CLUSTERING_POLICY_PRESENCE_CONDITIONS = [
|
|
63474
|
+
'not_empty',
|
|
63475
|
+
'exists',
|
|
63476
|
+
'does_not_exists',
|
|
63477
|
+
];
|
|
63478
|
+
const CLUSTERING_POLICY_STATUSES = ['ACTIVE', 'INACTIVE'];
|
|
63479
|
+
/**
|
|
63480
|
+
* The preview windows the UI offers, in seconds. `time=` on the preview call
|
|
63481
|
+
* accepts any integer; these are the labelled choices.
|
|
63482
|
+
*/
|
|
63483
|
+
const CLUSTERING_POLICY_PREVIEW_RANGES = {
|
|
63484
|
+
'1h': 3600,
|
|
63485
|
+
'4h': 14400,
|
|
63486
|
+
'8h': 28800,
|
|
63487
|
+
'24h': 86400,
|
|
63488
|
+
'3d': 259200,
|
|
63489
|
+
'1w': 604800,
|
|
63490
|
+
};
|
|
63491
|
+
/** `updatedBy` values the platform stamps on its own seeded policies. */
|
|
63492
|
+
const CLUSTERING_POLICY_BUILTIN_AUTHORS = ['DefaultPolicy', 'DefaultSpectrum'];
|
|
63493
|
+
// ---------------------------------------------------------------------------
|
|
63494
|
+
// Criteria
|
|
63495
|
+
// ---------------------------------------------------------------------------
|
|
63496
|
+
/**
|
|
63497
|
+
* Per-field clustering options. `hierarchy` makes a service match walk the
|
|
63498
|
+
* service hierarchy; `leftElementTrim` drops N leading dot-separated elements
|
|
63499
|
+
* of the value before comparing (e.g. trimming a host's subdomain).
|
|
63500
|
+
*/
|
|
63501
|
+
const ClusteringCriterionPropertiesSchema = v4.z.looseObject({
|
|
63502
|
+
hierarchy: v4.z.boolean().optional().describe('Match up the service hierarchy rather than on the exact service'),
|
|
63503
|
+
leftElementTrim: v4.z
|
|
63504
|
+
.number()
|
|
63505
|
+
.int()
|
|
63506
|
+
.optional()
|
|
63507
|
+
.describe('Drop this many leading dot-separated elements of the value before matching'),
|
|
63508
|
+
});
|
|
63509
|
+
/** One ranked clustering field and how strongly its values must match. */
|
|
63510
|
+
const ClusteringCriterionSchema = v4.z.looseObject({
|
|
63511
|
+
field: v4.z
|
|
63512
|
+
.string()
|
|
63513
|
+
.min(1)
|
|
63514
|
+
.describe('Clustering field name from `policyfields.clusteringFields` (host, message, product, services_impacted, severity)'),
|
|
63515
|
+
value: v4.z
|
|
63516
|
+
.number()
|
|
63517
|
+
.min(0)
|
|
63518
|
+
.max(100)
|
|
63519
|
+
.describe('Match weight as a percentage; the field catalog gives the allowed [min, max] per field'),
|
|
63520
|
+
rank: v4.z.number().int().min(1).describe('Evaluation order, 1-based; lower ranks are applied first'),
|
|
63521
|
+
properties: ClusteringCriterionPropertiesSchema.optional().describe('Optional per-field matching options'),
|
|
63522
|
+
});
|
|
63523
|
+
/**
|
|
63524
|
+
* Criteria are the platform's shared AND-of-OR-groups filter tree — the same
|
|
63525
|
+
* shape as a notification policy's `filterExpressionV1`, so the atom and
|
|
63526
|
+
* expression schemas are shared. The UI emits one OR-group per field.
|
|
63527
|
+
*/
|
|
63528
|
+
const ClusteringPolicyCriteriaSchema = PolicyFilterExpressionSchema;
|
|
63529
|
+
/**
|
|
63530
|
+
* An unset criteria tree. The server does not store `null` — it normalizes an
|
|
63531
|
+
* omitted or null `rcFilterCriteria` to an empty object and returns `{}`,
|
|
63532
|
+
* which is not a valid atom / and / or node. Measured on the lab tenant.
|
|
63533
|
+
*/
|
|
63534
|
+
const EmptyCriteriaSchema = v4.z.strictObject({});
|
|
63535
|
+
/** A criteria tree as the server may return it: a real tree, `{}`, or null. */
|
|
63536
|
+
const StoredCriteriaSchema = v4.z.union([ClusteringPolicyCriteriaSchema, EmptyCriteriaSchema]);
|
|
63537
|
+
/** True for the server's `{}` representation of "no criteria", and for null/undefined. */
|
|
63538
|
+
function isEmptyCriteria(criteria) {
|
|
63539
|
+
if (criteria === null || criteria === undefined) {
|
|
63540
|
+
return true;
|
|
63541
|
+
}
|
|
63542
|
+
return typeof criteria === 'object' && Object.keys(criteria).length === 0;
|
|
63543
|
+
}
|
|
63544
|
+
// ---------------------------------------------------------------------------
|
|
63545
|
+
// The policy record
|
|
63546
|
+
// ---------------------------------------------------------------------------
|
|
63547
|
+
/**
|
|
63548
|
+
* A policy as the server returns it. `filterSearchFields`,
|
|
63549
|
+
* `rcFilterSearchFields` and `clusteringSearchFields` are derived by the
|
|
63550
|
+
* server from the criteria — never send them.
|
|
63551
|
+
*/
|
|
63552
|
+
const ClusteringPolicySchema = v4.z.looseObject({
|
|
63553
|
+
policy_id: v4.z
|
|
63554
|
+
.string()
|
|
63555
|
+
.describe('Policy id. NOTE: an update can mint a NEW id (it does for a policy created ACTIVE); the name is the stable handle'),
|
|
63556
|
+
tenant_id: v4.z.string().optional().describe('Owning tenant, uppercase-hyphenated'),
|
|
63557
|
+
name: v4.z.string().describe('Policy name as shown in the UI'),
|
|
63558
|
+
situation_custom_name: v4.z
|
|
63559
|
+
.string()
|
|
63560
|
+
.optional()
|
|
63561
|
+
.describe('Naming template for situations this policy creates, e.g. "{rootcausealarm(product)}"'),
|
|
63562
|
+
priority: v4.z
|
|
63563
|
+
.number()
|
|
63564
|
+
.describe('Evaluation order, ascending; the UI seeds new policies with a creation timestamp so they evaluate last'),
|
|
63565
|
+
version: v4.z.number().optional().describe('Increments on every update'),
|
|
63566
|
+
created: v4.z.number().optional().describe('Creation time, epoch milliseconds'),
|
|
63567
|
+
lastUpdated: v4.z.number().optional().describe('Last update time, epoch milliseconds'),
|
|
63568
|
+
updatedBy: v4.z.string().optional().describe('User or platform component that last wrote the policy'),
|
|
63569
|
+
stableWindow: v4.z
|
|
63570
|
+
.number()
|
|
63571
|
+
.describe('Minutes a cluster stays open with no new alarms before it is considered stable'),
|
|
63572
|
+
extensionWindow: v4.z
|
|
63573
|
+
.number()
|
|
63574
|
+
.optional()
|
|
63575
|
+
.describe('Minutes a stable cluster may still absorb a late alarm; 0 disables extension'),
|
|
63576
|
+
maxStableWindow: v4.z
|
|
63577
|
+
.number()
|
|
63578
|
+
.optional()
|
|
63579
|
+
.describe('Hard ceiling in minutes on how long a cluster may stay open; 0 means no ceiling'),
|
|
63580
|
+
status: v4.z.string().describe('ACTIVE (the policy runs) or INACTIVE (it is saved but not applied)'),
|
|
63581
|
+
filterCriteria: StoredCriteriaSchema.describe('Which raw alarms this policy may cluster'),
|
|
63582
|
+
rcFilterCriteria: StoredCriteriaSchema.nullable()
|
|
63583
|
+
.optional()
|
|
63584
|
+
.describe('Which matched alarms count as root-cause candidates; the server returns {} when unset'),
|
|
63585
|
+
clusteringCriteria: v4.z
|
|
63586
|
+
.array(ClusteringCriterionSchema)
|
|
63587
|
+
.describe('Ranked fields the clustering groups on'),
|
|
63588
|
+
filterSearchFields: v4.z.array(v4.z.string()).optional().describe('Server-derived: fields used in filterCriteria'),
|
|
63589
|
+
rcFilterSearchFields: v4.z.array(v4.z.string()).optional().describe('Server-derived: fields used in rcFilterCriteria'),
|
|
63590
|
+
clusteringSearchFields: v4.z.array(v4.z.string()).optional().describe('Server-derived: fields used in clusteringCriteria'),
|
|
63591
|
+
});
|
|
63592
|
+
/**
|
|
63593
|
+
* The envelope of `POST clusteringpolicy/search` — and of
|
|
63594
|
+
* `GET clusteringpolicy/{id}`, which returns the same shape with one result.
|
|
63595
|
+
*/
|
|
63596
|
+
const ClusteringPolicySearchResponseSchema = v4.z.looseObject({
|
|
63597
|
+
searchPolicyResults: v4.z.array(ClusteringPolicySchema).describe('The matching policies'),
|
|
63598
|
+
displayCount: v4.z.number().describe('Total number of policies matching the search'),
|
|
63599
|
+
});
|
|
63600
|
+
const ClusteringPolicySearchRequestSchema = v4.z.looseObject({
|
|
63601
|
+
recordFrom: v4.z.number().int().min(0).describe('Zero-based index of the first record'),
|
|
63602
|
+
recordTo: v4.z.number().int().min(1).describe('Exclusive upper bound of the record window'),
|
|
63603
|
+
sortCol: v4.z.string().describe('Sort spec, e.g. "priority:asc"'),
|
|
63604
|
+
});
|
|
63605
|
+
/**
|
|
63606
|
+
* The body of `PUT clusteringpolicy`. There is no POST: the presence of
|
|
63607
|
+
* `policy_id` is the only thing that distinguishes an update from a create.
|
|
63608
|
+
*/
|
|
63609
|
+
const ClusteringPolicyWriteBodySchema = v4.z.looseObject({
|
|
63610
|
+
policy_id: v4.z.string().optional().describe('Present on update, absent on create'),
|
|
63611
|
+
name: v4.z.string().min(1).describe('Policy name'),
|
|
63612
|
+
situation_custom_name: v4.z.string().describe('Naming template; empty string when unset'),
|
|
63613
|
+
stableWindow: v4.z.number().int().describe('Minutes before a cluster is stable'),
|
|
63614
|
+
maxStableWindow: v4.z.number().int().describe('Ceiling in minutes on cluster lifetime; 0 for none'),
|
|
63615
|
+
extensionWindow: v4.z.number().int().describe('Minutes a stable cluster may still absorb alarms; 0 for none'),
|
|
63616
|
+
status: v4.z.enum(CLUSTERING_POLICY_STATUSES).describe('ACTIVE or INACTIVE'),
|
|
63617
|
+
filterCriteria: ClusteringPolicyCriteriaSchema.describe('Which raw alarms this policy may cluster'),
|
|
63618
|
+
rcFilterCriteria: StoredCriteriaSchema.nullable()
|
|
63619
|
+
.optional()
|
|
63620
|
+
.describe('Root-cause candidates; null when unset'),
|
|
63621
|
+
clusteringCriteria: v4.z.array(ClusteringCriterionSchema).describe('Ranked clustering fields'),
|
|
63622
|
+
priority: v4.z.number().describe('Evaluation order, ascending'),
|
|
63623
|
+
version: v4.z.number().optional().describe('Update only: echoed from the fetched policy'),
|
|
63624
|
+
created: v4.z.number().optional().describe('Update only: echoed from the fetched policy'),
|
|
63625
|
+
lastUpdated: v4.z.number().optional().describe('Update only: echoed from the fetched policy'),
|
|
63626
|
+
updatedBy: v4.z.string().optional().describe('Update only: echoed from the fetched policy'),
|
|
63627
|
+
});
|
|
63628
|
+
// ---------------------------------------------------------------------------
|
|
63629
|
+
// Preview
|
|
63630
|
+
// ---------------------------------------------------------------------------
|
|
63631
|
+
/** For one clustering field: every value seen, and those that actually matched. */
|
|
63632
|
+
const ClusteringCriteriaValuesSchema = v4.z.record(v4.z.string(), v4.z.looseObject({
|
|
63633
|
+
allValues: v4.z.array(v4.z.string()).describe('Every value of this field across the previewed alarms'),
|
|
63634
|
+
matchingValues: v4.z.array(v4.z.string()).describe('The values that met the field weight'),
|
|
63635
|
+
}));
|
|
63636
|
+
/**
|
|
63637
|
+
* One alarm template inside a previewed cluster. `alarms` carries the full raw
|
|
63638
|
+
* alarm documents, so a preview response grows quickly with `size` — render a
|
|
63639
|
+
* summary, never the whole thing.
|
|
63640
|
+
*/
|
|
63641
|
+
const ClusteringPreviewTemplateSchema = v4.z.looseObject({
|
|
63642
|
+
templateId: v4.z.number().describe('Template id within the preview'),
|
|
63643
|
+
clusterId: v4.z.number().describe('Id of the cluster this template belongs to'),
|
|
63644
|
+
message: v4.z.string().optional().describe('Normalized template message (variable parts removed)'),
|
|
63645
|
+
earliestAlarmMessage: v4.z.string().optional().describe('Verbatim message of the earliest alarm'),
|
|
63646
|
+
host: v4.z.string().optional().describe('Host of the template'),
|
|
63647
|
+
product: v4.z.string().optional().describe('Source product of the template'),
|
|
63648
|
+
severity: v4.z.string().optional().describe('Highest severity in the template'),
|
|
63649
|
+
lastAlarmsCount: v4.z.number().optional().describe('Alarms in the template'),
|
|
63650
|
+
highestSeverityAlarmCount: v4.z.number().optional().describe('Alarms at the highest severity'),
|
|
63651
|
+
highestSeverityEarliestAlarmTime: v4.z.number().optional().describe('Epoch ms of the earliest highest-severity alarm'),
|
|
63652
|
+
alarms: v4.z.array(v4.z.unknown()).optional().describe('Full raw alarm documents — large; summarize before output'),
|
|
63653
|
+
totalAlarmIds: v4.z.array(v4.z.string()).optional().describe('alarm_unique_id of every alarm in the template'),
|
|
63654
|
+
closedAlarmIds: v4.z.array(v4.z.string()).optional().describe('Subset of totalAlarmIds already closed'),
|
|
63655
|
+
servicesImpacted: v4.z.array(v4.z.unknown()).optional().describe('Services the alarms in this template impact'),
|
|
63656
|
+
earliestSourceAlarmURL: v4.z.string().optional().describe('Deep link to the earliest alarm in its source product'),
|
|
63657
|
+
customAttributeMap: v4.z.record(v4.z.string(), v4.z.unknown()).optional().describe('Custom alarm attributes carried through'),
|
|
63658
|
+
templateMetaDataMap: v4.z
|
|
63659
|
+
.record(v4.z.string(), v4.z.looseObject({
|
|
63660
|
+
alarmCount: v4.z.number().describe('Alarms at this severity'),
|
|
63661
|
+
earliestAlarmTime: v4.z.number().describe('Epoch ms of the earliest alarm at this severity'),
|
|
63662
|
+
earliestAlarmMessage: v4.z.string().optional().describe('Message of that earliest alarm'),
|
|
63663
|
+
}))
|
|
63664
|
+
.optional()
|
|
63665
|
+
.describe('Per-severity rollup for the template'),
|
|
63666
|
+
});
|
|
63667
|
+
/** One cluster the policy would have produced over the previewed window. */
|
|
63668
|
+
const ClusteringPreviewClusterSchema = v4.z.looseObject({
|
|
63669
|
+
clusterId: v4.z.number().describe('Id of the cluster within this preview'),
|
|
63670
|
+
clusterName: v4.z.string().optional().describe('Name the policy would give the situation'),
|
|
63671
|
+
templates: v4.z.array(ClusteringPreviewTemplateSchema).describe('Alarm templates grouped into this cluster'),
|
|
63672
|
+
totalTemplates: v4.z.number().optional().describe('Templates in the cluster'),
|
|
63673
|
+
totalAlarms: v4.z.number().optional().describe('Alarms in the cluster'),
|
|
63674
|
+
severity: v4.z.string().optional().describe('Highest severity in the cluster'),
|
|
63675
|
+
product: v4.z.array(v4.z.string()).optional().describe('Distinct source products in the cluster'),
|
|
63676
|
+
mostImpacted_alarmId: v4.z.string().optional().describe('alarm_unique_id of the most impacted alarm'),
|
|
63677
|
+
clusteringCriteriaValues: ClusteringCriteriaValuesSchema.optional().describe('Per clustering field: the values seen and the values that matched'),
|
|
63678
|
+
});
|
|
63679
|
+
/** Response of `PUT clusteringpolicy/preview?size=&time=`. */
|
|
63680
|
+
const ClusteringPolicyPreviewResponseSchema = v4.z.looseObject({
|
|
63681
|
+
tenantId: v4.z.string().optional().describe('Tenant the preview ran against'),
|
|
63682
|
+
clusteringList: v4.z.array(ClusteringPreviewClusterSchema).describe('Clusters the policy would have produced'),
|
|
63683
|
+
totalAlarms: v4.z.number().describe('Raw alarms matched by filterCriteria in the window'),
|
|
63684
|
+
totalClusters: v4.z.number().describe('Situations the policy would have created'),
|
|
63685
|
+
totalTemplates: v4.z.number().describe('Distinct alarm templates across all clusters'),
|
|
63686
|
+
noiseReductionPercent: v4.z
|
|
63687
|
+
.number()
|
|
63688
|
+
.describe('Percentage fewer items an operator would see: 100 * (1 - totalClusters / totalAlarms)'),
|
|
63689
|
+
});
|
|
63690
|
+
// ---------------------------------------------------------------------------
|
|
63691
|
+
// Catalogs
|
|
63692
|
+
// ---------------------------------------------------------------------------
|
|
63693
|
+
/**
|
|
63694
|
+
* A catalog entry. `values` is NOT a closed vocabulary: for the window fields
|
|
63695
|
+
* it is `[min, max, default]` and for clustering fields `[min, max]`. Only
|
|
63696
|
+
* filtering fields use it as a value suggestion list.
|
|
63697
|
+
*/
|
|
63698
|
+
const PolicyFieldSchema = v4.z.looseObject({
|
|
63699
|
+
field: v4.z.string().describe('Field name to use in criteria'),
|
|
63700
|
+
fieldDescription: v4.z.string().describe('Human label the UI shows'),
|
|
63701
|
+
values: v4.z.array(v4.z.string()).optional().describe('Bounds or suggested values — see the schema note'),
|
|
63702
|
+
hideMoreOptions: v4.z.boolean().optional().describe('UI hint; no CLI meaning'),
|
|
63703
|
+
});
|
|
63704
|
+
/** One custom-naming operation usable inside `situation_custom_name`. */
|
|
63705
|
+
const PolicyNamingOperationSchema = v4.z.looseObject({
|
|
63706
|
+
opName: v4.z.string().describe('Operation name as written in the template, e.g. "rootcausealarm"'),
|
|
63707
|
+
displayName: v4.z.string().optional().describe('Human label'),
|
|
63708
|
+
parameters: v4.z
|
|
63709
|
+
.array(v4.z.looseObject({
|
|
63710
|
+
paramNumber: v4.z.number().describe('1-based parameter position'),
|
|
63711
|
+
isMandatory: v4.z.boolean().describe('Whether the parameter must be supplied'),
|
|
63712
|
+
type: v4.z.string().describe('String or Integer'),
|
|
63713
|
+
defaultValue: v4.z.string().optional().describe('Value used when the parameter is omitted'),
|
|
63714
|
+
}))
|
|
63715
|
+
.optional()
|
|
63716
|
+
.describe('Positional parameters the operation accepts'),
|
|
63717
|
+
supportedFields: v4.z
|
|
63718
|
+
.array(v4.z.looseObject({ field: v4.z.string(), fieldDescription: v4.z.string().optional() }))
|
|
63719
|
+
.optional()
|
|
63720
|
+
.describe('Alarm fields this operation may be applied to'),
|
|
63721
|
+
});
|
|
63722
|
+
/** Response of `GET policyfields` — everything the policy editor needs. */
|
|
63723
|
+
const PolicyFieldsResponseSchema = v4.z.looseObject({
|
|
63724
|
+
filteringFields: v4.z.array(PolicyFieldSchema).describe('Alarm fields usable in filterCriteria / rcFilterCriteria'),
|
|
63725
|
+
clusteringFields: v4.z.array(PolicyFieldSchema).describe('Fields usable in clusteringCriteria; values are [min, max] weights'),
|
|
63726
|
+
operationsDefinition: v4.z.array(PolicyNamingOperationSchema).describe('Operations usable in situation_custom_name'),
|
|
63727
|
+
stableWindow: PolicyFieldSchema.describe('Bounds for stableWindow: values are [min, max, default] minutes'),
|
|
63728
|
+
maxStableWindow: PolicyFieldSchema.describe('Bounds for maxStableWindow: values are [min, max, default] minutes'),
|
|
63729
|
+
extensionWindow: PolicyFieldSchema.describe('Bounds for extensionWindow: values are [min, max, default] minutes'),
|
|
63730
|
+
});
|
|
63731
|
+
/** Response of `GET tenantConfigAttributes` — tenant-wide clustering knobs. */
|
|
63732
|
+
const TenantConfigAttributeSchema = v4.z.looseObject({
|
|
63733
|
+
key: v4.z
|
|
63734
|
+
.string()
|
|
63735
|
+
.describe('Clustering engine attribute name. Internal tuning surface, not a documented API: only ' +
|
|
63736
|
+
'enable_algorithm_cluster has verified semantics — treat every other key as unverified'),
|
|
63737
|
+
value: v4.z
|
|
63738
|
+
.unknown()
|
|
63739
|
+
.describe('Attribute value; shape given by `type`. The server accepts out-of-range and nonsensical ' +
|
|
63740
|
+
'values without error, so a bad write fails silently and shows up later as broken clustering'),
|
|
63741
|
+
type: v4.z.string().describe('double, boolean, integer or list — a wrong type corrupts that attribute'),
|
|
63742
|
+
});
|
|
63743
|
+
const TenantConfigAttributesResponseSchema = v4.z.looseObject({
|
|
63744
|
+
tenantId: v4.z.string().optional().describe('Tenant the attributes belong to'),
|
|
63745
|
+
configAttrList: v4.z.array(TenantConfigAttributeSchema).describe('The tenant clustering configuration'),
|
|
63746
|
+
});
|
|
63747
|
+
/**
|
|
63748
|
+
* The body of `PUT tenantConfigAttributes`. A **partial** update: send only the
|
|
63749
|
+
* attributes to change, not the whole list. Measured on the lab tenant.
|
|
63750
|
+
*
|
|
63751
|
+
* **These attributes are the clustering engine's internal tuning surface, not a
|
|
63752
|
+
* documented public API.** Of the ~three dozen keys a tenant exposes, only
|
|
63753
|
+
* {@link ALGORITHMIC_SITUATIONS_KEY} has semantics established here; the rest
|
|
63754
|
+
* are unverified, the server accepts nonsensical values without complaint, the
|
|
63755
|
+
* effect is tenant-wide and continuous, and there is no reset-to-defaults. Read
|
|
63756
|
+
* the hazards in full on `ClusteringPolicyService.setTenantConfigAttributes`
|
|
63757
|
+
* before writing anything else.
|
|
63758
|
+
*/
|
|
63759
|
+
const TenantConfigAttributesWriteBodySchema = v4.z.looseObject({
|
|
63760
|
+
tenantId: v4.z.string().min(1).describe('Tenant to write to, as returned by the GET'),
|
|
63761
|
+
configAttrList: v4.z
|
|
63762
|
+
.array(TenantConfigAttributeSchema)
|
|
63763
|
+
.min(1)
|
|
63764
|
+
.describe('Only the attributes being changed; omitted keys keep their value. Send the narrowest set ' +
|
|
63765
|
+
'that does the job — this is a tenant-wide write with no reset-to-defaults'),
|
|
63766
|
+
});
|
|
63767
|
+
/** Response of `PUT tenantConfigAttributes`. */
|
|
63768
|
+
const TenantConfigAttributesWriteResponseSchema = v4.z.looseObject({
|
|
63769
|
+
Status: v4.z.string().describe('"Success" when the attributes were written'),
|
|
63770
|
+
});
|
|
63771
|
+
/**
|
|
63772
|
+
* The tenant attribute behind the UI's "Enable Algorithmic Situations" toggle.
|
|
63773
|
+
*
|
|
63774
|
+
* When it is on, the platform clusters alarms with its own algorithm and custom
|
|
63775
|
+
* situation policies are ignored or behave unpredictably — the single most
|
|
63776
|
+
* common reason a correct-looking policy produces nothing.
|
|
63777
|
+
*/
|
|
63778
|
+
const ALGORITHMIC_SITUATIONS_KEY = 'enable_algorithm_cluster';
|
|
63779
|
+
/** Reads one attribute out of a `tenantConfigAttributes` response. */
|
|
63780
|
+
function tenantConfigAttribute(config, key) {
|
|
63781
|
+
return (config.configAttrList ?? []).find((attribute) => attribute.key === key);
|
|
63782
|
+
}
|
|
63783
|
+
/**
|
|
63784
|
+
* Whether algorithmic situations are on for the tenant. `undefined` when the
|
|
63785
|
+
* attribute is absent, which is not the same as "off" — say so rather than
|
|
63786
|
+
* guessing.
|
|
63787
|
+
*/
|
|
63788
|
+
function algorithmicSituationsEnabled(config) {
|
|
63789
|
+
const attribute = tenantConfigAttribute(config, ALGORITHMIC_SITUATIONS_KEY);
|
|
63790
|
+
return attribute === undefined ? undefined : attribute.value === true;
|
|
63791
|
+
}
|
|
63792
|
+
// ---------------------------------------------------------------------------
|
|
63793
|
+
// Helpers
|
|
63794
|
+
// ---------------------------------------------------------------------------
|
|
63795
|
+
/** Platform-seeded policies, which a tenant user should not be editing casually. */
|
|
63796
|
+
function isBuiltInClusteringPolicy(policy) {
|
|
63797
|
+
return CLUSTERING_POLICY_BUILTIN_AUTHORS.includes(policy.updatedBy ?? '');
|
|
63798
|
+
}
|
|
63799
|
+
/** `[min, max]` from a catalog entry's `values`, when it carries bounds. */
|
|
63800
|
+
function policyFieldBounds(entry) {
|
|
63801
|
+
const values = entry?.values;
|
|
63802
|
+
if (!values || values.length < 2) {
|
|
63803
|
+
return undefined;
|
|
63804
|
+
}
|
|
63805
|
+
const min = Number(values[0]);
|
|
63806
|
+
const max = Number(values[1]);
|
|
63807
|
+
return Number.isFinite(min) && Number.isFinite(max) ? { min, max } : undefined;
|
|
63808
|
+
}
|
|
63809
|
+
/**
|
|
63810
|
+
* The create body with the UI's defaults filled in. `priority` defaults to
|
|
63811
|
+
* the current epoch-ms the way the UI seeds it, which sorts a new policy
|
|
63812
|
+
* after every platform-seeded one.
|
|
63813
|
+
*/
|
|
63814
|
+
function toClusteringPolicyWriteBody(input) {
|
|
63815
|
+
return {
|
|
63816
|
+
name: input.name,
|
|
63817
|
+
situation_custom_name: input.situationName ?? '',
|
|
63818
|
+
stableWindow: input.stableWindow ?? 30,
|
|
63819
|
+
maxStableWindow: input.maxStableWindow ?? 0,
|
|
63820
|
+
extensionWindow: input.extensionWindow ?? 0,
|
|
63821
|
+
status: input.status ?? 'ACTIVE',
|
|
63822
|
+
filterCriteria: input.filterCriteria,
|
|
63823
|
+
rcFilterCriteria: input.rcFilterCriteria ?? null,
|
|
63824
|
+
clusteringCriteria: input.clusteringCriteria,
|
|
63825
|
+
priority: input.priority ?? Date.now(),
|
|
63826
|
+
};
|
|
63827
|
+
}
|
|
63828
|
+
/** Renders `clusteringCriteria` as a short, comparable string for change lines. */
|
|
63829
|
+
function describeClusteringCriteria(criteria) {
|
|
63830
|
+
if (criteria.length === 0) {
|
|
63831
|
+
return '(none)';
|
|
63832
|
+
}
|
|
63833
|
+
return criteria
|
|
63834
|
+
.map((criterion) => {
|
|
63835
|
+
const properties = criterion.properties ?? {};
|
|
63836
|
+
const extras = Object.entries(properties)
|
|
63837
|
+
.filter(([, value]) => value !== undefined)
|
|
63838
|
+
.map(([key, value]) => `${key}=${String(value)}`);
|
|
63839
|
+
return `${criterion.field}@${criterion.value}${extras.length > 0 ? ` (${extras.join(', ')})` : ''}`;
|
|
63840
|
+
})
|
|
63841
|
+
.join(', ');
|
|
63842
|
+
}
|
|
63843
|
+
/**
|
|
63844
|
+
* The update body for an existing policy with only the patched fields changed;
|
|
63845
|
+
* everything else is echoed back verbatim, including the envelope fields the
|
|
63846
|
+
* server needs (`version`, `created`, `lastUpdated`, `updatedBy`).
|
|
63847
|
+
*
|
|
63848
|
+
* Returns human-readable `changes`; an empty list means nothing to save.
|
|
63849
|
+
*/
|
|
63850
|
+
function buildClusteringPolicyUpdateBody(existing, patch) {
|
|
63851
|
+
const changes = [];
|
|
63852
|
+
const scalar = (label, current, next) => {
|
|
63853
|
+
if (next === undefined || next === current) {
|
|
63854
|
+
return current;
|
|
63855
|
+
}
|
|
63856
|
+
changes.push(`${label}: ${String(current)} -> ${String(next)}`);
|
|
63857
|
+
return next;
|
|
63858
|
+
};
|
|
63859
|
+
const name = scalar('name', existing.name, patch.name);
|
|
63860
|
+
const situationName = scalar('situationName', existing.situation_custom_name ?? '', patch.situationName);
|
|
63861
|
+
const stableWindow = scalar('stableWindow', existing.stableWindow, patch.stableWindow);
|
|
63862
|
+
const maxStableWindow = scalar('maxStableWindow', existing.maxStableWindow ?? 0, patch.maxStableWindow);
|
|
63863
|
+
const extensionWindow = scalar('extensionWindow', existing.extensionWindow ?? 0, patch.extensionWindow);
|
|
63864
|
+
const status = scalar('status', existing.status, patch.status);
|
|
63865
|
+
const priority = scalar('priority', existing.priority, patch.priority);
|
|
63866
|
+
let filterCriteria = existing.filterCriteria;
|
|
63867
|
+
if (patch.filterCriteria !== undefined) {
|
|
63868
|
+
changes.push('filter: replaced');
|
|
63869
|
+
filterCriteria = patch.filterCriteria;
|
|
63870
|
+
}
|
|
63871
|
+
// The server returns `{}` for an unset root-cause filter; normalize it back
|
|
63872
|
+
// to null so an untouched policy does not echo an invalid criteria tree.
|
|
63873
|
+
let rcFilterCriteria = isEmptyCriteria(existing.rcFilterCriteria)
|
|
63874
|
+
? null
|
|
63875
|
+
: existing.rcFilterCriteria;
|
|
63876
|
+
if (patch.rcFilterCriteria !== undefined) {
|
|
63877
|
+
const cleared = patch.rcFilterCriteria === null;
|
|
63878
|
+
if (!cleared || rcFilterCriteria !== null) {
|
|
63879
|
+
changes.push(cleared ? 'rcFilter: cleared' : 'rcFilter: replaced');
|
|
63880
|
+
}
|
|
63881
|
+
rcFilterCriteria = patch.rcFilterCriteria;
|
|
63882
|
+
}
|
|
63883
|
+
let clusteringCriteria = existing.clusteringCriteria;
|
|
63884
|
+
if (patch.clusteringCriteria !== undefined) {
|
|
63885
|
+
const before = describeClusteringCriteria(existing.clusteringCriteria);
|
|
63886
|
+
const after = describeClusteringCriteria(patch.clusteringCriteria);
|
|
63887
|
+
if (before !== after) {
|
|
63888
|
+
changes.push(`clustering: ${before} -> ${after}`);
|
|
63889
|
+
clusteringCriteria = patch.clusteringCriteria;
|
|
63890
|
+
}
|
|
63891
|
+
}
|
|
63892
|
+
const body = {
|
|
63893
|
+
policy_id: existing.policy_id,
|
|
63894
|
+
name,
|
|
63895
|
+
situation_custom_name: situationName,
|
|
63896
|
+
stableWindow,
|
|
63897
|
+
maxStableWindow,
|
|
63898
|
+
extensionWindow,
|
|
63899
|
+
status,
|
|
63900
|
+
filterCriteria,
|
|
63901
|
+
rcFilterCriteria,
|
|
63902
|
+
clusteringCriteria,
|
|
63903
|
+
priority,
|
|
63904
|
+
};
|
|
63905
|
+
if (existing.version !== undefined) {
|
|
63906
|
+
body.version = existing.version;
|
|
63907
|
+
}
|
|
63908
|
+
if (existing.created !== undefined) {
|
|
63909
|
+
body.created = existing.created;
|
|
63910
|
+
}
|
|
63911
|
+
if (existing.lastUpdated !== undefined) {
|
|
63912
|
+
body.lastUpdated = existing.lastUpdated;
|
|
63913
|
+
}
|
|
63914
|
+
if (existing.updatedBy !== undefined) {
|
|
63915
|
+
body.updatedBy = existing.updatedBy;
|
|
63916
|
+
}
|
|
63917
|
+
return { body, changes };
|
|
63918
|
+
}
|
|
63919
|
+
/**
|
|
63920
|
+
* The seven-key subset `PUT clusteringpolicy/preview` accepts. Sending the
|
|
63921
|
+
* full write body is rejected, so the pick is deliberate.
|
|
63922
|
+
*/
|
|
63923
|
+
function toClusteringPolicyPreviewBody(body) {
|
|
63924
|
+
return {
|
|
63925
|
+
clusteringCriteria: body.clusteringCriteria,
|
|
63926
|
+
filterCriteria: body.filterCriteria,
|
|
63927
|
+
rcFilterCriteria: body.rcFilterCriteria ?? null,
|
|
63928
|
+
stableWindow: body.stableWindow,
|
|
63929
|
+
status: body.status,
|
|
63930
|
+
name: body.name,
|
|
63931
|
+
situation_custom_name: body.situation_custom_name,
|
|
63932
|
+
};
|
|
63933
|
+
}
|
|
63934
|
+
|
|
63435
63935
|
/**
|
|
63436
63936
|
* One row of an SLI group's match criteria. SLI groups select the metrics they
|
|
63437
63937
|
* watch by a list of these AND-ed filters (e.g. "Source contains bd605" AND
|
|
@@ -70611,6 +71111,232 @@ class ChannelService {
|
|
|
70611
71111
|
}
|
|
70612
71112
|
}
|
|
70613
71113
|
|
|
71114
|
+
var NullSimpleLog$6 = Logging.NullSimpleLog;
|
|
71115
|
+
const BASE = 'oi/v2/api/clusteralarms';
|
|
71116
|
+
const POLICY = `${BASE}/clusteringpolicy`;
|
|
71117
|
+
/**
|
|
71118
|
+
* Custom situation policies (the product's "custom situation definitions";
|
|
71119
|
+
* the API's clustering policies). Backs the `situation *-custom-situation-policy`
|
|
71120
|
+
* CLI commands.
|
|
71121
|
+
*
|
|
71122
|
+
* Uses `oiPost`/`oiGet`/`oiPut`/`oiDelete` (OI namespace). Requests are
|
|
71123
|
+
* validated with `parse` (throws); responses with `safeParse` (warn + return
|
|
71124
|
+
* raw on mismatch).
|
|
71125
|
+
*/
|
|
71126
|
+
class ClusteringPolicyService {
|
|
71127
|
+
dxSaasService;
|
|
71128
|
+
log;
|
|
71129
|
+
constructor(dxSaasService, log = new NullSimpleLog$6()) {
|
|
71130
|
+
this.dxSaasService = dxSaasService;
|
|
71131
|
+
this.log = log;
|
|
71132
|
+
}
|
|
71133
|
+
/**
|
|
71134
|
+
* Lists policies, lowest `priority` first.
|
|
71135
|
+
*
|
|
71136
|
+
* `POST oi/v2/api/clusteralarms/clusteringpolicy/search`
|
|
71137
|
+
*
|
|
71138
|
+
* @remarks The response is validated, not thrown on.
|
|
71139
|
+
* @throws ZodError when the request window is malformed.
|
|
71140
|
+
*/
|
|
71141
|
+
async listPolicies(request = {}) {
|
|
71142
|
+
const body = {
|
|
71143
|
+
recordFrom: 0,
|
|
71144
|
+
recordTo: 1000,
|
|
71145
|
+
sortCol: 'priority:asc',
|
|
71146
|
+
...request,
|
|
71147
|
+
};
|
|
71148
|
+
ClusteringPolicySearchRequestSchema.parse(body);
|
|
71149
|
+
const raw = await this.dxSaasService.oiPost(`${POLICY}/search`, body);
|
|
71150
|
+
const result = ClusteringPolicySearchResponseSchema.safeParse(raw);
|
|
71151
|
+
if (!result.success) {
|
|
71152
|
+
this.log.warn('ClusteringPolicySearchResponse validation warning:', result.error.message);
|
|
71153
|
+
}
|
|
71154
|
+
return raw;
|
|
71155
|
+
}
|
|
71156
|
+
/**
|
|
71157
|
+
* One policy by id.
|
|
71158
|
+
*
|
|
71159
|
+
* `GET oi/v2/api/clusteralarms/clusteringpolicy/{policyId}`
|
|
71160
|
+
*
|
|
71161
|
+
* @remarks The server returns the same `{searchPolicyResults, displayCount}`
|
|
71162
|
+
* envelope as the search, with one result; this unwraps it.
|
|
71163
|
+
* @throws Error when no policy has that id.
|
|
71164
|
+
*/
|
|
71165
|
+
async getPolicy(policyId) {
|
|
71166
|
+
const raw = await this.dxSaasService.oiGet(`${POLICY}/${encodeURIComponent(policyId)}`);
|
|
71167
|
+
const result = ClusteringPolicySearchResponseSchema.safeParse(raw);
|
|
71168
|
+
if (!result.success) {
|
|
71169
|
+
this.log.warn('ClusteringPolicy detail validation warning:', result.error.message);
|
|
71170
|
+
}
|
|
71171
|
+
const policy = raw.searchPolicyResults?.[0];
|
|
71172
|
+
if (!policy) {
|
|
71173
|
+
throw new Error(`No custom situation policy with policyId '${policyId}' was found.`);
|
|
71174
|
+
}
|
|
71175
|
+
return policy;
|
|
71176
|
+
}
|
|
71177
|
+
/**
|
|
71178
|
+
* Creates or updates a policy. There is no POST — the presence of
|
|
71179
|
+
* `policy_id` in the body is what makes this an update.
|
|
71180
|
+
*
|
|
71181
|
+
* `PUT oi/v2/api/clusteralarms/clusteringpolicy`
|
|
71182
|
+
*
|
|
71183
|
+
* @remarks An update can return a policy with a **new** `policy_id` and an
|
|
71184
|
+
* incremented `version`, after which the id that was sent stops resolving.
|
|
71185
|
+
* Measured on the lab tenant: it does for a policy created ACTIVE, and does
|
|
71186
|
+
* not for one created INACTIVE (even after switching that one to ACTIVE).
|
|
71187
|
+
* Callers must read the id back off the response rather than reusing theirs.
|
|
71188
|
+
* @throws ZodError when the body is malformed.
|
|
71189
|
+
*/
|
|
71190
|
+
async savePolicy(body) {
|
|
71191
|
+
ClusteringPolicyWriteBodySchema.parse(body);
|
|
71192
|
+
const raw = await this.dxSaasService.oiPut(POLICY, body);
|
|
71193
|
+
const result = ClusteringPolicySchema.safeParse(raw);
|
|
71194
|
+
if (!result.success) {
|
|
71195
|
+
this.log.warn('ClusteringPolicy save response validation warning:', result.error.message);
|
|
71196
|
+
}
|
|
71197
|
+
return raw;
|
|
71198
|
+
}
|
|
71199
|
+
/**
|
|
71200
|
+
* Permanently deletes a policy.
|
|
71201
|
+
*
|
|
71202
|
+
* `DELETE oi/v2/api/clusteralarms/clusteringpolicy/{policyId}`
|
|
71203
|
+
*
|
|
71204
|
+
* @remarks The server answers with an empty body; callers should verify by
|
|
71205
|
+
* re-listing rather than trusting the response.
|
|
71206
|
+
*/
|
|
71207
|
+
async deletePolicy(policyId) {
|
|
71208
|
+
await this.dxSaasService.oiDelete(`${POLICY}/${encodeURIComponent(policyId)}`);
|
|
71209
|
+
}
|
|
71210
|
+
/**
|
|
71211
|
+
* Replays a candidate policy over recent alarms without saving it: how many
|
|
71212
|
+
* raw alarms it would match, how many situations it would create, and the
|
|
71213
|
+
* resulting noise reduction.
|
|
71214
|
+
*
|
|
71215
|
+
* `PUT oi/v2/api/clusteralarms/clusteringpolicy/preview?size=&time=`
|
|
71216
|
+
*
|
|
71217
|
+
* @param body - The policy to preview; only the seven keys the endpoint
|
|
71218
|
+
* accepts are sent (see `toClusteringPolicyPreviewBody`).
|
|
71219
|
+
* @param timeSeconds - Look-back window in seconds, e.g. 86400 for a day.
|
|
71220
|
+
* @param size - Maximum raw alarms to scan (the UI sends 1000).
|
|
71221
|
+
* @remarks `clusteringList[].templates[].alarms` carries whole raw alarm
|
|
71222
|
+
* documents, so the response grows quickly with `size` — summarize it.
|
|
71223
|
+
* @example
|
|
71224
|
+
* ```ts
|
|
71225
|
+
* const preview = await service.previewPolicy(body, 86400);
|
|
71226
|
+
* console.log(preview.totalAlarms, preview.totalClusters, preview.noiseReductionPercent);
|
|
71227
|
+
* ```
|
|
71228
|
+
*/
|
|
71229
|
+
async previewPolicy(body, timeSeconds, size = 1000) {
|
|
71230
|
+
const raw = await this.dxSaasService.oiPut(`${POLICY}/preview`, toClusteringPolicyPreviewBody(body), { size, time: timeSeconds });
|
|
71231
|
+
const result = ClusteringPolicyPreviewResponseSchema.safeParse(raw);
|
|
71232
|
+
if (!result.success) {
|
|
71233
|
+
this.log.warn('ClusteringPolicyPreviewResponse validation warning:', result.error.message);
|
|
71234
|
+
}
|
|
71235
|
+
return raw;
|
|
71236
|
+
}
|
|
71237
|
+
/**
|
|
71238
|
+
* The policy editor's catalogs: filterable alarm fields, clustering fields
|
|
71239
|
+
* with their weight bounds, the custom-naming operations, and the window
|
|
71240
|
+
* bounds.
|
|
71241
|
+
*
|
|
71242
|
+
* `GET oi/v2/api/clusteralarms/policyfields`
|
|
71243
|
+
*
|
|
71244
|
+
* @remarks A catalog entry's `values` is not a closed vocabulary — for the
|
|
71245
|
+
* window fields it is `[min, max, default]` and for clustering fields
|
|
71246
|
+
* `[min, max]`.
|
|
71247
|
+
*/
|
|
71248
|
+
async listPolicyFields() {
|
|
71249
|
+
const raw = await this.dxSaasService.oiGet(`${BASE}/policyfields`);
|
|
71250
|
+
const result = PolicyFieldsResponseSchema.safeParse(raw);
|
|
71251
|
+
if (!result.success) {
|
|
71252
|
+
this.log.warn('PolicyFieldsResponse validation warning:', result.error.message);
|
|
71253
|
+
}
|
|
71254
|
+
return raw;
|
|
71255
|
+
}
|
|
71256
|
+
/**
|
|
71257
|
+
* Tenant-wide clustering configuration — the weights, thresholds and
|
|
71258
|
+
* feature flags that govern clustering for every policy.
|
|
71259
|
+
*
|
|
71260
|
+
* `GET oi/v2/api/clusteralarms/tenantConfigAttributes`
|
|
71261
|
+
*/
|
|
71262
|
+
async getTenantConfigAttributes() {
|
|
71263
|
+
const raw = await this.dxSaasService.oiGet(`${BASE}/tenantConfigAttributes`);
|
|
71264
|
+
const result = TenantConfigAttributesResponseSchema.safeParse(raw);
|
|
71265
|
+
if (!result.success) {
|
|
71266
|
+
this.log.warn('TenantConfigAttributesResponse validation warning:', result.error.message);
|
|
71267
|
+
}
|
|
71268
|
+
return raw;
|
|
71269
|
+
}
|
|
71270
|
+
/**
|
|
71271
|
+
* **RAW, UNGUARDED WRITE TO TENANT-WIDE CLUSTERING INTERNALS — read this
|
|
71272
|
+
* before calling it with anything but {@link ALGORITHMIC_SITUATIONS_KEY}.**
|
|
71273
|
+
*
|
|
71274
|
+
* `PUT oi/v2/api/clusteralarms/tenantConfigAttributes`
|
|
71275
|
+
*
|
|
71276
|
+
* This writes whatever key you hand it into the tenant's clustering engine
|
|
71277
|
+
* configuration. It is the platform's own internal tuning surface — roughly
|
|
71278
|
+
* three dozen attributes governing scoring weights, thresholds, HDBSCAN
|
|
71279
|
+
* parameters, stop words, retention and feature flags — and it is **not a
|
|
71280
|
+
* documented public API**.
|
|
71281
|
+
*
|
|
71282
|
+
* What we actually know, and what we do not:
|
|
71283
|
+
*
|
|
71284
|
+
* - **Only one key's semantics are established here.**
|
|
71285
|
+
* {@link ALGORITHMIC_SITUATIONS_KEY} was verified end to end against a lab
|
|
71286
|
+
* tenant. Every other key's meaning, valid range, interactions and blast
|
|
71287
|
+
* radius are **unverified** — the names are suggestive, not authoritative.
|
|
71288
|
+
* - **The server validates almost nothing.** Every write observed returned
|
|
71289
|
+
* `{"Status":"Success"}`, including ones the UI would never produce. A
|
|
71290
|
+
* nonsensical value is accepted, not rejected, and the damage shows up
|
|
71291
|
+
* later as situations that silently stop forming or form wrongly.
|
|
71292
|
+
* - **Tenant-wide, and it affects data you cannot re-derive.** Clustering is
|
|
71293
|
+
* continuous. A bad value corrupts the situations produced while it is set;
|
|
71294
|
+
* restoring the attribute does not reconstruct them.
|
|
71295
|
+
* - **There is no reset-to-defaults.** Nothing returns the platform's
|
|
71296
|
+
* shipped values, so an overwritten attribute is only recoverable if the
|
|
71297
|
+
* caller captured the previous value first.
|
|
71298
|
+
* - **The update is partial**, which cuts both ways: omitted keys are safe,
|
|
71299
|
+
* but a wrong `type` on a key you *do* send corrupts just that one quietly.
|
|
71300
|
+
*
|
|
71301
|
+
* Because of all that, no CLI command exposes this generically. The only
|
|
71302
|
+
* callers in this repo are `situation enable-algorithmic-situations` and
|
|
71303
|
+
* `situation disable-algorithmic-situations`, which touch exactly one boolean
|
|
71304
|
+
* and verify it by re-reading.
|
|
71305
|
+
*
|
|
71306
|
+
* If you are adding a caller for another attribute, the bar is: establish the
|
|
71307
|
+
* semantics empirically against a lab tenant first (never a customer tenant),
|
|
71308
|
+
* read and record the current value, make the change reversible, and verify
|
|
71309
|
+
* by re-reading. Prefer {@link getTenantConfigAttributes} — reading is free.
|
|
71310
|
+
*
|
|
71311
|
+
* @param tenantId - Tenant to write to; use the id {@link getTenantConfigAttributes}
|
|
71312
|
+
* returned rather than composing one, since the write expects that exact form.
|
|
71313
|
+
* @param attributes - Only the attributes to change. The update is partial:
|
|
71314
|
+
* keys that are not sent keep their current value. Send the narrowest set
|
|
71315
|
+
* that does the job.
|
|
71316
|
+
* @throws ZodError when the body is malformed. Note this validates the
|
|
71317
|
+
* *envelope* only — it cannot tell you whether a key or value is sane.
|
|
71318
|
+
* @example
|
|
71319
|
+
* ```ts
|
|
71320
|
+
* // The one supported use: flip algorithmic situations, having read it first.
|
|
71321
|
+
* const config = await service.getTenantConfigAttributes();
|
|
71322
|
+
* const before = algorithmicSituationsEnabled(config);
|
|
71323
|
+
* await service.setTenantConfigAttributes(config.tenantId, [
|
|
71324
|
+
* { key: ALGORITHMIC_SITUATIONS_KEY, value: false, type: 'boolean' },
|
|
71325
|
+
* ]);
|
|
71326
|
+
* ```
|
|
71327
|
+
*/
|
|
71328
|
+
async setTenantConfigAttributes(tenantId, attributes) {
|
|
71329
|
+
const body = { tenantId, configAttrList: attributes };
|
|
71330
|
+
TenantConfigAttributesWriteBodySchema.parse(body);
|
|
71331
|
+
const raw = await this.dxSaasService.oiPut(`${BASE}/tenantConfigAttributes`, body);
|
|
71332
|
+
const result = TenantConfigAttributesWriteResponseSchema.safeParse(raw);
|
|
71333
|
+
if (!result.success) {
|
|
71334
|
+
this.log.warn('TenantConfigAttributesWriteResponse validation warning:', result.error.message);
|
|
71335
|
+
}
|
|
71336
|
+
return raw;
|
|
71337
|
+
}
|
|
71338
|
+
}
|
|
71339
|
+
|
|
70614
71340
|
var PermissionType = exports.DashboardPermissionsUpdateRequest.PermissionType;
|
|
70615
71341
|
/**
|
|
70616
71342
|
* Service for Grafana-style dashboard API: themes, API keys, dashboards,
|
|
@@ -85653,6 +86379,7 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
|
|
|
85653
86379
|
dxBlobService: new BlobService(dxSaaSService, log),
|
|
85654
86380
|
dxBlobStorageService: new DataStoreBlobStorageService(dxSaaSService, log),
|
|
85655
86381
|
dxChannelService: new ChannelService(dxSaaSService, log),
|
|
86382
|
+
dxClusteringPolicyService: new ClusteringPolicyService(dxSaaSService, log),
|
|
85656
86383
|
dxDashboardService: new DashboardService(dxSaaSService),
|
|
85657
86384
|
dxDataStoreMetricsMetadataService: new DataStoreMetricsMetadataService(dxSaaSService, log),
|
|
85658
86385
|
dxDataStoreNASSService: new DataStoreNASSService(dxSaaSService, log),
|
|
@@ -85709,6 +86436,7 @@ exports.ALARM_QUEUE_FILTER_SETTING_KEYS = ALARM_QUEUE_FILTER_SETTING_KEYS;
|
|
|
85709
86436
|
exports.ALARM_VIEW_CATEGORIES = ALARM_VIEW_CATEGORIES;
|
|
85710
86437
|
exports.ALARM_VIEW_FIELD_PATHS = ALARM_VIEW_FIELD_PATHS;
|
|
85711
86438
|
exports.ALARM_VIEW_SEARCH_PATHS = ALARM_VIEW_SEARCH_PATHS;
|
|
86439
|
+
exports.ALGORITHMIC_SITUATIONS_KEY = ALGORITHMIC_SITUATIONS_KEY;
|
|
85712
86440
|
exports.AccService = AccService;
|
|
85713
86441
|
exports.AgentService = AgentService;
|
|
85714
86442
|
exports.AlarmCategorySchema = AlarmCategorySchema;
|
|
@@ -85796,6 +86524,11 @@ exports.BlobSchemaListResponseSchema = BlobSchemaListResponseSchema;
|
|
|
85796
86524
|
exports.BlobService = BlobService;
|
|
85797
86525
|
exports.BlobStoreParamsSchema = BlobStoreParamsSchema;
|
|
85798
86526
|
exports.BlobStoreResponseSchema = BlobStoreResponseSchema;
|
|
86527
|
+
exports.CLUSTERING_POLICY_BUILTIN_AUTHORS = CLUSTERING_POLICY_BUILTIN_AUTHORS;
|
|
86528
|
+
exports.CLUSTERING_POLICY_CONDITIONS = CLUSTERING_POLICY_CONDITIONS;
|
|
86529
|
+
exports.CLUSTERING_POLICY_PRESENCE_CONDITIONS = CLUSTERING_POLICY_PRESENCE_CONDITIONS;
|
|
86530
|
+
exports.CLUSTERING_POLICY_PREVIEW_RANGES = CLUSTERING_POLICY_PREVIEW_RANGES;
|
|
86531
|
+
exports.CLUSTERING_POLICY_STATUSES = CLUSTERING_POLICY_STATUSES;
|
|
85799
86532
|
exports.CURL_COHORT_VAR = CURL_COHORT_VAR;
|
|
85800
86533
|
exports.CURL_HOST_VAR = CURL_HOST_VAR;
|
|
85801
86534
|
exports.CURL_TOKEN_VAR = CURL_TOKEN_VAR;
|
|
@@ -85810,6 +86543,18 @@ exports.ChannelService = ChannelService;
|
|
|
85810
86543
|
exports.ChannelTemplateRefSchema = ChannelTemplateRefSchema;
|
|
85811
86544
|
exports.ChannelWriteBodySchema = ChannelWriteBodySchema;
|
|
85812
86545
|
exports.ChannelWriteResponseSchema = ChannelWriteResponseSchema;
|
|
86546
|
+
exports.ClusteringCriteriaValuesSchema = ClusteringCriteriaValuesSchema;
|
|
86547
|
+
exports.ClusteringCriterionPropertiesSchema = ClusteringCriterionPropertiesSchema;
|
|
86548
|
+
exports.ClusteringCriterionSchema = ClusteringCriterionSchema;
|
|
86549
|
+
exports.ClusteringPolicyCriteriaSchema = ClusteringPolicyCriteriaSchema;
|
|
86550
|
+
exports.ClusteringPolicyPreviewResponseSchema = ClusteringPolicyPreviewResponseSchema;
|
|
86551
|
+
exports.ClusteringPolicySchema = ClusteringPolicySchema;
|
|
86552
|
+
exports.ClusteringPolicySearchRequestSchema = ClusteringPolicySearchRequestSchema;
|
|
86553
|
+
exports.ClusteringPolicySearchResponseSchema = ClusteringPolicySearchResponseSchema;
|
|
86554
|
+
exports.ClusteringPolicyService = ClusteringPolicyService;
|
|
86555
|
+
exports.ClusteringPolicyWriteBodySchema = ClusteringPolicyWriteBodySchema;
|
|
86556
|
+
exports.ClusteringPreviewClusterSchema = ClusteringPreviewClusterSchema;
|
|
86557
|
+
exports.ClusteringPreviewTemplateSchema = ClusteringPreviewTemplateSchema;
|
|
85813
86558
|
exports.CreateAgentTokenRequestSchema = CreateAgentTokenRequestSchema;
|
|
85814
86559
|
exports.CreateInternalTokenRequestSchema = CreateInternalTokenRequestSchema;
|
|
85815
86560
|
exports.CreateTenantTokenRequestSchema = CreateTenantTokenRequestSchema;
|
|
@@ -85844,6 +86589,7 @@ exports.ENRICHMENT_PREVIEW_WINDOWS = ENRICHMENT_PREVIEW_WINDOWS;
|
|
|
85844
86589
|
exports.ENRICHMENT_SOURCES = ENRICHMENT_SOURCES;
|
|
85845
86590
|
exports.EXPORT_INCLUDE_TOKEN_ENV = EXPORT_INCLUDE_TOKEN_ENV;
|
|
85846
86591
|
exports.EdgeNumericIdSchema = EdgeNumericIdSchema;
|
|
86592
|
+
exports.EmptyCriteriaSchema = EmptyCriteriaSchema;
|
|
85847
86593
|
exports.EnrichmentCustomFieldSchema = EnrichmentCustomFieldSchema;
|
|
85848
86594
|
exports.EnrichmentCustomFieldsResponseSchema = EnrichmentCustomFieldsResponseSchema;
|
|
85849
86595
|
exports.EnrichmentMappingSchema = EnrichmentMappingSchema;
|
|
@@ -85984,9 +86730,12 @@ exports.PlatformAlertService = PlatformAlertService;
|
|
|
85984
86730
|
exports.PlatformManagementModuleService = PlatformManagementModuleService;
|
|
85985
86731
|
exports.PlatformMetricGroupingService = PlatformMetricGroupingService;
|
|
85986
86732
|
exports.PolicyDeleteResponseSchema = PolicyDeleteResponseSchema;
|
|
86733
|
+
exports.PolicyFieldSchema = PolicyFieldSchema;
|
|
86734
|
+
exports.PolicyFieldsResponseSchema = PolicyFieldsResponseSchema;
|
|
85987
86735
|
exports.PolicyFilterAtomSchema = PolicyFilterAtomSchema;
|
|
85988
86736
|
exports.PolicyFilterExpressionSchema = PolicyFilterExpressionSchema;
|
|
85989
86737
|
exports.PolicyLinkedEntitySchema = PolicyLinkedEntitySchema;
|
|
86738
|
+
exports.PolicyNamingOperationSchema = PolicyNamingOperationSchema;
|
|
85990
86739
|
exports.PolicyWriteBodySchema = PolicyWriteBodySchema;
|
|
85991
86740
|
exports.PolicyWriteResponseSchema = PolicyWriteResponseSchema;
|
|
85992
86741
|
exports.PublicKeyJsonResponseSchema = PublicKeyJsonResponseSchema;
|
|
@@ -86089,6 +86838,7 @@ exports.SourceNameRegExSpecifierSchema = SourceNameRegExSpecifierSchema;
|
|
|
86089
86838
|
exports.SourceNameSpecifierSchema = SourceNameSpecifierSchema;
|
|
86090
86839
|
exports.StatusPageComponentSchema = StatusPageComponentSchema;
|
|
86091
86840
|
exports.StatusPageComponentsSchema = StatusPageComponentsSchema;
|
|
86841
|
+
exports.StoredCriteriaSchema = StoredCriteriaSchema;
|
|
86092
86842
|
exports.TAGS_ATTRIBUTE_KEY = TAGS_ATTRIBUTE_KEY;
|
|
86093
86843
|
exports.TASService = TASService;
|
|
86094
86844
|
exports.TC_METRIC_CAP = TC_METRIC_CAP;
|
|
@@ -86164,6 +86914,10 @@ exports.TasViewSchema = TasViewSchema;
|
|
|
86164
86914
|
exports.TemplateDeleteResponseSchema = TemplateDeleteResponseSchema;
|
|
86165
86915
|
exports.TemplateWriteBodySchema = TemplateWriteBodySchema;
|
|
86166
86916
|
exports.TemplateWriteResponseSchema = TemplateWriteResponseSchema;
|
|
86917
|
+
exports.TenantConfigAttributeSchema = TenantConfigAttributeSchema;
|
|
86918
|
+
exports.TenantConfigAttributesResponseSchema = TenantConfigAttributesResponseSchema;
|
|
86919
|
+
exports.TenantConfigAttributesWriteBodySchema = TenantConfigAttributesWriteBodySchema;
|
|
86920
|
+
exports.TenantConfigAttributesWriteResponseSchema = TenantConfigAttributesWriteResponseSchema;
|
|
86167
86921
|
exports.TenantProductSchema = TenantProductSchema;
|
|
86168
86922
|
exports.TenantProductsResponseSchema = TenantProductsResponseSchema;
|
|
86169
86923
|
exports.TenantRoleSchema = TenantRoleSchema;
|
|
@@ -86256,6 +87010,7 @@ exports.ags = ags;
|
|
|
86256
87010
|
exports.agsresponse = agsresponse;
|
|
86257
87011
|
exports.alarmFilterDisplayColumnsFor = alarmFilterDisplayColumnsFor;
|
|
86258
87012
|
exports.alertsForSliIndex = alertsForSliIndex;
|
|
87013
|
+
exports.algorithmicSituationsEnabled = algorithmicSituationsEnabled;
|
|
86259
87014
|
exports.allAlarmQueues = allAlarmQueues;
|
|
86260
87015
|
exports.apiTokenCreate = apiTokenCreate;
|
|
86261
87016
|
exports.apiTokenDelete = apiTokenDelete;
|
|
@@ -86269,6 +87024,7 @@ exports.buildAlarmFilterUpdateBody = buildAlarmFilterUpdateBody;
|
|
|
86269
87024
|
exports.buildAlarmQueueFilterExpression = buildAlarmQueueFilterExpression;
|
|
86270
87025
|
exports.buildAlarmQueueUpdateBody = buildAlarmQueueUpdateBody;
|
|
86271
87026
|
exports.buildAlertEntry = buildAlertEntry;
|
|
87027
|
+
exports.buildClusteringPolicyUpdateBody = buildClusteringPolicyUpdateBody;
|
|
86272
87028
|
exports.buildEnrichmentRuleUpdateBody = buildEnrichmentRuleUpdateBody;
|
|
86273
87029
|
exports.buildInventoryCustomFilter = buildInventoryCustomFilter;
|
|
86274
87030
|
exports.buildInventoryQueueUpdateBody = buildInventoryQueueUpdateBody;
|
|
@@ -86302,6 +87058,7 @@ exports.defaultItsmPropertyList = defaultItsmPropertyList;
|
|
|
86302
87058
|
exports.defaultRuleName = defaultRuleName;
|
|
86303
87059
|
exports.deriveSliAs = deriveSliAs;
|
|
86304
87060
|
exports.deriveVertexName = deriveVertexName;
|
|
87061
|
+
exports.describeClusteringCriteria = describeClusteringCriteria;
|
|
86305
87062
|
exports.displayColumnsFor = displayColumnsFor;
|
|
86306
87063
|
exports.dottedFileSlot = dottedFileSlot;
|
|
86307
87064
|
exports.draftKey = draftKey;
|
|
@@ -86346,9 +87103,11 @@ exports.isAlarmFilter = isAlarmFilter;
|
|
|
86346
87103
|
exports.isAlarmQueue = isAlarmQueue;
|
|
86347
87104
|
exports.isAlarmQueueNotFound = isAlarmQueueNotFound;
|
|
86348
87105
|
exports.isAuthorizationHeader = isAuthorizationHeader;
|
|
87106
|
+
exports.isBuiltInClusteringPolicy = isBuiltInClusteringPolicy;
|
|
86349
87107
|
exports.isBuiltInPolicy = isBuiltInPolicy;
|
|
86350
87108
|
exports.isBuiltInTemplate = isBuiltInTemplate;
|
|
86351
87109
|
exports.isDataStoreSchemaType = isDataStoreSchemaType;
|
|
87110
|
+
exports.isEmptyCriteria = isEmptyCriteria;
|
|
86352
87111
|
exports.isInventoryQueueNotFound = isInventoryQueueNotFound;
|
|
86353
87112
|
exports.isPersonalQueue = isPersonalQueue;
|
|
86354
87113
|
exports.isProductProvisioned = isProductProvisioned;
|
|
@@ -86417,6 +87176,7 @@ exports.parseSaasGateway = parseSaasGateway;
|
|
|
86417
87176
|
exports.parseServiceNowUrl = parseServiceNowUrl;
|
|
86418
87177
|
exports.planEnrichmentReorder = planEnrichmentReorder;
|
|
86419
87178
|
exports.policyCategoryGuard = policyCategoryGuard;
|
|
87179
|
+
exports.policyFieldBounds = policyFieldBounds;
|
|
86420
87180
|
exports.policyFilterAtoms = policyFilterAtoms;
|
|
86421
87181
|
exports.producedMetricName = producedMetricName;
|
|
86422
87182
|
exports.projectCustomAttributes = projectCustomAttributes;
|
|
@@ -86460,10 +87220,13 @@ exports.tagsGetAll = tagsGetAll;
|
|
|
86460
87220
|
exports.tcSourceNameMatches = tcSourceNameMatches;
|
|
86461
87221
|
exports.tcSourceNameToMmPattern = tcSourceNameToMmPattern;
|
|
86462
87222
|
exports.templateUsage = templateUsage;
|
|
87223
|
+
exports.tenantConfigAttribute = tenantConfigAttribute;
|
|
86463
87224
|
exports.timezonesList = timezonesList;
|
|
86464
87225
|
exports.toAlarmFilterWriteBody = toAlarmFilterWriteBody;
|
|
86465
87226
|
exports.toAlarmQueueWriteBody = toAlarmQueueWriteBody;
|
|
86466
87227
|
exports.toChannelWriteBody = toChannelWriteBody;
|
|
87228
|
+
exports.toClusteringPolicyPreviewBody = toClusteringPolicyPreviewBody;
|
|
87229
|
+
exports.toClusteringPolicyWriteBody = toClusteringPolicyWriteBody;
|
|
86467
87230
|
exports.toEnrichmentRuleCreateBody = toEnrichmentRuleCreateBody;
|
|
86468
87231
|
exports.toGroupMetricsRequest = toGroupMetricsRequest;
|
|
86469
87232
|
exports.toInventoryQueueWriteBody = toInventoryQueueWriteBody;
|