@dx-do/client 7.12.1 → 7.13.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 +1314 -115
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1299 -116
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/inventory/topology-rules/jexl/java-regex.d.ts +0 -14
- package/dist/src/lib/model/inventory/topology-rules/jexl/java-regex.d.ts.map +1 -1
- package/dist/src/lib/model/inventory/topology-rules/jexl-context.d.ts +34 -0
- package/dist/src/lib/model/inventory/topology-rules/jexl-context.d.ts.map +1 -0
- package/dist/src/lib/model/inventory/topology-rules/mm-translate.d.ts +5 -1
- package/dist/src/lib/model/inventory/topology-rules/mm-translate.d.ts.map +1 -1
- package/dist/src/lib/model/inventory/topology-rules/projection.d.ts +50 -3
- package/dist/src/lib/model/inventory/topology-rules/projection.d.ts.map +1 -1
- package/dist/src/lib/model/inventory/topology-rules/rule.d.ts +1 -1
- package/dist/src/lib/model/inventory/topology-rules/sourcename-dialect.d.ts +82 -0
- package/dist/src/lib/model/inventory/topology-rules/sourcename-dialect.d.ts.map +1 -0
- package/dist/src/lib/model/inventory/topology-rules/sourcename-dialect.fixtures.d.ts +25 -0
- package/dist/src/lib/model/inventory/topology-rules/sourcename-dialect.fixtures.d.ts.map +1 -0
- package/dist/src/lib/model/inventory/topology-rules/sourcename-lint.d.ts +25 -0
- package/dist/src/lib/model/inventory/topology-rules/sourcename-lint.d.ts.map +1 -0
- package/dist/src/lib/model/log/query-body.d.ts +2 -0
- package/dist/src/lib/model/log/query-body.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -58326,7 +58326,7 @@ var InventoryAttributes;
|
|
|
58326
58326
|
* web-react contracts generator) the SPA rule editor.
|
|
58327
58327
|
*
|
|
58328
58328
|
* Field semantics below are EMPIRICALLY CALIBRATED against THE_LABORATORY
|
|
58329
|
-
* (2026-08-03, see docs/inventorize/CALIBRATION.md) — where the official
|
|
58329
|
+
* (2026-08-03 .. 2026-09-04, see docs/inventorize/CALIBRATION.md) — where the official
|
|
58330
58330
|
* docs and the live server disagreed, the describe() text records the
|
|
58331
58331
|
* observed server behavior.
|
|
58332
58332
|
*/
|
|
@@ -58349,11 +58349,11 @@ const InventorizeRuleSchema = z.looseObject({
|
|
|
58349
58349
|
sourceName: z
|
|
58350
58350
|
.string()
|
|
58351
58351
|
.min(1)
|
|
58352
|
-
.describe('Metric source matcher
|
|
58352
|
+
.describe('Metric source matcher (SuperDomain|host|process|agent) in the Topology Creator regex dialect: full-string, case-insensitive. "|" outside parentheses is a LITERAL pipe — write it plainly, never "\\|". Alternation only inside a group: "SuperDomain|.*|(AMQ|KFK)|.*". Parentheses without a "|" are literal ("Tomcat (Prod)"). ". .* [...] ^ $ \\d \\w \\s" are active; "+ ? {n}" are literal (repeat the class instead) and a bare "*" is dropped. Wildcard-only patterns and bare substrings match nothing. See `dx-do help inventorize`.'),
|
|
58353
58353
|
attributeName: z
|
|
58354
58354
|
.string()
|
|
58355
58355
|
.optional()
|
|
58356
|
-
.describe('
|
|
58356
|
+
.describe('Attribute-path matcher. If omitted on save, the server fills in "<attributeParentFolder>.*" (pipes escaped) — which makes the parent folder a string PREFIX. MEASURED 2026-09-24: a hand-set value (literal or regex, pipes escaped or not) did NOT narrow the preview; narrow with the attribute_* / metric_* filters instead.'),
|
|
58357
58357
|
allowRegexOnAttributeName: z
|
|
58358
58358
|
.boolean()
|
|
58359
58359
|
.optional()
|
|
@@ -58361,18 +58361,18 @@ const InventorizeRuleSchema = z.looseObject({
|
|
|
58361
58361
|
attributeParentFolder: z
|
|
58362
58362
|
.string()
|
|
58363
58363
|
.optional()
|
|
58364
|
-
.describe('Literal attribute parent folder (no regex) anchoring matching and external
|
|
58364
|
+
.describe('Literal attribute parent folder (no regex) anchoring matching and the external ID "<layer>:TC|<sourceName>|<attributeParentFolder>[|nested folders]". It is a string PREFIX: "Queue" also admits "Queues|..." — name sibling folders apart. A parent containing "." (e.g. "JMX|Default|java.nio") matched nothing (measured) — stop before the dotted segment and raise nest_levels. EFFECTIVELY MANDATORY: rules without it are accepted by the API but silently match zero metrics. Optional here only so legacy persisted rules round-trip.'),
|
|
58365
58365
|
nest_levels: z
|
|
58366
58366
|
.number()
|
|
58367
58367
|
.int()
|
|
58368
58368
|
.min(0)
|
|
58369
|
-
.describe('Number of attribute-folder levels below attributeParentFolder included in the external ID (>= 0). Distinct nested folder paths at this depth produce distinct vertices. Snake_case on the wire.'),
|
|
58369
|
+
.describe('Number of attribute-folder levels below attributeParentFolder included in the external ID (>= 0). Distinct nested folder paths at this depth produce distinct vertices; deeper metrics collapse onto them. A metric with FEWER folders below the parent than nest_levels is matched (the preview lists it) but builds no vertex (measured). Snake_case on the wire.'),
|
|
58370
58370
|
vertexNameIndex: z
|
|
58371
58371
|
.number()
|
|
58372
58372
|
.int()
|
|
58373
58373
|
.min(1)
|
|
58374
58374
|
.optional()
|
|
58375
|
-
.describe('How many trailing pipe-segments of the generated externalId become the vertex name, counting right-to-left. Server default 1 = last segment; N
|
|
58375
|
+
.describe('How many trailing pipe-segments of the generated externalId become the vertex name, counting right-to-left. Server default 1 = last segment; N at or above the segment count = the whole externalId after "<layer>:", starting with "TC|".'),
|
|
58376
58376
|
type: z
|
|
58377
58377
|
.string()
|
|
58378
58378
|
.min(1)
|
|
@@ -58385,27 +58385,27 @@ const InventorizeRuleSchema = z.looseObject({
|
|
|
58385
58385
|
attribute_incl_filter: z
|
|
58386
58386
|
.array(z.string())
|
|
58387
58387
|
.optional()
|
|
58388
|
-
.describe('
|
|
58388
|
+
.describe('Exact include filters, tested against each folder segment from the nest_levels-th segment below attributeParentFolder down (and those segments joined with "|") — never the full path; with nest_levels 0 nothing matches. When non-empty a metric must match at least one.'),
|
|
58389
58389
|
attribute_incl_filter_regex: z
|
|
58390
58390
|
.array(z.string())
|
|
58391
58391
|
.optional()
|
|
58392
|
-
.describe('
|
|
58392
|
+
.describe('Full-match regex include filters, tested like attribute_incl_filter.'),
|
|
58393
58393
|
attribute_excl_filter: z
|
|
58394
58394
|
.array(z.string())
|
|
58395
58395
|
.optional()
|
|
58396
|
-
.describe('
|
|
58396
|
+
.describe('Exact exclude filters, tested like attribute_incl_filter; any match drops the metric.'),
|
|
58397
58397
|
attribute_excl_filter_regex: z
|
|
58398
58398
|
.array(z.string())
|
|
58399
58399
|
.optional()
|
|
58400
|
-
.describe('
|
|
58400
|
+
.describe('Full-match regex exclude filters, tested like attribute_incl_filter.'),
|
|
58401
58401
|
metric_incl_filter: z
|
|
58402
58402
|
.array(z.string())
|
|
58403
58403
|
.optional()
|
|
58404
|
-
.describe('
|
|
58404
|
+
.describe('Exact (whole-string) include filters on the metric name — the part after ":" in the attribute path.'),
|
|
58405
58405
|
metric_incl_filter_regex: z
|
|
58406
58406
|
.array(z.string())
|
|
58407
58407
|
.optional()
|
|
58408
|
-
.describe('
|
|
58408
|
+
.describe('Full-match regex include filters on the metric name.'),
|
|
58409
58409
|
metric_excl_filter: z
|
|
58410
58410
|
.array(z.string())
|
|
58411
58411
|
.optional()
|
|
@@ -58417,11 +58417,11 @@ const InventorizeRuleSchema = z.looseObject({
|
|
|
58417
58417
|
customAttributes: z
|
|
58418
58418
|
.record(z.string(), z.string())
|
|
58419
58419
|
.optional()
|
|
58420
|
-
.describe('Custom attributes stamped onto created vertices. Both KEYS and VALUES may contain ${...} JEXL templates evaluated per matched metric
|
|
58420
|
+
.describe('Custom attributes stamped onto created vertices. Both KEYS and VALUES may contain ${...} JEXL templates evaluated per matched metric. Variables: sourceName, attributeName, attributes.<name> (the metric\'s own attribute map; empty when absent), type, id. Helpers: fn:part(value, index) splits on "|" (0-based: for SuperDomain|host|process|agent, 1 is the host), fn:split(value, separator, index). Java String methods (toUpperCase, substring, replace, replaceAll, split, contains, ...), == != && || !, ternary and Elvis (?:). An unresolvable expression skips that one attribute (warning); the vertex is still created. Every vertex already carries standard attributes (host, process, agent, agentDomain, agentName, product, name, type, resourceType, configRuleId, createdBy) — a custom attribute with one of those names is silently dropped; name, type, createdBy, layer, source_product, ACNId, SourceProduct, serviceNames, external_ids and a few platform keys are rejected at save.'),
|
|
58421
58421
|
externalIdFormat: z
|
|
58422
58422
|
.string()
|
|
58423
58423
|
.optional()
|
|
58424
|
-
.describe('
|
|
58424
|
+
.describe('Order of the external-ID parts after "<layer>:TC|". Server default "${sourceName}|${attributeParentFolder}|${nest_levels}". Only these three substitutes, each once, joined by "|", are accepted — anything else fails the save (HTTP 500); a reordering is honoured.'),
|
|
58425
58425
|
timestamp: z.number().optional().describe('Server-maintained last-modified epoch millis. Read-only.'),
|
|
58426
58426
|
createdTimestamp: z.number().optional().describe('Server-maintained creation epoch millis. Read-only.'),
|
|
58427
58427
|
});
|
|
@@ -59192,6 +59192,146 @@ function defaultRuleName(type, variant) {
|
|
|
59192
59192
|
: `${type} inventorize rule`;
|
|
59193
59193
|
}
|
|
59194
59194
|
|
|
59195
|
+
/**
|
|
59196
|
+
* What a `customAttributes` template can see and call — the single source for
|
|
59197
|
+
* the inventorize cookbook's JEXL section (and so `dx-do help inventorize`),
|
|
59198
|
+
* the ui's sample inspector and help panel. Grounded in the Topology Creator
|
|
59199
|
+
* "Dynamic Custom Attributes" reference and the local evaluator; every
|
|
59200
|
+
* `example` is executed against {@link JEXL_SAMPLE_CONTEXT} by the tests and
|
|
59201
|
+
* must produce `result`.
|
|
59202
|
+
*/
|
|
59203
|
+
/** The reference document's worked metric (scenario A). */
|
|
59204
|
+
const JEXL_SAMPLE_CONTEXT = {
|
|
59205
|
+
id: 'wD_KB-BI-94E-_pMUPq4B',
|
|
59206
|
+
sourceName: 'SuperDomain|lnx-amq-prd02|AMQ|prd02-amq',
|
|
59207
|
+
attributeName: 'Queues|DLQ: Message Count Rate',
|
|
59208
|
+
type: 513,
|
|
59209
|
+
attributes: { host: 'lnx-amq-prd02', metric_name: 'Message Count Rate' },
|
|
59210
|
+
};
|
|
59211
|
+
const JEXL_CONTEXT_CATALOG = {
|
|
59212
|
+
variables: [
|
|
59213
|
+
{
|
|
59214
|
+
name: 'sourceName',
|
|
59215
|
+
type: 'String',
|
|
59216
|
+
description: 'The metric source path — SuperDomain|host|process|agent.',
|
|
59217
|
+
example: '${ sourceName }',
|
|
59218
|
+
result: 'SuperDomain|lnx-amq-prd02|AMQ|prd02-amq',
|
|
59219
|
+
},
|
|
59220
|
+
{
|
|
59221
|
+
name: 'attributeName',
|
|
59222
|
+
type: 'String',
|
|
59223
|
+
description: 'The attribute path below the source — folders, then ":" and the metric name.',
|
|
59224
|
+
example: '${ attributeName }',
|
|
59225
|
+
result: 'Queues|DLQ: Message Count Rate',
|
|
59226
|
+
},
|
|
59227
|
+
{
|
|
59228
|
+
name: 'attributes.<name>',
|
|
59229
|
+
type: 'Map<String, String>',
|
|
59230
|
+
description: "The metric's own attribute map. Empty when the metric has none, so a reference to a missing key skips that one custom attribute. Keys that are not identifiers use brackets: attributes['a::b'].",
|
|
59231
|
+
example: '${ attributes.host }',
|
|
59232
|
+
result: 'lnx-amq-prd02',
|
|
59233
|
+
},
|
|
59234
|
+
{
|
|
59235
|
+
name: 'type',
|
|
59236
|
+
type: 'Integer',
|
|
59237
|
+
description: 'The metric type code.',
|
|
59238
|
+
example: '${ type }',
|
|
59239
|
+
result: '513',
|
|
59240
|
+
},
|
|
59241
|
+
{
|
|
59242
|
+
name: 'id',
|
|
59243
|
+
type: 'String',
|
|
59244
|
+
description: 'The metric id.',
|
|
59245
|
+
example: '${ id }',
|
|
59246
|
+
result: 'wD_KB-BI-94E-_pMUPq4B',
|
|
59247
|
+
},
|
|
59248
|
+
],
|
|
59249
|
+
helpers: [
|
|
59250
|
+
{
|
|
59251
|
+
signature: 'fn:part(value, index)',
|
|
59252
|
+
description: 'Splits on the pipe and returns element index (0-based). Preferred for pipe-delimited paths — no regex escaping.',
|
|
59253
|
+
example: '${ fn:part(sourceName, 1) }',
|
|
59254
|
+
result: 'lnx-amq-prd02',
|
|
59255
|
+
note: 'For SuperDomain|host|process|agent, 1 is the host, 2 the process, 3 the agent. (The reference document labels fn:part(sourceName, 2) "host"; it returns the process.)',
|
|
59256
|
+
},
|
|
59257
|
+
{
|
|
59258
|
+
signature: 'fn:part(attributeName, index)',
|
|
59259
|
+
description: 'The same helper on the attribute path.',
|
|
59260
|
+
example: '${ fn:part(attributeName, 1) }',
|
|
59261
|
+
result: 'DLQ: Message Count Rate',
|
|
59262
|
+
},
|
|
59263
|
+
{
|
|
59264
|
+
signature: 'fn:split(value, separator, index)',
|
|
59265
|
+
description: 'Splits on a literal separator string and returns element index (0-based).',
|
|
59266
|
+
example: "${ fn:split(sourceName, 'AMQ', 0) }",
|
|
59267
|
+
result: 'SuperDomain|lnx-amq-prd02|',
|
|
59268
|
+
},
|
|
59269
|
+
],
|
|
59270
|
+
stringMethods: [
|
|
59271
|
+
{ signature: '.toUpperCase()', description: 'Upper-cases.', example: '${ fn:part(sourceName, 3).toUpperCase() }', result: 'PRD02-AMQ' },
|
|
59272
|
+
{ signature: '.toLowerCase()', description: 'Lower-cases.', example: '${ fn:part(sourceName, 2).toLowerCase() }', result: 'amq' },
|
|
59273
|
+
{ signature: '.trim()', description: 'Strips surrounding whitespace.', example: "${ fn:split(attributeName, ':', 1).trim() }", result: 'Message Count Rate' },
|
|
59274
|
+
{
|
|
59275
|
+
signature: '.substring(begin, end)',
|
|
59276
|
+
description: 'Characters begin (inclusive) to end (exclusive). Out-of-range bounds skip the attribute; .substring(begin) runs to the end.',
|
|
59277
|
+
example: '${ attributeName.substring(0, 6) }',
|
|
59278
|
+
result: 'Queues',
|
|
59279
|
+
},
|
|
59280
|
+
{ signature: '.replace(target, replacement)', description: 'Replaces every literal occurrence.', example: "${ fn:part(sourceName, 3).replace('-amq', '') }", result: 'prd02' },
|
|
59281
|
+
{
|
|
59282
|
+
signature: '.replaceAll(regex, replacement)',
|
|
59283
|
+
description: 'Replaces every regex match. Inside a JSON rule body the backslash is doubled twice: "\\\\\\\\d+".',
|
|
59284
|
+
example: "${ attributes.host.replaceAll('\\\\d+', '') }",
|
|
59285
|
+
result: 'lnx-amq-prd',
|
|
59286
|
+
},
|
|
59287
|
+
{ signature: '.replaceFirst(regex, replacement)', description: 'Replaces the first regex match.', example: "${ attributes.host.replaceFirst('-', '_') }", result: 'lnx_amq-prd02' },
|
|
59288
|
+
{
|
|
59289
|
+
signature: '.split(regex)[n]',
|
|
59290
|
+
description: 'Splits on a regex. A pipe needs escaping here (\'\\\\|\') — prefer fn:part.',
|
|
59291
|
+
example: "${ fn:part(attributeName, 1).split(':')[0] }",
|
|
59292
|
+
result: 'DLQ',
|
|
59293
|
+
},
|
|
59294
|
+
{ signature: '.contains(s)', description: 'true when s occurs.', example: "${ sourceName.contains('prd') }", result: 'true' },
|
|
59295
|
+
{ signature: '.startsWith(s) / .endsWith(s)', description: 'Boundary checks.', example: "${ attributeName.startsWith('Queues') }", result: 'true' },
|
|
59296
|
+
{ signature: '.indexOf(s)', description: 'Position of s, or -1.', example: "${ sourceName.indexOf('AMQ') }", result: '26' },
|
|
59297
|
+
{ signature: '.length()', description: 'Number of characters.', example: '${ fn:part(sourceName, 2).length() }', result: '3' },
|
|
59298
|
+
],
|
|
59299
|
+
operators: [
|
|
59300
|
+
{
|
|
59301
|
+
signature: 'condition ? a : b',
|
|
59302
|
+
description: 'Ternary.',
|
|
59303
|
+
example: "${ attributes.host == 'lnx-amq-prd02' ? 'primary' : 'secondary' }",
|
|
59304
|
+
result: 'primary',
|
|
59305
|
+
},
|
|
59306
|
+
{
|
|
59307
|
+
signature: 'value ?: fallback',
|
|
59308
|
+
description: 'Elvis: the fallback when value is missing, empty or false.',
|
|
59309
|
+
example: "${ attributes.owner ?: 'unowned' }",
|
|
59310
|
+
result: 'unowned',
|
|
59311
|
+
},
|
|
59312
|
+
{ signature: '== != (eq ne)', description: 'Equality.', example: "${ fn:part(sourceName, 2) == 'AMQ' }", result: 'true' },
|
|
59313
|
+
{
|
|
59314
|
+
signature: '&& || ! (and or not)',
|
|
59315
|
+
description: 'Logic.',
|
|
59316
|
+
example: "${ sourceName.contains('prd') && !sourceName.contains('dev') ? 'PRODUCTION' : 'OTHER' }",
|
|
59317
|
+
result: 'PRODUCTION',
|
|
59318
|
+
},
|
|
59319
|
+
{
|
|
59320
|
+
signature: 'text ${ … } text',
|
|
59321
|
+
description: 'Mixed template: text outside ${ } is literal.',
|
|
59322
|
+
example: '${ fn:part(sourceName, 2) }-${ fn:part(sourceName, 3) }',
|
|
59323
|
+
result: 'AMQ-prd02-amq',
|
|
59324
|
+
},
|
|
59325
|
+
],
|
|
59326
|
+
rules: [
|
|
59327
|
+
'Expressions live inside ${ … }; everything outside is literal, and a value with no ${ } is stored unchanged.',
|
|
59328
|
+
'Keys are templates too: "${ fn:part(sourceName, 2) }_seen": "yes" creates an attribute named AMQ_seen.',
|
|
59329
|
+
'An expression that cannot be resolved (missing attribute, index out of range, bad substring bounds, bad regex) skips only that attribute; the vertex is still created.',
|
|
59330
|
+
'Several metrics usually feed one vertex; each is evaluated separately, so an attribute that differs between them is not stable — template from the source path when you can.',
|
|
59331
|
+
'Inside a JSON rule body every regex backslash is written twice ("\\\\d" reaches the engine as \\d); on the dx-do command line quote the whole argument in single quotes.',
|
|
59332
|
+
],
|
|
59333
|
+
};
|
|
59334
|
+
|
|
59195
59335
|
/**
|
|
59196
59336
|
* Java-regex ↔ JavaScript bridge for the JEXL emulator.
|
|
59197
59337
|
*
|
|
@@ -59269,25 +59409,426 @@ function javaReplaceAll(value, pattern, replacement) {
|
|
|
59269
59409
|
function javaReplaceFirst(value, pattern, replacement) {
|
|
59270
59410
|
return value.replace(compile(pattern), replacement);
|
|
59271
59411
|
}
|
|
59412
|
+
|
|
59413
|
+
/**
|
|
59414
|
+
* The Topology Creator `sourceName` matching dialect — the engine the local
|
|
59415
|
+
* simulation uses and the catalog every help surface is rendered from.
|
|
59416
|
+
*
|
|
59417
|
+
* Measured on DXO2 26.8.2 (two tenants, 2026-09-01/04; a 23-case battery and a
|
|
59418
|
+
* 22-rule construct matrix, 22/22 agreement in preview AND materialised
|
|
59419
|
+
* vertices). The server compiles `java.util.regex` with CASE_INSENSITIVE and
|
|
59420
|
+
* matches with `matches()` (full string) — but only after a preprocessor that:
|
|
59421
|
+
*
|
|
59422
|
+
* 1. escapes every `|` outside a parenthesised group that contains a `|`
|
|
59423
|
+
* (so the segment separator is literal and a user-written `\|` becomes a
|
|
59424
|
+
* literal backslash followed by REAL alternation);
|
|
59425
|
+
* 2. keeps `( … | … )` groups as real alternation, escapes every other
|
|
59426
|
+
* parenthesis (so `Tomcat (Prod)` matches literally);
|
|
59427
|
+
* 3. escapes `+ ? { }` everywhere, pipe groups included;
|
|
59428
|
+
* 4. drops a `*` that does not follow a `.`;
|
|
59429
|
+
* 5. refuses wildcard-only patterns (`.*`, `^.*$`) — they match nothing.
|
|
59430
|
+
*
|
|
59431
|
+
* An unparseable result matches nothing (the API answers HTTP 200 with an
|
|
59432
|
+
* empty preview). This module reproduces exactly that; `[\pL]` (a Unicode
|
|
59433
|
+
* property inside a class) is the one construct the server honours that the
|
|
59434
|
+
* JavaScript engine here cannot, so it degrades to "no match" locally.
|
|
59435
|
+
*/
|
|
59436
|
+
/** Parenthesised regions that contain a `|` — the only place alternation is honoured. */
|
|
59437
|
+
function pipeGroupRanges(pattern) {
|
|
59438
|
+
const stack = [];
|
|
59439
|
+
const ranges = [];
|
|
59440
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
59441
|
+
if (pattern[i] === '(')
|
|
59442
|
+
stack.push(i);
|
|
59443
|
+
else if (pattern[i] === ')') {
|
|
59444
|
+
const start = stack.pop();
|
|
59445
|
+
if (start !== undefined && pattern.slice(start, i).includes('|'))
|
|
59446
|
+
ranges.push([start, i]);
|
|
59447
|
+
}
|
|
59448
|
+
}
|
|
59449
|
+
return ranges;
|
|
59450
|
+
}
|
|
59451
|
+
/** `.*`, `^.*$`, `.*.*`, `` — patterns the server refuses as catch-alls. */
|
|
59452
|
+
function isWildcardOnlySourceName(pattern) {
|
|
59453
|
+
return /^[.*^$]*$/.test(pattern);
|
|
59454
|
+
}
|
|
59455
|
+
/** The Topology Creator preprocessor: rule pattern → the Java regex the server compiles. */
|
|
59456
|
+
function tcSourceNameToJavaRegex(pattern) {
|
|
59457
|
+
const ranges = pipeGroupRanges(pattern);
|
|
59458
|
+
const inGroup = (i) => ranges.some(([s, e]) => i >= s && i <= e);
|
|
59459
|
+
let out = '';
|
|
59460
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
59461
|
+
const c = pattern[i];
|
|
59462
|
+
if (inGroup(i) && ('|()'.includes(c) || (c === '?' && pattern[i - 1] === '(')))
|
|
59463
|
+
out += c;
|
|
59464
|
+
else if ('|(){}+?'.includes(c))
|
|
59465
|
+
out += `\\${c}`;
|
|
59466
|
+
else if (c === '*' && pattern[i - 1] !== '.')
|
|
59467
|
+
continue;
|
|
59468
|
+
else
|
|
59469
|
+
out += c;
|
|
59470
|
+
}
|
|
59471
|
+
return out;
|
|
59472
|
+
}
|
|
59473
|
+
/** Compiles a rule pattern the way the server would. Never throws. */
|
|
59474
|
+
function compileTcSourceName(pattern) {
|
|
59475
|
+
if (isWildcardOnlySourceName(pattern)) {
|
|
59476
|
+
return {
|
|
59477
|
+
ok: false,
|
|
59478
|
+
reason: 'wildcard-only',
|
|
59479
|
+
message: `sourceName "${pattern}" is only wildcards — the server refuses it and matches nothing`,
|
|
59480
|
+
};
|
|
59481
|
+
}
|
|
59482
|
+
try {
|
|
59483
|
+
const js = javaRegexToJs(tcSourceNameToJavaRegex(pattern));
|
|
59484
|
+
return { ok: true, regex: new RegExp(`^(?:${js})$`, 'i') };
|
|
59485
|
+
}
|
|
59486
|
+
catch (err) {
|
|
59487
|
+
return {
|
|
59488
|
+
ok: false,
|
|
59489
|
+
reason: 'invalid',
|
|
59490
|
+
message: `sourceName "${pattern}" does not compile (${err.message}) — the server matches nothing and reports no error`,
|
|
59491
|
+
};
|
|
59492
|
+
}
|
|
59493
|
+
}
|
|
59494
|
+
/** Whether the Topology Creator would match `sourceName` against a rule's pattern. */
|
|
59495
|
+
function tcSourceNameMatches(sourceName, pattern) {
|
|
59496
|
+
const compiled = compileTcSourceName(pattern);
|
|
59497
|
+
return compiled.ok && compiled.regex.test(sourceName);
|
|
59498
|
+
}
|
|
59272
59499
|
/**
|
|
59273
|
-
*
|
|
59274
|
-
*
|
|
59275
|
-
*
|
|
59276
|
-
*
|
|
59500
|
+
* The Metrics-Metadata REGEX-specifier pattern that selects the same sources.
|
|
59501
|
+
* MM REGEX is a strict Java full match; the preprocessed pattern is already a
|
|
59502
|
+
* valid Java regex (literal pipes and parentheses arrive escaped). Pair it
|
|
59503
|
+
* with `ignoreCase: true` — the Topology Creator matches case-insensitively.
|
|
59277
59504
|
*/
|
|
59278
|
-
function
|
|
59279
|
-
|
|
59280
|
-
return javaFullMatch(sourceName, pipesEscaped);
|
|
59505
|
+
function tcSourceNameToMmPattern(pattern) {
|
|
59506
|
+
return tcSourceNameToJavaRegex(pattern);
|
|
59281
59507
|
}
|
|
59282
59508
|
/**
|
|
59283
|
-
*
|
|
59284
|
-
*
|
|
59285
|
-
*
|
|
59286
|
-
*
|
|
59509
|
+
* "What you might write → what actually happens → write this instead", one
|
|
59510
|
+
* row per trap. Rendered into the inventorize cookbook (and so into
|
|
59511
|
+
* `dx-do help inventorize` and the ui help panel) by the agentic-gen
|
|
59512
|
+
* generator; the linter's hints cite these ids. Keep the prose
|
|
59513
|
+
* tenant-neutral — it ships in the published corpus.
|
|
59287
59514
|
*/
|
|
59288
|
-
|
|
59289
|
-
|
|
59290
|
-
|
|
59515
|
+
const SOURCENAME_DIALECT_CATALOG = [
|
|
59516
|
+
{
|
|
59517
|
+
id: 'escaped-pipe',
|
|
59518
|
+
appliesTo: 'sourceName',
|
|
59519
|
+
title: 'Escaped pipes',
|
|
59520
|
+
youMightWrite: 'SuperDomain\\|host-01\\|AMQ\\|.*',
|
|
59521
|
+
intent: 'pipes escaped, as in a Metrics-Metadata query',
|
|
59522
|
+
whatHappens: 'The server escapes every pipe itself, so a backslash written before a pipe becomes a literal backslash followed by **real alternation**. Here the trailing `.*` becomes a branch of its own and the rule matches every source.',
|
|
59523
|
+
writeInstead: 'SuperDomain|host-01|AMQ|.*',
|
|
59524
|
+
fixMatches: [
|
|
59525
|
+
'SuperDomain|host-01|AMQ|agent-01',
|
|
59526
|
+
'SuperDomain|host-01|AMQ|agent-02',
|
|
59527
|
+
],
|
|
59528
|
+
example: {
|
|
59529
|
+
pattern: 'SuperDomain\\|host-01\\|AMQ\\|.*',
|
|
59530
|
+
sourceName: 'SuperDomain|host-02|KFK|agent-02',
|
|
59531
|
+
matches: true,
|
|
59532
|
+
},
|
|
59533
|
+
},
|
|
59534
|
+
{
|
|
59535
|
+
id: 'top-level-alternation',
|
|
59536
|
+
appliesTo: 'sourceName',
|
|
59537
|
+
title: 'Alternation outside parentheses',
|
|
59538
|
+
youMightWrite: 'SuperDomain|host-01|AMQ|agent-01|SuperDomain|host-02|AMQ|agent-02',
|
|
59539
|
+
intent: 'two full names joined by `|`',
|
|
59540
|
+
whatHappens: 'A `|` outside parentheses is a literal pipe, so this is one eight-segment name that no source has.',
|
|
59541
|
+
writeInstead: 'SuperDomain|(host-01|host-02)|AMQ|.*',
|
|
59542
|
+
fixMatches: [
|
|
59543
|
+
'SuperDomain|host-01|AMQ|agent-01',
|
|
59544
|
+
'SuperDomain|host-02|AMQ|agent-02',
|
|
59545
|
+
],
|
|
59546
|
+
example: {
|
|
59547
|
+
pattern: 'SuperDomain|host-01|AMQ|agent-01|SuperDomain|host-02|AMQ|agent-02',
|
|
59548
|
+
sourceName: 'SuperDomain|host-01|AMQ|agent-01',
|
|
59549
|
+
matches: false,
|
|
59550
|
+
},
|
|
59551
|
+
},
|
|
59552
|
+
{
|
|
59553
|
+
id: 'pipe-group',
|
|
59554
|
+
appliesTo: 'sourceName',
|
|
59555
|
+
title: 'Alternation inside parentheses',
|
|
59556
|
+
youMightWrite: 'SuperDomain|.*|(AMQ|KFK)|.*',
|
|
59557
|
+
whatHappens: 'Works: parentheses that contain a `|` are real alternation, and regex inside them is honoured (classes, `.*`, `(?:…)`, nesting). This is the only way to alternate.',
|
|
59558
|
+
writeInstead: 'SuperDomain|.*|(AMQ|KFK)|.*',
|
|
59559
|
+
fixMatches: [
|
|
59560
|
+
'SuperDomain|host-03|KFK|agent-03',
|
|
59561
|
+
'SuperDomain|host-01|AMQ|agent-01',
|
|
59562
|
+
],
|
|
59563
|
+
example: {
|
|
59564
|
+
pattern: 'SuperDomain|.*|(AMQ|KFK)|.*',
|
|
59565
|
+
sourceName: 'SuperDomain|host-03|KFK|agent-03',
|
|
59566
|
+
matches: true,
|
|
59567
|
+
},
|
|
59568
|
+
},
|
|
59569
|
+
{
|
|
59570
|
+
id: 'literal-parens',
|
|
59571
|
+
appliesTo: 'sourceName',
|
|
59572
|
+
title: 'Literal parentheses',
|
|
59573
|
+
youMightWrite: 'SuperDomain|app-01|Tomcat (Prod)|.*',
|
|
59574
|
+
whatHappens: 'Works: parentheses that do not enclose a `|` are literal characters, so this matches a process literally named `Tomcat (Prod)`. Regex inside them is not honoured.',
|
|
59575
|
+
writeInstead: 'SuperDomain|app-01|Tomcat (Prod)|.*',
|
|
59576
|
+
fixMatches: ['SuperDomain|app-01|Tomcat (Prod)|agent-01'],
|
|
59577
|
+
example: {
|
|
59578
|
+
pattern: 'SuperDomain|app-01|Tomcat (Prod)|.*',
|
|
59579
|
+
sourceName: 'SuperDomain|app-01|Tomcat (Prod)|agent-01',
|
|
59580
|
+
matches: true,
|
|
59581
|
+
},
|
|
59582
|
+
},
|
|
59583
|
+
{
|
|
59584
|
+
id: 'escaped-paren',
|
|
59585
|
+
appliesTo: 'sourceName',
|
|
59586
|
+
title: 'Escaped parentheses',
|
|
59587
|
+
youMightWrite: 'SuperDomain|app-01|Tomcat \\(Prod\\)|.*',
|
|
59588
|
+
whatHappens: 'A written `\\(` is doubled by the server and breaks the match.',
|
|
59589
|
+
writeInstead: 'SuperDomain|app-01|Tomcat (Prod)|.*',
|
|
59590
|
+
fixMatches: ['SuperDomain|app-01|Tomcat (Prod)|agent-01'],
|
|
59591
|
+
example: {
|
|
59592
|
+
pattern: 'SuperDomain|app-01|Tomcat \\(Prod\\)|.*',
|
|
59593
|
+
sourceName: 'SuperDomain|app-01|Tomcat (Prod)|agent-01',
|
|
59594
|
+
matches: false,
|
|
59595
|
+
},
|
|
59596
|
+
},
|
|
59597
|
+
{
|
|
59598
|
+
id: 'parens-pipe-trap',
|
|
59599
|
+
appliesTo: 'sourceName',
|
|
59600
|
+
title: 'Literal parentheses around alternatives',
|
|
59601
|
+
youMightWrite: 'SuperDomain|app-01|Tomcat (Prod|Dev)|.*',
|
|
59602
|
+
intent: 'to match `Tomcat (Prod)` or `Tomcat (Dev)`',
|
|
59603
|
+
whatHappens: 'Adding a `|` turns the parentheses into a group: it matches `Tomcat Prod` or `Tomcat Dev`, no longer the literal `Tomcat (Prod)`.',
|
|
59604
|
+
writeInstead: 'SuperDomain|app-01|Tomcat .(Prod|Dev).|.*',
|
|
59605
|
+
fixMatches: [
|
|
59606
|
+
'SuperDomain|app-01|Tomcat (Prod)|agent-01',
|
|
59607
|
+
'SuperDomain|app-01|Tomcat (Dev)|agent-01',
|
|
59608
|
+
],
|
|
59609
|
+
advice: 'Let `.` stand for each literal parenthesis, or write two rules.',
|
|
59610
|
+
example: {
|
|
59611
|
+
pattern: 'SuperDomain|app-01|Tomcat (Prod|Dev)|.*',
|
|
59612
|
+
sourceName: 'SuperDomain|app-01|Tomcat (Prod)|agent-01',
|
|
59613
|
+
matches: false,
|
|
59614
|
+
},
|
|
59615
|
+
},
|
|
59616
|
+
{
|
|
59617
|
+
id: 'quantifier-literal',
|
|
59618
|
+
appliesTo: 'sourceName',
|
|
59619
|
+
title: 'Quantifiers: +, ? and {n}',
|
|
59620
|
+
youMightWrite: 'SuperDomain|web[0-9]{2}|AMQ|.*',
|
|
59621
|
+
intent: 'also `\\d+` or `web0?1`',
|
|
59622
|
+
whatHappens: '`+`, `?` and `{n}` are escaped before the regex engine sees them — inside `(…|…)` groups too — so they only match those literal characters.',
|
|
59623
|
+
writeInstead: 'SuperDomain|web[0-9][0-9]|AMQ|.*',
|
|
59624
|
+
fixMatches: [
|
|
59625
|
+
'SuperDomain|web01|AMQ|agent-01',
|
|
59626
|
+
'SuperDomain|web42|AMQ|agent-02',
|
|
59627
|
+
],
|
|
59628
|
+
advice: 'Repeat the class once per character; use `.*` for "one or more" (`\\d.*`) and a group for "optional" (`web(01|1)`).',
|
|
59629
|
+
example: {
|
|
59630
|
+
pattern: 'SuperDomain|web[0-9]{2}|AMQ|.*',
|
|
59631
|
+
sourceName: 'SuperDomain|web01|AMQ|agent-01',
|
|
59632
|
+
matches: false,
|
|
59633
|
+
},
|
|
59634
|
+
},
|
|
59635
|
+
{
|
|
59636
|
+
id: 'bare-star',
|
|
59637
|
+
appliesTo: 'sourceName',
|
|
59638
|
+
title: 'A * without a dot',
|
|
59639
|
+
youMightWrite: 'SuperDomain|cache|AMQ|agent-aa*',
|
|
59640
|
+
whatHappens: 'A `*` that does not follow a `.` is dropped: `aa*` means exactly `aa`.',
|
|
59641
|
+
writeInstead: 'SuperDomain|cache|AMQ|agent-aa.*',
|
|
59642
|
+
fixMatches: [
|
|
59643
|
+
'SuperDomain|cache|AMQ|agent-aa',
|
|
59644
|
+
'SuperDomain|cache|AMQ|agent-aaa',
|
|
59645
|
+
],
|
|
59646
|
+
example: {
|
|
59647
|
+
pattern: 'SuperDomain|cache|AMQ|agent-aa*',
|
|
59648
|
+
sourceName: 'SuperDomain|cache|AMQ|agent-aaa',
|
|
59649
|
+
matches: false,
|
|
59650
|
+
},
|
|
59651
|
+
},
|
|
59652
|
+
{
|
|
59653
|
+
id: 'case-insensitive',
|
|
59654
|
+
appliesTo: 'sourceName',
|
|
59655
|
+
title: 'Upper and lower case',
|
|
59656
|
+
youMightWrite: 'SuperDomain|WEB01|AMQ|.*',
|
|
59657
|
+
intent: 'to select only the upper-case host',
|
|
59658
|
+
whatHappens: 'Matching ignores case everywhere; `[A-Z]` also matches lower-case letters.',
|
|
59659
|
+
advice: 'Tell sources apart by something other than case.',
|
|
59660
|
+
example: {
|
|
59661
|
+
pattern: 'SUPERDOMAIN|web01|amq|.*',
|
|
59662
|
+
sourceName: 'SuperDomain|WEB01|AMQ|agent-01',
|
|
59663
|
+
matches: true,
|
|
59664
|
+
},
|
|
59665
|
+
},
|
|
59666
|
+
{
|
|
59667
|
+
id: 'wildcard-only',
|
|
59668
|
+
appliesTo: 'sourceName',
|
|
59669
|
+
title: 'Catch-all patterns',
|
|
59670
|
+
youMightWrite: '.*',
|
|
59671
|
+
intent: 'a catch-all',
|
|
59672
|
+
whatHappens: 'A pattern made only of wildcards (`.*`, `^.*$`) matches nothing — the server refuses catch-alls.',
|
|
59673
|
+
writeInstead: '.*|.*|.*|.*',
|
|
59674
|
+
fixMatches: [
|
|
59675
|
+
'SuperDomain|host-01|AMQ|agent-01',
|
|
59676
|
+
'SuperDomain|web01|KFK|agent-02',
|
|
59677
|
+
],
|
|
59678
|
+
advice: 'Or anchor on the first segment: `SuperDomain|.*`.',
|
|
59679
|
+
example: { pattern: '.*', sourceName: 'SuperDomain|host-01|AMQ|agent-01', matches: false },
|
|
59680
|
+
},
|
|
59681
|
+
{
|
|
59682
|
+
id: 'bare-substring',
|
|
59683
|
+
appliesTo: 'sourceName',
|
|
59684
|
+
title: 'Part of a name',
|
|
59685
|
+
youMightWrite: 'host-01',
|
|
59686
|
+
whatHappens: 'Matching is full-string: a fragment of a source name matches nothing.',
|
|
59687
|
+
writeInstead: '.*host-01.*',
|
|
59688
|
+
fixMatches: [
|
|
59689
|
+
'SuperDomain|host-01|AMQ|agent-01',
|
|
59690
|
+
'SuperDomain|host-01|KFK|agent-02',
|
|
59691
|
+
],
|
|
59692
|
+
advice: 'Or spell the segments: `SuperDomain|host-01|.*`.',
|
|
59693
|
+
example: { pattern: 'host-01', sourceName: 'SuperDomain|host-01|AMQ|agent-01', matches: false },
|
|
59694
|
+
},
|
|
59695
|
+
{
|
|
59696
|
+
id: 'quoted-literal',
|
|
59697
|
+
appliesTo: 'sourceName',
|
|
59698
|
+
title: 'Quoting with \\Q…\\E',
|
|
59699
|
+
youMightWrite: '\\QSuperDomain|host-01|AMQ|agent-01\\E',
|
|
59700
|
+
whatHappens: 'The pipes inside the quote are escaped too, so the quoted text never matches.',
|
|
59701
|
+
writeInstead: 'SuperDomain|host-01|AMQ|agent-01',
|
|
59702
|
+
fixMatches: ['SuperDomain|host-01|AMQ|agent-01'],
|
|
59703
|
+
example: {
|
|
59704
|
+
pattern: '\\QSuperDomain|host-01|AMQ|agent-01\\E',
|
|
59705
|
+
sourceName: 'SuperDomain|host-01|AMQ|agent-01',
|
|
59706
|
+
matches: false,
|
|
59707
|
+
},
|
|
59708
|
+
},
|
|
59709
|
+
{
|
|
59710
|
+
id: 'unicode-property',
|
|
59711
|
+
appliesTo: 'sourceName',
|
|
59712
|
+
title: 'Unicode properties',
|
|
59713
|
+
youMightWrite: 'SuperDomain|\\pL.*|AMQ|.*',
|
|
59714
|
+
whatHappens: 'A Unicode property outside a character class does not survive the preprocessor.',
|
|
59715
|
+
writeInstead: 'SuperDomain|[\\pL].*|AMQ|.*',
|
|
59716
|
+
advice: 'Inside a class it works on the server (the local simulation cannot emulate it).',
|
|
59717
|
+
example: {
|
|
59718
|
+
pattern: 'SuperDomain|\\pL.*|AMQ|.*',
|
|
59719
|
+
sourceName: 'SuperDomain|host-01|AMQ|agent-01',
|
|
59720
|
+
matches: false,
|
|
59721
|
+
},
|
|
59722
|
+
},
|
|
59723
|
+
{
|
|
59724
|
+
id: 'nested-brackets',
|
|
59725
|
+
appliesTo: 'sourceName',
|
|
59726
|
+
title: 'Nested character classes',
|
|
59727
|
+
youMightWrite: 'SuperDomain|host-[[:digit:]]|.*',
|
|
59728
|
+
intent: 'or `[a-z&&[^b]]`',
|
|
59729
|
+
whatHappens: 'A character class ends at the first `]`, so nested classes break the pattern.',
|
|
59730
|
+
writeInstead: 'SuperDomain|host-[0-9]|.*',
|
|
59731
|
+
fixMatches: [
|
|
59732
|
+
'SuperDomain|host-1|AMQ|agent-01',
|
|
59733
|
+
'SuperDomain|host-7|KFK|agent-02',
|
|
59734
|
+
],
|
|
59735
|
+
},
|
|
59736
|
+
{
|
|
59737
|
+
id: 'unbalanced',
|
|
59738
|
+
appliesTo: 'sourceName',
|
|
59739
|
+
title: 'Patterns that do not compile',
|
|
59740
|
+
youMightWrite: 'SuperDomain|host-[ab|.*',
|
|
59741
|
+
whatHappens: 'An unparseable pattern matches nothing, and the API still answers HTTP 200 with an empty preview — no error is reported.',
|
|
59742
|
+
writeInstead: 'SuperDomain|host-[ab]|.*',
|
|
59743
|
+
fixMatches: [
|
|
59744
|
+
'SuperDomain|host-a|AMQ|agent-a',
|
|
59745
|
+
'SuperDomain|host-b|KFK|agent-b',
|
|
59746
|
+
],
|
|
59747
|
+
example: { pattern: 'SuperDomain|host-[ab|.*', sourceName: 'SuperDomain|host-a|AMQ|agent-a', matches: false },
|
|
59748
|
+
},
|
|
59749
|
+
{
|
|
59750
|
+
id: 'parent-folder-required',
|
|
59751
|
+
appliesTo: 'attributeParentFolder',
|
|
59752
|
+
youMightWrite: '(unset)',
|
|
59753
|
+
intent: 'a rule with only `sourceName`, maybe `attributeName`',
|
|
59754
|
+
whatHappens: 'The API accepts it, but it matches zero metrics.',
|
|
59755
|
+
advice: 'Always set `attributeParentFolder` — it anchors matching and the external ID.',
|
|
59756
|
+
},
|
|
59757
|
+
{
|
|
59758
|
+
id: 'parent-folder-prefix',
|
|
59759
|
+
appliesTo: 'attributeParentFolder',
|
|
59760
|
+
youMightWrite: 'Queue',
|
|
59761
|
+
intent: 'expecting only the folder `Queue`',
|
|
59762
|
+
whatHappens: 'The folder is a string prefix: the server derives `attributeName` as `<folder>.*`, so `Queue` also picks up `Queues|…` and `QueueStats|…`.',
|
|
59763
|
+
advice: 'Name sibling folders so none is a prefix of another — `attributeName` does not narrow it.',
|
|
59764
|
+
},
|
|
59765
|
+
{
|
|
59766
|
+
id: 'parent-folder-dot',
|
|
59767
|
+
appliesTo: 'attributeParentFolder',
|
|
59768
|
+
youMightWrite: 'JMX|Default|org.apache.activemq',
|
|
59769
|
+
intent: 'the folder right above the MBeans you want',
|
|
59770
|
+
whatHappens: 'Measured 2026-09-24: parent folders containing a `.` (`JMX|Default|java.nio`, `…|org.apache.activemq`) matched no metrics, while `JMX|Default` and the dot-free `Agents|localhost|Infrastructure` did.',
|
|
59771
|
+
writeInstead: 'JMX|Default',
|
|
59772
|
+
advice: 'Stop the parent before the dotted segment, raise `nest_levels`, and narrow with an attribute filter.',
|
|
59773
|
+
},
|
|
59774
|
+
{
|
|
59775
|
+
id: 'attribute-name-ignored',
|
|
59776
|
+
appliesTo: 'attributeName',
|
|
59777
|
+
youMightWrite: 'Queues|DLQ.*',
|
|
59778
|
+
intent: 'to narrow the rule to one queue',
|
|
59779
|
+
whatHappens: 'Measured 2026-09-24: a hand-set `attributeName` did not narrow the preview in any form — literal, regex, pipe escaped or not. The server fills it with `<folder>.*` when omitted.',
|
|
59780
|
+
advice: 'Narrow with the `attribute_*` / `metric_*` filters, or a deeper `attributeParentFolder`.',
|
|
59781
|
+
},
|
|
59782
|
+
{
|
|
59783
|
+
id: 'attribute-filters-relative',
|
|
59784
|
+
appliesTo: 'filters',
|
|
59785
|
+
youMightWrite: 'attribute_excl_filter: ["Queues|DLQ"]',
|
|
59786
|
+
intent: 'the full folder path',
|
|
59787
|
+
whatHappens: 'Attribute filters are tested against the folder segments **from the nest level down** — each segment on its own and those segments joined with `|` — never against the parent folder or the segments above the nest level; with `nest_levels` 0 they match nothing. `metric_*` filters see the metric name after `:`. Exact filters compare whole strings (`Rat` does not match `Rate`); `_regex` filters are full-match. Measured on two tenants 2026-09-24; not every probe fits, so check the preview.',
|
|
59788
|
+
writeInstead: 'attribute_excl_filter: ["DLQ"]',
|
|
59789
|
+
advice: 'Filter on a segment at or below the nest level, e.g. `destinationType=Queue`.',
|
|
59790
|
+
},
|
|
59791
|
+
{
|
|
59792
|
+
id: 'external-id-format',
|
|
59793
|
+
appliesTo: 'externalIdFormat',
|
|
59794
|
+
youMightWrite: 'X|${sourceName}|${attributeParentFolder}|${nest_levels}',
|
|
59795
|
+
whatHappens: 'The save is rejected (HTTP 500): only the three substitutes `${sourceName}`, `${attributeParentFolder}`, `${nest_levels}`, each once, joined by `|`. A reordering works and reorders the external ID after `<layer>:TC|`.',
|
|
59796
|
+
writeInstead: '${attributeParentFolder}|${sourceName}|${nest_levels}',
|
|
59797
|
+
advice: 'Or leave it unset.',
|
|
59798
|
+
},
|
|
59799
|
+
{
|
|
59800
|
+
id: 'custom-attribute-standard-name',
|
|
59801
|
+
appliesTo: 'customAttributes',
|
|
59802
|
+
youMightWrite: '"host": "${ fn:part(sourceName, 2) }"',
|
|
59803
|
+
intent: 'as in the vendor documentation',
|
|
59804
|
+
whatHappens: 'Every vertex already carries `host`, `process`, `agent`, `agentDomain`, `agentName`, `product`, `name`, `type`, `resourceType`, `configRuleId` and `createdBy`, set from the source path and the rule. A custom attribute with one of those names is silently dropped — the standard value wins (measured 2026-09-24).',
|
|
59805
|
+
writeInstead: '"broker": "${ fn:part(sourceName, 2) }"',
|
|
59806
|
+
},
|
|
59807
|
+
{
|
|
59808
|
+
id: 'custom-attribute-reserved-name',
|
|
59809
|
+
appliesTo: 'customAttributes',
|
|
59810
|
+
youMightWrite: '"name": "${ fn:part(attributeName, 1) }"',
|
|
59811
|
+
whatHappens: 'The save is rejected (HTTP 500) for these keys: `name`, `type`, `createdBy`, `layer`, `source_product`, `ACNId`, `SourceProduct`, `serviceNames`, `internal::serviceNames`, `external_ids`, `vertexLevel`, the `dx_*` / `acn*` / `Other*` network keys, and the empty key.',
|
|
59812
|
+
advice: 'Pick another key, e.g. `queue_name`; the vertex name itself comes from `vertexNameIndex`.',
|
|
59813
|
+
},
|
|
59814
|
+
{
|
|
59815
|
+
id: 'nest-levels',
|
|
59816
|
+
appliesTo: 'nest_levels',
|
|
59817
|
+
youMightWrite: '3',
|
|
59818
|
+
intent: 'with metrics at different depths under the parent, e.g. `Agents:PLA Devices` next to `Agents|host|agent|plugin:Status`',
|
|
59819
|
+
whatHappens: 'Each level adds the next folder below the parent to the external ID, so distinct paths at that depth become distinct vertices and deeper metrics collapse onto them. A metric with FEWER folders below the parent than `nest_levels` is matched — the preview lists it — but builds no vertex (measured 2026-09-24). 0 gives one vertex per source and parent folder.',
|
|
59820
|
+
advice: 'Pick the depth where the thing you want as a vertex lives; metrics above it need their own rule with a smaller `nest_levels` (on a different parent folder, so rules do not overlap).',
|
|
59821
|
+
},
|
|
59822
|
+
{
|
|
59823
|
+
id: 'vertex-name-index',
|
|
59824
|
+
appliesTo: 'vertexNameIndex',
|
|
59825
|
+
youMightWrite: '3',
|
|
59826
|
+
intent: 'expecting the host name',
|
|
59827
|
+
whatHappens: 'The name is the last N pipe segments of the external ID `<layer>:TC|<sourceName>|<folder>[|nested]`. `1` is the last segment; N at or above the segment count gives the whole ID after the layer, starting with `TC|`.',
|
|
59828
|
+
writeInstead: '1',
|
|
59829
|
+
advice: 'Choose `nest_levels` so the last segment is the thing you want named.',
|
|
59830
|
+
},
|
|
59831
|
+
];
|
|
59291
59832
|
|
|
59292
59833
|
/** Topology Creator's own per-rule processing cap. */
|
|
59293
59834
|
const TC_METRIC_CAP = 10000;
|
|
@@ -59298,6 +59839,7 @@ function translateRuleToMmQuery(rule, clamp = TC_METRIC_CAP) {
|
|
|
59298
59839
|
sourceNameSpecifier: {
|
|
59299
59840
|
op: 'REGEX',
|
|
59300
59841
|
pattern: tcSourceNameToMmPattern(rule.sourceName),
|
|
59842
|
+
ignoreCase: true,
|
|
59301
59843
|
},
|
|
59302
59844
|
folderNameSpecifier: { op: 'ALL' },
|
|
59303
59845
|
attributeNameSpecifier: { op: 'ALL' },
|
|
@@ -59947,8 +60489,16 @@ function splitAttributePath(attributeName) {
|
|
|
59947
60489
|
function folderUnderParent(folderPath, parent) {
|
|
59948
60490
|
return folderPath === parent || folderPath.startsWith(`${parent}|`);
|
|
59949
60491
|
}
|
|
59950
|
-
|
|
59951
|
-
|
|
60492
|
+
/**
|
|
60493
|
+
* EMPIRICAL (construct matrix, 2026-09-04): with no explicit attributeName the
|
|
60494
|
+
* server derives `attributeName = "<parent>.*"`, so the parent folder is a
|
|
60495
|
+
* STRING PREFIX — folder `Queue` also admits `Queues|…` and `QueueStats|…`.
|
|
60496
|
+
*/
|
|
60497
|
+
function folderMatchesDerivedPrefix(attributeName, parent) {
|
|
60498
|
+
return attributeName.startsWith(parent);
|
|
60499
|
+
}
|
|
60500
|
+
function applyFilters(values, exact, regex, exclExact, exclRegex) {
|
|
60501
|
+
const matchesOne = (value, pattern, isRegex) => {
|
|
59952
60502
|
if (!isRegex)
|
|
59953
60503
|
return value === pattern;
|
|
59954
60504
|
try {
|
|
@@ -59960,6 +60510,8 @@ function applyFilters(value, exact, regex, exclExact, exclRegex) {
|
|
|
59960
60510
|
throw err;
|
|
59961
60511
|
}
|
|
59962
60512
|
};
|
|
60513
|
+
const matches = (pattern, isRegex) => values.some((v) => matchesOne(v, pattern, isRegex));
|
|
60514
|
+
const value = values.length === 1 ? values[0] : values.join(' / ');
|
|
59963
60515
|
const incl = [
|
|
59964
60516
|
...(exact ?? []).map((p) => ({ p, r: false })),
|
|
59965
60517
|
...(regex ?? []).map((p) => ({ p, r: true })),
|
|
@@ -59976,16 +60528,144 @@ function applyFilters(value, exact, regex, exclExact, exclRegex) {
|
|
|
59976
60528
|
return { pass: false, detail: `"${value}" hit exclude filter "${hit.p}"` };
|
|
59977
60529
|
return { pass: true };
|
|
59978
60530
|
}
|
|
59979
|
-
/**
|
|
60531
|
+
/**
|
|
60532
|
+
* Attributes the Topology Creator stamps on every vertex it creates, measured
|
|
60533
|
+
* on THE_LABORATORY and ITOM-DX-DEMO-DEV (2026-09-24). All come from the
|
|
60534
|
+
* matched source path and the rule — never from the metric's own attribute
|
|
60535
|
+
* map. `agentName` is the PROCESS segment (as observed, not the agent).
|
|
60536
|
+
* A customAttribute with one of these names is silently dropped: the standard
|
|
60537
|
+
* value wins. (Long-lived vertices later also carry platform-added ACNId and
|
|
60538
|
+
* SourceProduct; the rule does not set those.)
|
|
60539
|
+
*/
|
|
60540
|
+
const TC_STANDARD_ATTRIBUTE_KEYS = [
|
|
60541
|
+
'agent',
|
|
60542
|
+
'agentDomain',
|
|
60543
|
+
'agentName',
|
|
60544
|
+
'configRuleId',
|
|
60545
|
+
'createdBy',
|
|
60546
|
+
'host',
|
|
60547
|
+
'name',
|
|
60548
|
+
'process',
|
|
60549
|
+
'product',
|
|
60550
|
+
'resourceType',
|
|
60551
|
+
'type',
|
|
60552
|
+
];
|
|
60553
|
+
/**
|
|
60554
|
+
* customAttributes keys the save API rejects (HTTP 500, message listing them —
|
|
60555
|
+
* captured 2026-09-24). The empty key is rejected too.
|
|
60556
|
+
*/
|
|
60557
|
+
const TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS = [
|
|
60558
|
+
'',
|
|
60559
|
+
'acn_loganalytics_key',
|
|
60560
|
+
'OtherNetworkAddresses',
|
|
60561
|
+
'internal::serviceNames',
|
|
60562
|
+
'type',
|
|
60563
|
+
'serviceNames',
|
|
60564
|
+
'acnOtherHostNames',
|
|
60565
|
+
'external_ids',
|
|
60566
|
+
'layer',
|
|
60567
|
+
'dx_hostname_list',
|
|
60568
|
+
'OtherMacAddrs',
|
|
60569
|
+
'ACNId',
|
|
60570
|
+
'createdBy',
|
|
60571
|
+
'source_product',
|
|
60572
|
+
'dx_hostname',
|
|
60573
|
+
'dx_ip_address_list',
|
|
60574
|
+
'name',
|
|
60575
|
+
'SourceProduct',
|
|
60576
|
+
'acnHostName',
|
|
60577
|
+
'dx_mac_address_list',
|
|
60578
|
+
'vertexLevel',
|
|
60579
|
+
];
|
|
60580
|
+
/** The standard attributes a vertex gets from its source path, name and rule. */
|
|
60581
|
+
function standardVertexAttributes(rule, sourceName, vertexName) {
|
|
60582
|
+
const seg = sourceName.split('|');
|
|
60583
|
+
const out = {};
|
|
60584
|
+
if (seg.length > 1)
|
|
60585
|
+
out['agent'] = seg.slice(1).join('|');
|
|
60586
|
+
if (seg[0] !== undefined)
|
|
60587
|
+
out['agentDomain'] = seg[0];
|
|
60588
|
+
if (seg[2] !== undefined)
|
|
60589
|
+
out['agentName'] = seg[2];
|
|
60590
|
+
out['configRuleId'] = rule.ruleId ?? '(assigned when the rule is saved)';
|
|
60591
|
+
out['createdBy'] = 'OITopologyCreator';
|
|
60592
|
+
if (seg[1] !== undefined)
|
|
60593
|
+
out['host'] = seg[1];
|
|
60594
|
+
out['name'] = vertexName;
|
|
60595
|
+
if (seg[2] !== undefined)
|
|
60596
|
+
out['process'] = seg[2];
|
|
60597
|
+
out['product'] = rule.source_product ?? 'Application Performance Management';
|
|
60598
|
+
out['resourceType'] = rule.type;
|
|
60599
|
+
out['type'] = rule.type;
|
|
60600
|
+
return out;
|
|
60601
|
+
}
|
|
60602
|
+
/** customAttributes keys the server rejects at save, and those a standard attribute overrides. */
|
|
60603
|
+
function customAttributeKeyIssues(customAttributes) {
|
|
60604
|
+
const keys = Object.keys(customAttributes ?? {});
|
|
60605
|
+
const reserved = keys.filter((k) => TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS.includes(k.trim()));
|
|
60606
|
+
const shadowed = keys.filter((k) => !reserved.includes(k) && TC_STANDARD_ATTRIBUTE_KEYS.includes(k));
|
|
60607
|
+
return { reserved, shadowed };
|
|
60608
|
+
}
|
|
60609
|
+
const FILTER_KEYS = [
|
|
60610
|
+
'attribute_incl_filter',
|
|
60611
|
+
'attribute_incl_filter_regex',
|
|
60612
|
+
'attribute_excl_filter',
|
|
60613
|
+
'attribute_excl_filter_regex',
|
|
60614
|
+
];
|
|
60615
|
+
/**
|
|
60616
|
+
* What attribute_* filters are tested against. EMPIRICAL (demo-dev,
|
|
60617
|
+
* 2026-09-24, preview): each folder segment from the nest_levels-th segment
|
|
60618
|
+
* below the parent to the end, plus those segments joined with "|"; a
|
|
60619
|
+
* filter passes when it full-matches any of them. With nest_levels 2 a
|
|
60620
|
+
* filter on the 2nd segment matched and one on the 1st did not; with 0
|
|
60621
|
+
* nothing matched. Not every probe fits (a regex alternation "a|b" matched
|
|
60622
|
+
* nothing) — the server preview stays authoritative for attribute filters.
|
|
60623
|
+
*/
|
|
60624
|
+
function attributeFilterTargets(folderPath, parent, nestLevels) {
|
|
60625
|
+
if (nestLevels < 1)
|
|
60626
|
+
return [];
|
|
60627
|
+
const below = folderPath.split('|').slice(parent.split('|').length);
|
|
60628
|
+
const from = below.slice(nestLevels - 1);
|
|
60629
|
+
if (from.length === 0)
|
|
60630
|
+
return [];
|
|
60631
|
+
return from.length === 1 ? from : [...from, from.join('|')];
|
|
60632
|
+
}
|
|
60633
|
+
/**
|
|
60634
|
+
* The server accepts an externalIdFormat only as the three substitutes
|
|
60635
|
+
* `${sourceName}`, `${attributeParentFolder}`, `${nest_levels}` joined by
|
|
60636
|
+
* "|", each once, in any order; anything else is rejected at save (HTTP 500,
|
|
60637
|
+
* measured 2026-09-24). Returns the order, or null when the server would
|
|
60638
|
+
* reject the format.
|
|
60639
|
+
*/
|
|
60640
|
+
function parseExternalIdFormat(format) {
|
|
60641
|
+
if (!format)
|
|
60642
|
+
return ['sourceName', 'attributeParentFolder', 'nest_levels'];
|
|
60643
|
+
const parts = format.split('|').map((p) => p.trim());
|
|
60644
|
+
const names = parts.map((p) => /^\$\{(sourceName|attributeParentFolder|nest_levels)\}$/.exec(p)?.[1]);
|
|
60645
|
+
if (names.length !== 3 || names.some((n) => n === undefined) || new Set(names).size !== 3)
|
|
60646
|
+
return null;
|
|
60647
|
+
return names;
|
|
60648
|
+
}
|
|
60649
|
+
/**
|
|
60650
|
+
* External-ID formation: `<layer>:TC|` followed by the three parts in the
|
|
60651
|
+
* rule's externalIdFormat order (default sourceName, parent folder, nested).
|
|
60652
|
+
*/
|
|
59980
60653
|
function formExternalId(rule, metric) {
|
|
59981
60654
|
const parent = rule.attributeParentFolder ?? '';
|
|
59982
60655
|
const { folderPath } = splitAttributePath(metric.attributeName);
|
|
59983
|
-
|
|
59984
|
-
|
|
59985
|
-
|
|
60656
|
+
// Nested folders are taken by SEGMENT INDEX below the parent (a prefix-leaked
|
|
60657
|
+
// sibling folder collapses onto the same id — measured 2026-09-04).
|
|
60658
|
+
const beyond = folderPath.split('|').slice(parent.split('|').length);
|
|
59986
60659
|
const nested = beyond.slice(0, Math.max(0, rule.nest_levels));
|
|
59987
|
-
const
|
|
59988
|
-
|
|
60660
|
+
const values = {
|
|
60661
|
+
sourceName: metric.sourceName,
|
|
60662
|
+
attributeParentFolder: parent,
|
|
60663
|
+
nest_levels: nested.length > 0 ? nested.join('|') : undefined,
|
|
60664
|
+
};
|
|
60665
|
+
const order = parseExternalIdFormat(rule.externalIdFormat) ?? ['sourceName', 'attributeParentFolder', 'nest_levels'];
|
|
60666
|
+
const body = order.map((p) => values[p]).filter((v) => v !== undefined).join('|');
|
|
60667
|
+
// Real vertices carry `TC|` right after the layer (measured 2026-09-01).
|
|
60668
|
+
return `${rule.layer}:TC|${body}`;
|
|
59989
60669
|
}
|
|
59990
60670
|
/** Vertex-name derivation: last N pipe-segments of the id minus "<layer>:". */
|
|
59991
60671
|
function deriveVertexName(externalId, layer, vertexNameIndex) {
|
|
@@ -60009,14 +60689,39 @@ function projectRule(rule, metrics) {
|
|
|
60009
60689
|
return { vertices: [], matchedCount: 0, rejected, warnings };
|
|
60010
60690
|
}
|
|
60011
60691
|
if (rule.externalIdFormat &&
|
|
60012
|
-
rule.externalIdFormat !== DEFAULT_EXTERNAL_ID_FORMAT
|
|
60013
|
-
|
|
60014
|
-
|
|
60015
|
-
|
|
60016
|
-
|
|
60692
|
+
rule.externalIdFormat !== DEFAULT_EXTERNAL_ID_FORMAT &&
|
|
60693
|
+
parseExternalIdFormat(rule.externalIdFormat) === null) {
|
|
60694
|
+
warnings.push(`externalIdFormat "${rule.externalIdFormat}" will be rejected on save — only the three substitutes \${sourceName}, \${attributeParentFolder}, \${nest_levels} joined by "|" (any order) are accepted; projected with the default order.`);
|
|
60695
|
+
}
|
|
60696
|
+
const derivedAttributeName = `${parent.replace(/\|/g, '\\|')}.*`;
|
|
60697
|
+
if (rule.attributeName && rule.attributeName !== derivedAttributeName && rule.attributeName !== `${parent}.*`) {
|
|
60698
|
+
warnings.push('attributeName is set, but it did not narrow the server preview in any form (literal, regex, escaped — measured 2026-09-24); the local projection does not apply it.');
|
|
60699
|
+
}
|
|
60700
|
+
const compiled = compileTcSourceName(rule.sourceName);
|
|
60701
|
+
if (!compiled.ok)
|
|
60702
|
+
warnings.push(compiled.message);
|
|
60703
|
+
const keyIssues = customAttributeKeyIssues(rule.customAttributes);
|
|
60704
|
+
if (keyIssues.reserved.length > 0) {
|
|
60705
|
+
warnings.push(`customAttributes ${keyIssues.reserved.map((k) => `"${k}"`).join(', ')} use reserved names — the server rejects the rule at save (HTTP 500).`);
|
|
60706
|
+
}
|
|
60707
|
+
if (keyIssues.shadowed.length > 0) {
|
|
60708
|
+
warnings.push(`customAttributes ${keyIssues.shadowed.map((k) => `"${k}"`).join(', ')} reuse standard vertex attribute names — the standard value wins and the custom one is dropped (measured). Rename them.`);
|
|
60709
|
+
}
|
|
60710
|
+
const standardKeys = new Set(TC_STANDARD_ATTRIBUTE_KEYS);
|
|
60711
|
+
const shadowedDynamic = new Set();
|
|
60712
|
+
if (FILTER_KEYS.some((k) => (rule[k] ?? []).length > 0)) {
|
|
60713
|
+
warnings.push('attribute filters are emulated from partial measurements (each folder segment from the nest level down, full-match) — trust the server preview for the exact filtered set.');
|
|
60714
|
+
}
|
|
60715
|
+
// EMPIRICAL (demo-dev 2026-09-24): parent folders with a "." in them
|
|
60716
|
+
// ("JMX|Default|java.nio", "…|org.apache.activemq") previewed 0 metrics
|
|
60717
|
+
// while "JMX|Default" and the dot-free "Agents|localhost|Infrastructure"
|
|
60718
|
+
// matched.
|
|
60719
|
+
const dottedParent = parent.includes('.');
|
|
60720
|
+
if (dottedParent) {
|
|
60721
|
+
warnings.push(`attributeParentFolder "${parent}" contains a "." — such parent folders matched no metrics on the server (measured). Stop the parent before the dotted segment and raise nest_levels.`);
|
|
60017
60722
|
}
|
|
60018
60723
|
for (const metric of metrics) {
|
|
60019
|
-
if (!
|
|
60724
|
+
if (!compiled.ok || !compiled.regex.test(metric.sourceName)) {
|
|
60020
60725
|
rejected.push({
|
|
60021
60726
|
id: metric.id,
|
|
60022
60727
|
stage: 'sourceName',
|
|
@@ -60025,7 +60730,9 @@ function projectRule(rule, metrics) {
|
|
|
60025
60730
|
continue;
|
|
60026
60731
|
}
|
|
60027
60732
|
const { folderPath, metricName } = splitAttributePath(metric.attributeName);
|
|
60028
|
-
|
|
60733
|
+
const underParent = !dottedParent && folderUnderParent(folderPath, parent);
|
|
60734
|
+
const leaked = !dottedParent && !underParent && folderMatchesDerivedPrefix(metric.attributeName, parent);
|
|
60735
|
+
if (!underParent && !leaked) {
|
|
60029
60736
|
rejected.push({
|
|
60030
60737
|
id: metric.id,
|
|
60031
60738
|
stage: 'attributeParentFolder',
|
|
@@ -60033,44 +60740,50 @@ function projectRule(rule, metrics) {
|
|
|
60033
60740
|
});
|
|
60034
60741
|
continue;
|
|
60035
60742
|
}
|
|
60036
|
-
if (
|
|
60037
|
-
|
|
60038
|
-
|
|
60039
|
-
|
|
60040
|
-
// for attributeName regexes (calibration C-item).
|
|
60041
|
-
ok = javaFullMatch(metric.attributeName, rule.attributeName.replace(/\|/g, '\\|'));
|
|
60042
|
-
}
|
|
60043
|
-
catch (err) {
|
|
60044
|
-
warnings.push(`attributeName regex error: ${err.message}`);
|
|
60045
|
-
}
|
|
60046
|
-
if (!ok) {
|
|
60047
|
-
rejected.push({
|
|
60048
|
-
id: metric.id,
|
|
60049
|
-
stage: 'attributeName',
|
|
60050
|
-
detail: `"${metric.attributeName}" !~ "${rule.attributeName}"`,
|
|
60051
|
-
});
|
|
60052
|
-
continue;
|
|
60053
|
-
}
|
|
60743
|
+
if (leaked) {
|
|
60744
|
+
const msg = `attributeParentFolder "${parent}" is a string prefix: sibling folders such as "${folderPath.split('|')[0]}" match too — name sibling folders so none is a prefix of another.`;
|
|
60745
|
+
if (!warnings.includes(msg))
|
|
60746
|
+
warnings.push(msg);
|
|
60054
60747
|
}
|
|
60055
|
-
const attrVerdict = applyFilters(folderPath, rule.attribute_incl_filter, rule.attribute_incl_filter_regex, rule.attribute_excl_filter, rule.attribute_excl_filter_regex);
|
|
60748
|
+
const attrVerdict = applyFilters(attributeFilterTargets(folderPath, parent, rule.nest_levels), rule.attribute_incl_filter, rule.attribute_incl_filter_regex, rule.attribute_excl_filter, rule.attribute_excl_filter_regex);
|
|
60056
60749
|
if (!attrVerdict.pass) {
|
|
60057
60750
|
rejected.push({ id: metric.id, stage: 'attribute_filters', detail: attrVerdict.detail });
|
|
60058
60751
|
continue;
|
|
60059
60752
|
}
|
|
60060
|
-
const metricVerdict = applyFilters(metricName, rule.metric_incl_filter, rule.metric_incl_filter_regex, rule.metric_excl_filter, rule.metric_excl_filter_regex);
|
|
60753
|
+
const metricVerdict = applyFilters([metricName], rule.metric_incl_filter, rule.metric_incl_filter_regex, rule.metric_excl_filter, rule.metric_excl_filter_regex);
|
|
60061
60754
|
if (!metricVerdict.pass) {
|
|
60062
60755
|
rejected.push({ id: metric.id, stage: 'metric_filters', detail: metricVerdict.detail });
|
|
60063
60756
|
continue;
|
|
60064
60757
|
}
|
|
60758
|
+
// EMPIRICAL (THE_LABORATORY, 2026-09-24): a metric with fewer folders below
|
|
60759
|
+
// the parent than nest_levels is MATCHED (the server preview lists it) but
|
|
60760
|
+
// builds NO vertex — e.g. "Agents:PLA Devices" under parent "Agents" with
|
|
60761
|
+
// nest_levels 3. Deeper metrics collapse onto the vertex at the nest depth.
|
|
60762
|
+
const depth = folderPath.split('|').length - parent.split('|').length;
|
|
60763
|
+
if (depth < rule.nest_levels) {
|
|
60764
|
+
rejected.push({
|
|
60765
|
+
id: metric.id,
|
|
60766
|
+
stage: 'nest_levels',
|
|
60767
|
+
detail: `"${folderPath}" has ${depth} folder(s) below "${parent}", fewer than nest_levels ${rule.nest_levels} — matched, but no vertex is built`,
|
|
60768
|
+
});
|
|
60769
|
+
continue;
|
|
60770
|
+
}
|
|
60065
60771
|
matchedCount++;
|
|
60066
|
-
const externalId = formExternalId({
|
|
60772
|
+
const externalId = formExternalId({
|
|
60773
|
+
layer: rule.layer,
|
|
60774
|
+
attributeParentFolder: parent,
|
|
60775
|
+
nest_levels: rule.nest_levels,
|
|
60776
|
+
externalIdFormat: rule.externalIdFormat,
|
|
60777
|
+
}, metric);
|
|
60067
60778
|
let vertex = byExternalId.get(externalId);
|
|
60068
60779
|
if (!vertex) {
|
|
60780
|
+
const name = deriveVertexName(externalId, rule.layer, rule.vertexNameIndex);
|
|
60069
60781
|
vertex = {
|
|
60070
60782
|
externalId,
|
|
60071
|
-
name
|
|
60783
|
+
name,
|
|
60072
60784
|
type: rule.type,
|
|
60073
60785
|
layer: rule.layer,
|
|
60786
|
+
standardAttributes: standardVertexAttributes(rule, metric.sourceName, name),
|
|
60074
60787
|
customAttributes: {},
|
|
60075
60788
|
attributeConflicts: {},
|
|
60076
60789
|
metrics: [],
|
|
@@ -60088,6 +60801,11 @@ function projectRule(rule, metrics) {
|
|
|
60088
60801
|
const { attributes, traces } = projectCustomAttributes(rule.customAttributes ?? {}, metric);
|
|
60089
60802
|
vertex.traces[metric.id] = traces;
|
|
60090
60803
|
for (const [key, value] of Object.entries(attributes)) {
|
|
60804
|
+
if (standardKeys.has(key)) {
|
|
60805
|
+
if (!(key in (rule.customAttributes ?? {})))
|
|
60806
|
+
shadowedDynamic.add(key);
|
|
60807
|
+
continue;
|
|
60808
|
+
}
|
|
60091
60809
|
const existing = vertex.customAttributes[key];
|
|
60092
60810
|
if (existing !== undefined && existing !== value) {
|
|
60093
60811
|
const conflicts = vertex.attributeConflicts[key] ?? [existing];
|
|
@@ -60095,11 +60813,16 @@ function projectRule(rule, metrics) {
|
|
|
60095
60813
|
conflicts.push(value);
|
|
60096
60814
|
vertex.attributeConflicts[key] = conflicts;
|
|
60097
60815
|
}
|
|
60098
|
-
//
|
|
60099
|
-
//
|
|
60100
|
-
|
|
60816
|
+
// First value wins (C8: the vertex kept the first-registered metric's
|
|
60817
|
+
// value, stable over 60 s — measured once, 2026-09-24); conflicts are
|
|
60818
|
+
// surfaced either way.
|
|
60819
|
+
if (existing === undefined)
|
|
60820
|
+
vertex.customAttributes[key] = value;
|
|
60101
60821
|
}
|
|
60102
60822
|
}
|
|
60823
|
+
if (shadowedDynamic.size > 0) {
|
|
60824
|
+
warnings.push(`templated customAttribute keys evaluated to standard vertex attribute names (${[...shadowedDynamic].map((k) => `"${k}"`).join(', ')}) — those values are dropped; the standard value wins.`);
|
|
60825
|
+
}
|
|
60103
60826
|
return {
|
|
60104
60827
|
vertices: [...byExternalId.values()],
|
|
60105
60828
|
matchedCount,
|
|
@@ -60107,17 +60830,6 @@ function projectRule(rule, metrics) {
|
|
|
60107
60830
|
warnings,
|
|
60108
60831
|
};
|
|
60109
60832
|
}
|
|
60110
|
-
function safeTcSourceMatch(sourceName, pattern, warnings) {
|
|
60111
|
-
try {
|
|
60112
|
-
return tcSourceNameMatches(sourceName, pattern);
|
|
60113
|
-
}
|
|
60114
|
-
catch (err) {
|
|
60115
|
-
const msg = `sourceName pattern error: ${err.message}`;
|
|
60116
|
-
if (!warnings.includes(msg))
|
|
60117
|
-
warnings.push(msg);
|
|
60118
|
-
return false;
|
|
60119
|
-
}
|
|
60120
|
-
}
|
|
60121
60833
|
/**
|
|
60122
60834
|
* Bounds the per-vertex detail (`metrics` and their `traces`) to the first
|
|
60123
60835
|
* `limit` contributing metrics. Grouping and counts are untouched —
|
|
@@ -60145,6 +60857,466 @@ function capVertexDetail(projection, limit) {
|
|
|
60145
60857
|
};
|
|
60146
60858
|
}
|
|
60147
60859
|
|
|
60860
|
+
/**
|
|
60861
|
+
* The sourceName calibration corpus: the 23-case battery (five sources) and
|
|
60862
|
+
* the 22-rule construct matrix (twelve sources) measured against DXO2 26.8.2
|
|
60863
|
+
* on two tenants (2026-09-01/04). `expected` lists the source ids the SERVER
|
|
60864
|
+
* matched. The offline test checks the local engine against these; the live
|
|
60865
|
+
* suite and the matrix driver re-measure the server against them. `token`
|
|
60866
|
+
* makes source names run-unique — a metric identity that aged out cannot be
|
|
60867
|
+
* registered again, so a live run always mints a fresh token.
|
|
60868
|
+
*/
|
|
60869
|
+
const escapePipes = (s) => s.replace(/\|/g, '\\|');
|
|
60870
|
+
function sourceNameBattery(token) {
|
|
60871
|
+
const T = token;
|
|
60872
|
+
const sources = {
|
|
60873
|
+
a: `SuperDomain|${T}-host-a|AMQ|${T}-agent-a`,
|
|
60874
|
+
b: `SuperDomain|${T}-host-b|AMQ|${T}-agent-b`,
|
|
60875
|
+
c: `SuperDomain|${T}-host-c|KFK|${T}-agent-c`,
|
|
60876
|
+
d: `SuperDomain|${T}-host-d (v)|AMQ|${T}-agent-d`,
|
|
60877
|
+
e: `SuperDomain|${T}-HOST-E|amq|${T}-AGENT-E`,
|
|
60878
|
+
};
|
|
60879
|
+
const legacyFull = `SuperDomain|${T}-host-.*|AMQ|${T}-agent-.*`;
|
|
60880
|
+
const cases = [
|
|
60881
|
+
{ id: 'control', construct: 'freshness control', sourceName: `.*${T}-host-[ab].*`, expected: ['a', 'b'] },
|
|
60882
|
+
{ id: 'legacy-full', construct: 'four segments, plain pipes', sourceName: legacyFull, expected: ['a', 'b', 'd', 'e'] },
|
|
60883
|
+
{ id: 'legacy-prefix', construct: 'two segments + .*', sourceName: `SuperDomain|${T}-host-.*`, expected: ['a', 'b', 'c', 'd', 'e'] },
|
|
60884
|
+
{ id: 'escaped-full', construct: 'user-escaped \\|', sourceName: escapePipes(legacyFull), expected: [] },
|
|
60885
|
+
{
|
|
60886
|
+
id: 'alternation',
|
|
60887
|
+
construct: 'two escaped names joined by |',
|
|
60888
|
+
sourceName: `${escapePipes(sources.a)}|${escapePipes(sources.c)}`,
|
|
60889
|
+
expected: [],
|
|
60890
|
+
},
|
|
60891
|
+
{
|
|
60892
|
+
id: 'group-alt-escaped',
|
|
60893
|
+
construct: '(a|b) with escaped outer pipes',
|
|
60894
|
+
sourceName: `${escapePipes(`SuperDomain|${T}-host-`)}(a|b)${escapePipes('|AMQ|')}.*`,
|
|
60895
|
+
expected: ['a', 'b', 'c', 'd', 'e'],
|
|
60896
|
+
},
|
|
60897
|
+
{ id: 'anchored', construct: '^…$ around an escaped name', sourceName: `^${escapePipes(sources.b)}$`, expected: [] },
|
|
60898
|
+
{ id: 'bare', construct: 'bare substring', sourceName: `${T}-host-a`, expected: [] },
|
|
60899
|
+
{ id: 'quoted', construct: '\\Q…\\E around a raw name', sourceName: `\\Q${sources.a}\\E`, expected: [] },
|
|
60900
|
+
{
|
|
60901
|
+
id: 'unbalanced-paren-escaped',
|
|
60902
|
+
construct: 'escaped pipe + lone (',
|
|
60903
|
+
sourceName: `${escapePipes(`SuperDomain|${T}-host-`)}(`,
|
|
60904
|
+
expected: [],
|
|
60905
|
+
},
|
|
60906
|
+
{
|
|
60907
|
+
id: 'group-alt-unescaped',
|
|
60908
|
+
construct: '(a|b) with plain outer pipes',
|
|
60909
|
+
sourceName: `SuperDomain|${T}-host-(a|b)|AMQ|.*`,
|
|
60910
|
+
expected: ['a', 'b'],
|
|
60911
|
+
},
|
|
60912
|
+
{
|
|
60913
|
+
id: 'literal-parens',
|
|
60914
|
+
construct: 'parentheses without a pipe are literal',
|
|
60915
|
+
sourceName: `SuperDomain|${T}-host-d (v)|AMQ|.*`,
|
|
60916
|
+
expected: ['d'],
|
|
60917
|
+
},
|
|
60918
|
+
{
|
|
60919
|
+
id: 'parens-pipe-trap',
|
|
60920
|
+
construct: '(v|w) no longer matches a literal (v)',
|
|
60921
|
+
sourceName: `SuperDomain|${T}-host-d (v|w)|AMQ|.*`,
|
|
60922
|
+
expected: [],
|
|
60923
|
+
},
|
|
60924
|
+
{ id: 'plus-literal', construct: '[ab]+ — plus is literal', sourceName: `SuperDomain|${T}-host-[ab]+|AMQ|.*`, expected: [] },
|
|
60925
|
+
{ id: 'brace-literal', construct: '[a-c]{1} — braces are literal', sourceName: `SuperDomain|${T}-host-[a-c]{1}|.*`, expected: [] },
|
|
60926
|
+
{ id: 'optional-literal', construct: 'ax? — question mark is literal', sourceName: `SuperDomain|${T}-host-ax?|AMQ|.*`, expected: [] },
|
|
60927
|
+
{ id: 'star-dropped', construct: 'a** — bare stars are dropped', sourceName: `SuperDomain|${T}-host-a**|AMQ|.*`, expected: ['a'] },
|
|
60928
|
+
{
|
|
60929
|
+
id: 'case-flip',
|
|
60930
|
+
construct: 'upper-case pattern, lower-case source',
|
|
60931
|
+
sourceName: `SUPERDOMAIN|${T}-HOST-A|amq|${T}-Agent-A`,
|
|
60932
|
+
expected: ['a'],
|
|
60933
|
+
},
|
|
60934
|
+
{
|
|
60935
|
+
id: 'case-source',
|
|
60936
|
+
construct: 'lower-case pattern, upper-case source',
|
|
60937
|
+
sourceName: `SuperDomain|${T}-host-e|AMQ|.*`,
|
|
60938
|
+
expected: ['e'],
|
|
60939
|
+
},
|
|
60940
|
+
{
|
|
60941
|
+
id: 'brace-inside-pipe-group',
|
|
60942
|
+
construct: '{1} stays literal inside (…|…)',
|
|
60943
|
+
sourceName: `SuperDomain|${T}-host-([ab]{1}|c)|.*`,
|
|
60944
|
+
expected: ['c'],
|
|
60945
|
+
},
|
|
60946
|
+
{
|
|
60947
|
+
id: 'dot-matches-pipe',
|
|
60948
|
+
construct: '. in place of |',
|
|
60949
|
+
sourceName: `SuperDomain.${T}-host-a.AMQ.${T}-agent-a`,
|
|
60950
|
+
expected: ['a'],
|
|
60951
|
+
},
|
|
60952
|
+
{ id: 'invalid-bracket', construct: 'unclosed [ — silent no-match', sourceName: `SuperDomain|${T}-host-[`, expected: [] },
|
|
60953
|
+
{ id: 'wildcard-only', construct: 'only wildcards — refused', sourceName: '.*', expected: [] },
|
|
60954
|
+
];
|
|
60955
|
+
return { sources, cases };
|
|
60956
|
+
}
|
|
60957
|
+
function sourceNameMatrix(token) {
|
|
60958
|
+
const T = token;
|
|
60959
|
+
const sources = {
|
|
60960
|
+
web01: `SuperDomain|${T}-web01|AMQ|${T}-agent-web01`,
|
|
60961
|
+
web02: `SuperDomain|${T}-web02|AMQ|${T}-agent-web02`,
|
|
60962
|
+
web10: `SuperDomain|${T}-web10|AMQ|${T}-agent-web10`,
|
|
60963
|
+
web1: `SuperDomain|${T}-web1|AMQ|${T}-agent-web1`,
|
|
60964
|
+
WEB03: `SuperDomain|${T}-WEB03|amq|${T}-AGENT-WEB03`,
|
|
60965
|
+
db1: `SuperDomain|${T}-db1|KFK|${T}-agent-db1`,
|
|
60966
|
+
db22: `SuperDomain|${T}-db22|KFK|${T}-agent-db22`,
|
|
60967
|
+
app: `SuperDomain|${T}-app|Tomcat|${T}-agent-app`,
|
|
60968
|
+
'app-prod': `SuperDomain|${T}-app|Tomcat (Prod)|${T}-agent-app-prod`,
|
|
60969
|
+
'cache-a': `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-a`,
|
|
60970
|
+
'cache-aa': `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-aa`,
|
|
60971
|
+
'cache-aaa': `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-aaa`,
|
|
60972
|
+
};
|
|
60973
|
+
const ALL = Object.keys(sources);
|
|
60974
|
+
const cases = [
|
|
60975
|
+
{
|
|
60976
|
+
id: 'class-digits',
|
|
60977
|
+
construct: '[0-9][0-9] character classes (+ case-insensitivity)',
|
|
60978
|
+
sourceName: `SuperDomain|${T}-web[0-9][0-9]|AMQ|.*`,
|
|
60979
|
+
expected: ['web01', 'web02', 'web10', 'WEB03'],
|
|
60980
|
+
},
|
|
60981
|
+
{ id: 'brace-quantifier', construct: '{2} brace quantifier', sourceName: `SuperDomain|${T}-web[0-9]{2}|AMQ|.*`, expected: [] },
|
|
60982
|
+
{ id: 'plus-quantifier', construct: 'a+ plus quantifier', sourceName: `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-a+`, expected: [] },
|
|
60983
|
+
{
|
|
60984
|
+
id: 'star-bare',
|
|
60985
|
+
construct: 'aa* bare star (server drops a bare *)',
|
|
60986
|
+
sourceName: `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-aa*`,
|
|
60987
|
+
expected: ['cache-aa'],
|
|
60988
|
+
},
|
|
60989
|
+
{
|
|
60990
|
+
id: 'dot-star',
|
|
60991
|
+
construct: 'a.* dot-star',
|
|
60992
|
+
sourceName: `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-a.*`,
|
|
60993
|
+
expected: ['cache-a', 'cache-aa', 'cache-aaa'],
|
|
60994
|
+
},
|
|
60995
|
+
{
|
|
60996
|
+
id: 'dot-single',
|
|
60997
|
+
construct: 'a. single-char wildcard',
|
|
60998
|
+
sourceName: `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-a.`,
|
|
60999
|
+
expected: ['cache-aa'],
|
|
61000
|
+
},
|
|
61001
|
+
{ id: 'optional', construct: '0? optional quantifier', sourceName: `SuperDomain|${T}-web0?1|AMQ|.*`, expected: [] },
|
|
61002
|
+
{ id: 'backslash-d', construct: '\\d digit class', sourceName: `SuperDomain|${T}-db\\d|KFK|.*`, expected: ['db1'] },
|
|
61003
|
+
{ id: 'backslash-d-plus', construct: '\\d+ digit class + quantifier', sourceName: `SuperDomain|${T}-db\\d+|KFK|.*`, expected: [] },
|
|
61004
|
+
{
|
|
61005
|
+
id: 'group-alt-process',
|
|
61006
|
+
construct: '(AMQ|KFK) group alternation, process segment',
|
|
61007
|
+
sourceName: `SuperDomain|${T}-.*|(AMQ|KFK)|.*`,
|
|
61008
|
+
expected: ['web01', 'web02', 'web10', 'web1', 'WEB03', 'db1', 'db22', 'cache-a', 'cache-aa', 'cache-aaa'],
|
|
61009
|
+
},
|
|
61010
|
+
{
|
|
61011
|
+
id: 'group-alt-host',
|
|
61012
|
+
construct: '(db1|app) group alternation, host segment',
|
|
61013
|
+
sourceName: `SuperDomain|${T}-(db1|app)|.*`,
|
|
61014
|
+
expected: ['db1', 'app', 'app-prod'],
|
|
61015
|
+
},
|
|
61016
|
+
{
|
|
61017
|
+
id: 'group-alt-agent',
|
|
61018
|
+
construct: '(a|aaa) group alternation, agent segment',
|
|
61019
|
+
sourceName: `SuperDomain|${T}-cache|AMQ|${T}-agent-cache-(a|aaa)`,
|
|
61020
|
+
expected: ['cache-a', 'cache-aaa'],
|
|
61021
|
+
},
|
|
61022
|
+
{
|
|
61023
|
+
id: 'nested-group',
|
|
61024
|
+
construct: '((web|db)1) nested group',
|
|
61025
|
+
sourceName: `SuperDomain|${T}-((web|db)1)|.*`,
|
|
61026
|
+
expected: ['web1', 'db1'],
|
|
61027
|
+
},
|
|
61028
|
+
{
|
|
61029
|
+
id: 'literal-parens',
|
|
61030
|
+
construct: '(Prod) parentheses with no pipe = literal',
|
|
61031
|
+
sourceName: `SuperDomain|${T}-app|Tomcat (Prod)|.*`,
|
|
61032
|
+
expected: ['app-prod'],
|
|
61033
|
+
},
|
|
61034
|
+
{
|
|
61035
|
+
id: 'parens-pipe-trap',
|
|
61036
|
+
construct: '(Prod|Dev) becomes a group, no longer matches literal parens',
|
|
61037
|
+
sourceName: `SuperDomain|${T}-app|Tomcat (Prod|Dev)|.*`,
|
|
61038
|
+
expected: [],
|
|
61039
|
+
},
|
|
61040
|
+
{
|
|
61041
|
+
id: 'escaped-pipes',
|
|
61042
|
+
construct: 'user-escaped \\| (breaks)',
|
|
61043
|
+
sourceName: `SuperDomain\\|${T}-web01\\|AMQ\\|.*`,
|
|
61044
|
+
expected: ALL,
|
|
61045
|
+
},
|
|
61046
|
+
{
|
|
61047
|
+
id: 'case-flip',
|
|
61048
|
+
construct: 'case-insensitive match',
|
|
61049
|
+
sourceName: `superdomain|${T}-WEB01|amq|${T}-Agent-Web01`,
|
|
61050
|
+
expected: ['web01'],
|
|
61051
|
+
},
|
|
61052
|
+
{ id: 'anchors', construct: '^ … $ anchors', sourceName: `^SuperDomain|${T}-db.*$`, expected: ['db1', 'db22'] },
|
|
61053
|
+
{
|
|
61054
|
+
id: 'top-level-alternation',
|
|
61055
|
+
construct: 'two full names joined by top-level |',
|
|
61056
|
+
sourceName: `SuperDomain|${T}-db1|KFK|${T}-agent-db1|SuperDomain|${T}-app|Tomcat|${T}-agent-app`,
|
|
61057
|
+
expected: [],
|
|
61058
|
+
},
|
|
61059
|
+
{
|
|
61060
|
+
id: 'prefix-only',
|
|
61061
|
+
construct: 'host prefix + .*',
|
|
61062
|
+
sourceName: `SuperDomain|${T}-web.*`,
|
|
61063
|
+
expected: ['web01', 'web02', 'web10', 'web1', 'WEB03'],
|
|
61064
|
+
},
|
|
61065
|
+
{
|
|
61066
|
+
id: 'dot-matches-pipe',
|
|
61067
|
+
construct: '. in place of | (dot matches pipe)',
|
|
61068
|
+
sourceName: `SuperDomain.${T}-db1.KFK.${T}-agent-db1`,
|
|
61069
|
+
expected: ['db1'],
|
|
61070
|
+
},
|
|
61071
|
+
{
|
|
61072
|
+
id: 'class-negation',
|
|
61073
|
+
construct: '[^0] negated class',
|
|
61074
|
+
sourceName: `SuperDomain|${T}-web[^0].*|AMQ|.*`,
|
|
61075
|
+
expected: ['web10', 'web1'],
|
|
61076
|
+
},
|
|
61077
|
+
];
|
|
61078
|
+
return { sources, cases };
|
|
61079
|
+
}
|
|
61080
|
+
|
|
61081
|
+
const SEVERITY_ORDER = { error: 0, warning: 1, info: 2 };
|
|
61082
|
+
function scan(p) {
|
|
61083
|
+
const s = {
|
|
61084
|
+
escapedPipes: [],
|
|
61085
|
+
escapedParens: [],
|
|
61086
|
+
quoted: [],
|
|
61087
|
+
propertyOutsideClass: [],
|
|
61088
|
+
propertyInsideClass: [],
|
|
61089
|
+
nestedBrackets: [],
|
|
61090
|
+
quantifiers: [],
|
|
61091
|
+
braces: [],
|
|
61092
|
+
bareStars: [],
|
|
61093
|
+
topLevelPipes: [],
|
|
61094
|
+
upperOrLowerClass: [],
|
|
61095
|
+
literalParens: [],
|
|
61096
|
+
};
|
|
61097
|
+
const groups = pipeGroupRanges(p);
|
|
61098
|
+
const inGroup = (i) => groups.some(([a, b]) => i >= a && i <= b);
|
|
61099
|
+
let inClass = false;
|
|
61100
|
+
let depth = 0;
|
|
61101
|
+
for (let i = 0; i < p.length; i++) {
|
|
61102
|
+
const c = p[i];
|
|
61103
|
+
if (c === '\\') {
|
|
61104
|
+
const n = p[i + 1];
|
|
61105
|
+
if (n === '|')
|
|
61106
|
+
s.escapedPipes.push(i);
|
|
61107
|
+
else if (n === '(' || n === ')')
|
|
61108
|
+
s.escapedParens.push(i);
|
|
61109
|
+
else if (n === 'Q')
|
|
61110
|
+
s.quoted.push(i);
|
|
61111
|
+
else if (n === 'p' || n === 'P')
|
|
61112
|
+
(inClass ? s.propertyInsideClass : s.propertyOutsideClass).push(i);
|
|
61113
|
+
i++;
|
|
61114
|
+
continue;
|
|
61115
|
+
}
|
|
61116
|
+
if (inClass) {
|
|
61117
|
+
if (c === '[')
|
|
61118
|
+
s.nestedBrackets.push(i);
|
|
61119
|
+
else if (c === ']')
|
|
61120
|
+
inClass = false;
|
|
61121
|
+
continue;
|
|
61122
|
+
}
|
|
61123
|
+
if (c === '[') {
|
|
61124
|
+
inClass = true;
|
|
61125
|
+
if (/^\[\^?[A-Z]-[A-Z]/.test(p.slice(i)) || /^\[\^?[a-z]-[a-z]/.test(p.slice(i)))
|
|
61126
|
+
s.upperOrLowerClass.push(i);
|
|
61127
|
+
continue;
|
|
61128
|
+
}
|
|
61129
|
+
if (c === '(') {
|
|
61130
|
+
depth++;
|
|
61131
|
+
if (!inGroup(i))
|
|
61132
|
+
s.literalParens.push(i);
|
|
61133
|
+
continue;
|
|
61134
|
+
}
|
|
61135
|
+
if (c === ')') {
|
|
61136
|
+
depth = Math.max(0, depth - 1);
|
|
61137
|
+
continue;
|
|
61138
|
+
}
|
|
61139
|
+
if (c === '+' || (c === '?' && p[i - 1] !== '('))
|
|
61140
|
+
s.quantifiers.push(i);
|
|
61141
|
+
else if (c === '{') {
|
|
61142
|
+
const close = p.indexOf('}', i);
|
|
61143
|
+
s.braces.push({ start: i, end: close === -1 ? i + 1 : close + 1 });
|
|
61144
|
+
}
|
|
61145
|
+
else if (c === '*' && p[i - 1] !== '.')
|
|
61146
|
+
s.bareStars.push(i);
|
|
61147
|
+
else if (c === '|' && depth === 0)
|
|
61148
|
+
s.topLevelPipes.push(i);
|
|
61149
|
+
}
|
|
61150
|
+
return s;
|
|
61151
|
+
}
|
|
61152
|
+
function topLevelSegments(p, pipes) {
|
|
61153
|
+
const out = [];
|
|
61154
|
+
let from = 0;
|
|
61155
|
+
for (const i of pipes) {
|
|
61156
|
+
out.push(p.slice(from, i));
|
|
61157
|
+
from = i + 1;
|
|
61158
|
+
}
|
|
61159
|
+
out.push(p.slice(from));
|
|
61160
|
+
return out;
|
|
61161
|
+
}
|
|
61162
|
+
/** `X{n}` → X repeated n times, for a class, a `\x` escape, or a single character (n ≤ 9). */
|
|
61163
|
+
function expandBraces(p) {
|
|
61164
|
+
const re = /(\[[^\]]*\]|\\[a-zA-Z]|[^\\[\](){}|+?*.])\{([1-9])\}/g;
|
|
61165
|
+
if (!re.test(p))
|
|
61166
|
+
return undefined;
|
|
61167
|
+
return p.replace(re, (_m, atom, n) => atom.repeat(Number(n)));
|
|
61168
|
+
}
|
|
61169
|
+
function lintSourceName(pattern) {
|
|
61170
|
+
if (!pattern)
|
|
61171
|
+
return [];
|
|
61172
|
+
const hints = [];
|
|
61173
|
+
const s = scan(pattern);
|
|
61174
|
+
const at = (i, len = 2) => ({ start: i, end: i + len });
|
|
61175
|
+
if (isWildcardOnlySourceName(pattern)) {
|
|
61176
|
+
hints.push({
|
|
61177
|
+
ruleId: 'wildcard-only',
|
|
61178
|
+
severity: 'error',
|
|
61179
|
+
message: 'A pattern made only of wildcards matches nothing — the server refuses catch-alls.',
|
|
61180
|
+
span: { start: 0, end: pattern.length },
|
|
61181
|
+
suggestion: '.*|.*|.*|.*',
|
|
61182
|
+
});
|
|
61183
|
+
return hints;
|
|
61184
|
+
}
|
|
61185
|
+
if (s.escapedPipes.length > 0) {
|
|
61186
|
+
hints.push({
|
|
61187
|
+
ruleId: 'escaped-pipe',
|
|
61188
|
+
severity: 'error',
|
|
61189
|
+
message: 'Do not escape pipes: the server escapes them itself, so \\| becomes a literal backslash plus real alternation.',
|
|
61190
|
+
span: at(s.escapedPipes[0]),
|
|
61191
|
+
suggestion: pattern.replace(/\\\|/g, '|'),
|
|
61192
|
+
});
|
|
61193
|
+
}
|
|
61194
|
+
if (s.escapedParens.length > 0) {
|
|
61195
|
+
hints.push({
|
|
61196
|
+
ruleId: 'escaped-paren',
|
|
61197
|
+
severity: 'error',
|
|
61198
|
+
message: 'Do not escape parentheses: parentheses without a | inside are already literal, and \\( breaks the match.',
|
|
61199
|
+
span: at(s.escapedParens[0]),
|
|
61200
|
+
suggestion: pattern.replace(/\\([()])/g, '$1'),
|
|
61201
|
+
});
|
|
61202
|
+
}
|
|
61203
|
+
if (s.quoted.length > 0) {
|
|
61204
|
+
hints.push({
|
|
61205
|
+
ruleId: 'quoted-literal',
|
|
61206
|
+
severity: 'error',
|
|
61207
|
+
message: '\\Q…\\E never matches: the pipes inside the quote are escaped too. Write the name plainly.',
|
|
61208
|
+
span: at(s.quoted[0]),
|
|
61209
|
+
suggestion: pattern.replace(/\\Q/g, '').replace(/\\E/g, ''),
|
|
61210
|
+
});
|
|
61211
|
+
}
|
|
61212
|
+
if (s.propertyOutsideClass.length > 0) {
|
|
61213
|
+
const i = s.propertyOutsideClass[0];
|
|
61214
|
+
hints.push({
|
|
61215
|
+
ruleId: 'unicode-property',
|
|
61216
|
+
severity: 'error',
|
|
61217
|
+
message: 'A Unicode property (\\pL) only works inside a character class: write [\\pL].',
|
|
61218
|
+
span: at(i, 3),
|
|
61219
|
+
suggestion: pattern.replace(/\\([pP])(\{[^}]*\}|[A-Za-z])/g, (m, _p, _n, off) => s.propertyOutsideClass.includes(off) ? `[${m}]` : m),
|
|
61220
|
+
});
|
|
61221
|
+
}
|
|
61222
|
+
if (s.nestedBrackets.length > 0) {
|
|
61223
|
+
hints.push({
|
|
61224
|
+
ruleId: 'nested-brackets',
|
|
61225
|
+
severity: 'error',
|
|
61226
|
+
message: 'A character class ends at the first ] — nested classes ([[:digit:]], [a-z&&[^b]]) break the pattern.',
|
|
61227
|
+
span: at(s.nestedBrackets[0], 1),
|
|
61228
|
+
});
|
|
61229
|
+
}
|
|
61230
|
+
const compiled = compileTcSourceName(pattern);
|
|
61231
|
+
if (!compiled.ok && compiled.reason === 'invalid' && s.nestedBrackets.length === 0) {
|
|
61232
|
+
hints.push({
|
|
61233
|
+
ruleId: 'unbalanced',
|
|
61234
|
+
severity: 'error',
|
|
61235
|
+
message: 'This pattern does not compile, so it matches nothing — and the server reports no error. Check every [ and (.',
|
|
61236
|
+
});
|
|
61237
|
+
}
|
|
61238
|
+
if (s.quantifiers.length > 0 || s.braces.length > 0) {
|
|
61239
|
+
const first = Math.min(...s.quantifiers, ...s.braces.map((b) => b.start));
|
|
61240
|
+
const expanded = expandBraces(pattern);
|
|
61241
|
+
hints.push({
|
|
61242
|
+
ruleId: 'quantifier-literal',
|
|
61243
|
+
severity: 'warning',
|
|
61244
|
+
message: '+, ? and {n} are literal characters here (inside (…|…) groups too). Repeat the class instead ([0-9][0-9]), use .* for "one or more", or a (x|y) group for "optional".',
|
|
61245
|
+
span: at(first, 1),
|
|
61246
|
+
...(expanded !== undefined ? { suggestion: expanded } : {}),
|
|
61247
|
+
});
|
|
61248
|
+
}
|
|
61249
|
+
if (s.bareStars.length > 0) {
|
|
61250
|
+
let offset = 0;
|
|
61251
|
+
let suggestion = pattern;
|
|
61252
|
+
for (const i of s.bareStars) {
|
|
61253
|
+
suggestion = `${suggestion.slice(0, i + offset)}.${suggestion.slice(i + offset)}`;
|
|
61254
|
+
offset++;
|
|
61255
|
+
}
|
|
61256
|
+
hints.push({
|
|
61257
|
+
ruleId: 'bare-star',
|
|
61258
|
+
severity: 'warning',
|
|
61259
|
+
message: 'A * that does not follow a . is dropped (aa* means aa). Write .* for "anything".',
|
|
61260
|
+
span: at(s.bareStars[0], 1),
|
|
61261
|
+
suggestion,
|
|
61262
|
+
});
|
|
61263
|
+
}
|
|
61264
|
+
const segments = topLevelSegments(pattern, s.topLevelPipes);
|
|
61265
|
+
const first = segments[0] ?? '';
|
|
61266
|
+
if (segments.length > 4 && first && segments.slice(1).some((seg) => seg.toLowerCase() === first.toLowerCase())) {
|
|
61267
|
+
hints.push({
|
|
61268
|
+
ruleId: 'top-level-alternation',
|
|
61269
|
+
severity: 'warning',
|
|
61270
|
+
message: 'A | outside parentheses is a literal pipe, so these joined names form one long name. Alternate inside one segment, e.g. SuperDomain|(host-a|host-b)|…, or write two rules.',
|
|
61271
|
+
span: at(s.topLevelPipes[3] ?? 0, 1),
|
|
61272
|
+
});
|
|
61273
|
+
}
|
|
61274
|
+
const hasRegex = /[.[\]^$\\(]/.test(pattern);
|
|
61275
|
+
if (!hasRegex && segments.length < 4) {
|
|
61276
|
+
hints.push({
|
|
61277
|
+
ruleId: 'bare-substring',
|
|
61278
|
+
severity: 'warning',
|
|
61279
|
+
message: 'Matching is full-string: a fragment of a source name matches nothing.',
|
|
61280
|
+
span: { start: 0, end: pattern.length },
|
|
61281
|
+
suggestion: /^superdomain\|/i.test(pattern) ? `${pattern}|.*` : `.*${pattern}.*`,
|
|
61282
|
+
});
|
|
61283
|
+
}
|
|
61284
|
+
if (pipeGroupRanges(pattern).length > 0) {
|
|
61285
|
+
hints.push({
|
|
61286
|
+
ruleId: 'parens-pipe-trap',
|
|
61287
|
+
severity: 'info',
|
|
61288
|
+
message: '(x|y) is alternation — and those parentheses no longer match literal parentheses in a name ("Tomcat (Prod|Dev)" does not match "Tomcat (Prod)").',
|
|
61289
|
+
span: at(pipeGroupRanges(pattern)[0][0], 1),
|
|
61290
|
+
});
|
|
61291
|
+
}
|
|
61292
|
+
if (s.literalParens.length > 0) {
|
|
61293
|
+
hints.push({
|
|
61294
|
+
ruleId: 'literal-parens',
|
|
61295
|
+
severity: 'info',
|
|
61296
|
+
message: 'Parentheses without a | inside are literal characters; regex inside them is not honoured.',
|
|
61297
|
+
span: at(s.literalParens[0], 1),
|
|
61298
|
+
});
|
|
61299
|
+
}
|
|
61300
|
+
if (s.upperOrLowerClass.length > 0) {
|
|
61301
|
+
hints.push({
|
|
61302
|
+
ruleId: 'case-insensitive',
|
|
61303
|
+
severity: 'info',
|
|
61304
|
+
message: 'Matching ignores case: [A-Z] and [a-z] both match either case.',
|
|
61305
|
+
span: at(s.upperOrLowerClass[0], 1),
|
|
61306
|
+
});
|
|
61307
|
+
}
|
|
61308
|
+
if (s.propertyInsideClass.length > 0) {
|
|
61309
|
+
hints.push({
|
|
61310
|
+
ruleId: 'unicode-property',
|
|
61311
|
+
severity: 'info',
|
|
61312
|
+
message: 'The server honours [\\pL]-style classes; the local simulation cannot, so trust the server preview for this rule.',
|
|
61313
|
+
span: at(s.propertyInsideClass[0], 3),
|
|
61314
|
+
});
|
|
61315
|
+
}
|
|
61316
|
+
return hints.sort((a, b) => SEVERITY_ORDER[a.severity] - SEVERITY_ORDER[b.severity] ||
|
|
61317
|
+
(a.span?.start ?? -1) - (b.span?.start ?? -1));
|
|
61318
|
+
}
|
|
61319
|
+
|
|
60148
61320
|
var LogIngest;
|
|
60149
61321
|
(function (LogIngest) {
|
|
60150
61322
|
/**
|
|
@@ -60477,7 +61649,8 @@ var LogQuery;
|
|
|
60477
61649
|
};
|
|
60478
61650
|
}
|
|
60479
61651
|
LogQuery.createOr = createOr;
|
|
60480
|
-
|
|
61652
|
+
/** Fields the filter API returns unless a caller projects more; custom fields need an explicit include. */
|
|
61653
|
+
LogQuery.DEFAULT_INCLUDES = [
|
|
60481
61654
|
'_id',
|
|
60482
61655
|
'host',
|
|
60483
61656
|
'logseverity',
|
|
@@ -60485,7 +61658,8 @@ var LogQuery;
|
|
|
60485
61658
|
'timestamp',
|
|
60486
61659
|
'file',
|
|
60487
61660
|
'message',
|
|
60488
|
-
]
|
|
61661
|
+
];
|
|
61662
|
+
function createLogQueryRequestBody(range, ors, severities = [], includes = [...LogQuery.DEFAULT_INCLUDES], size = 1000, sort = [{ sortKey: 'timestamp', sortOrder: 'Asc' }]) {
|
|
60489
61663
|
const nonEmptySeverities = severities.filter((s) => s.length > 0);
|
|
60490
61664
|
const severityClause = nonEmptySeverities.length > 0
|
|
60491
61665
|
? [
|
|
@@ -73830,46 +75004,55 @@ const coerce$1 = (version, options) => {
|
|
|
73830
75004
|
};
|
|
73831
75005
|
var coerce_1 = coerce$1;
|
|
73832
75006
|
|
|
73833
|
-
|
|
73834
|
-
|
|
73835
|
-
this.max = 1000;
|
|
73836
|
-
this.map = new Map();
|
|
73837
|
-
}
|
|
75007
|
+
var lrucache;
|
|
75008
|
+
var hasRequiredLrucache;
|
|
73838
75009
|
|
|
73839
|
-
|
|
73840
|
-
|
|
73841
|
-
|
|
73842
|
-
return undefined
|
|
73843
|
-
} else {
|
|
73844
|
-
// Remove the key from the map and add it to the end
|
|
73845
|
-
this.map.delete(key);
|
|
73846
|
-
this.map.set(key, value);
|
|
73847
|
-
return value
|
|
73848
|
-
}
|
|
73849
|
-
}
|
|
75010
|
+
function requireLrucache () {
|
|
75011
|
+
if (hasRequiredLrucache) return lrucache;
|
|
75012
|
+
hasRequiredLrucache = 1;
|
|
73850
75013
|
|
|
73851
|
-
|
|
73852
|
-
|
|
73853
|
-
|
|
75014
|
+
class LRUCache {
|
|
75015
|
+
constructor () {
|
|
75016
|
+
this.max = 1000;
|
|
75017
|
+
this.map = new Map();
|
|
75018
|
+
}
|
|
73854
75019
|
|
|
73855
|
-
|
|
73856
|
-
|
|
75020
|
+
get (key) {
|
|
75021
|
+
const value = this.map.get(key);
|
|
75022
|
+
if (value === undefined) {
|
|
75023
|
+
return undefined
|
|
75024
|
+
} else {
|
|
75025
|
+
// Remove the key from the map and add it to the end
|
|
75026
|
+
this.map.delete(key);
|
|
75027
|
+
this.map.set(key, value);
|
|
75028
|
+
return value
|
|
75029
|
+
}
|
|
75030
|
+
}
|
|
73857
75031
|
|
|
73858
|
-
|
|
73859
|
-
|
|
73860
|
-
|
|
73861
|
-
const firstKey = this.map.keys().next().value;
|
|
73862
|
-
this.delete(firstKey);
|
|
73863
|
-
}
|
|
75032
|
+
delete (key) {
|
|
75033
|
+
return this.map.delete(key)
|
|
75034
|
+
}
|
|
73864
75035
|
|
|
73865
|
-
|
|
73866
|
-
|
|
75036
|
+
set (key, value) {
|
|
75037
|
+
const deleted = this.delete(key);
|
|
73867
75038
|
|
|
73868
|
-
|
|
73869
|
-
|
|
73870
|
-
|
|
75039
|
+
if (!deleted && value !== undefined) {
|
|
75040
|
+
// If cache is full, delete the least recently used item
|
|
75041
|
+
if (this.map.size >= this.max) {
|
|
75042
|
+
const firstKey = this.map.keys().next().value;
|
|
75043
|
+
this.delete(firstKey);
|
|
75044
|
+
}
|
|
75045
|
+
|
|
75046
|
+
this.map.set(key, value);
|
|
75047
|
+
}
|
|
73871
75048
|
|
|
73872
|
-
|
|
75049
|
+
return this
|
|
75050
|
+
}
|
|
75051
|
+
}
|
|
75052
|
+
|
|
75053
|
+
lrucache = LRUCache;
|
|
75054
|
+
return lrucache;
|
|
75055
|
+
}
|
|
73873
75056
|
|
|
73874
75057
|
var range;
|
|
73875
75058
|
var hasRequiredRange;
|
|
@@ -74092,7 +75275,7 @@ function requireRange () {
|
|
|
74092
75275
|
|
|
74093
75276
|
range = Range;
|
|
74094
75277
|
|
|
74095
|
-
const LRU =
|
|
75278
|
+
const LRU = requireLrucache();
|
|
74096
75279
|
const cache = new LRU();
|
|
74097
75280
|
|
|
74098
75281
|
const parseOptions = parseOptions_1;
|
|
@@ -87082,5 +88265,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
|
|
|
87082
88265
|
};
|
|
87083
88266
|
}
|
|
87084
88267
|
|
|
87085
|
-
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, LogCustomIngest, LogIngest, LogQuery, LogTypes, 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, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, 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, measureBytes, 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, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, 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 };
|
|
88268
|
+
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, JEXL_CONTEXT_CATALOG, JEXL_SAMPLE_CONTEXT, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogCustomIngest, LogIngest, LogQuery, LogTypes, 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, SOURCENAME_DIALECT_CATALOG, 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, TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS, TC_STANDARD_ATTRIBUTE_KEYS, 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, attributeFilterTargets, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, compileTcSourceName, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, customAttributeKeyIssues, 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, isWildcardOnlySourceName, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, lintSourceName, 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, measureBytes, 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, parseExternalIdFormat, parseFilter, parseSaasGateway, parseServiceNowUrl, pipeGroupRanges, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, sliHumanName, sloTripletFor, sortRulesByPriority, sourceNameBattery, sourceNameMatrix, splitAttributePath, splitTemplate, standardVertexAttributes, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToJavaRegex, 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 };
|
|
87086
88269
|
//# sourceMappingURL=index.esm.js.map
|