@dx-do/client 6.3.3 → 6.3.4
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 +40 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +40 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/src/lib/model/datastore/nassql/operations.d.ts +28 -18
- package/dist/src/lib/model/datastore/nassql/operations.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/nassql/query.d.ts +25 -15
- package/dist/src/lib/model/datastore/nassql/query.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -29322,12 +29322,15 @@ const QueryFilterPredicateSpecSchema = v4.z.union([
|
|
|
29322
29322
|
const QueryRangeSpecSchema = v4.z.looseObject({
|
|
29323
29323
|
endTime: v4.z
|
|
29324
29324
|
.number()
|
|
29325
|
-
.
|
|
29325
|
+
.optional()
|
|
29326
|
+
.describe('Absolute end time in ms since epoch; omit (or 0) for `now`'),
|
|
29326
29327
|
rangeSize: v4.z
|
|
29327
29328
|
.number()
|
|
29329
|
+
.optional()
|
|
29328
29330
|
.describe('Window length in ms; `startTime = endTime - rangeSize`. Default 8 minutes'),
|
|
29329
29331
|
frequency: v4.z
|
|
29330
29332
|
.number()
|
|
29333
|
+
.optional()
|
|
29331
29334
|
.describe('Initial NASS aggregation interval in ms; default 15s. Aggregator picked per metric type'),
|
|
29332
29335
|
});
|
|
29333
29336
|
/**
|
|
@@ -29978,6 +29981,41 @@ const QueryFromDataSpecSchema = v4.z.looseObject({
|
|
|
29978
29981
|
queryRange: QueryRangeSpecSchema.optional().describe('Time-window to fetch; defaults to pipeline range'),
|
|
29979
29982
|
alias: v4.z.string().optional().describe('Column namespace for output rows'),
|
|
29980
29983
|
});
|
|
29984
|
+
/**
|
|
29985
|
+
* `WQL` — source op that selects time-series via a single **WQL** expression
|
|
29986
|
+
* instead of a Metrics Metadata `querySpecifier`. Like `FROM`, it produces
|
|
29987
|
+
* data rows and is typically the first op in the pipeline.
|
|
29988
|
+
*
|
|
29989
|
+
* The `wql` string is parsed server-side (ANTLR `DXQueryCompiler`); we treat
|
|
29990
|
+
* it as opaque here — no client-side grammar validation. Grammar:
|
|
29991
|
+
*
|
|
29992
|
+
* `ts(<metric-name>[, <predicates>])`
|
|
29993
|
+
*
|
|
29994
|
+
* `<metric-name>` may be quoted or unquoted. `<predicates>` combine
|
|
29995
|
+
* `attr=value` terms with `and` / `or` / `not`, grouping `( … )`, single- or
|
|
29996
|
+
* double-quoted values, and `*` wildcards. Example:
|
|
29997
|
+
*
|
|
29998
|
+
* `ts("CPU Time (ms)" and source="web-server-01" and not env="staging")`
|
|
29999
|
+
*
|
|
30000
|
+
* **Tenant gating**: requires the `DXDASHBOARDS_WQL_FEATURE` toggle; tenants
|
|
30001
|
+
* without it return an error at run time.
|
|
30002
|
+
*/
|
|
30003
|
+
const QueryWqlSpecSchema = v4.z.looseObject({
|
|
30004
|
+
op: v4.z.literal('WQL'),
|
|
30005
|
+
wql: v4.z
|
|
30006
|
+
.string()
|
|
30007
|
+
.min(1)
|
|
30008
|
+
.describe('WQL expression selecting time-series. Grammar: `ts(<metric-name>[, <predicates>])` — name quoted or unquoted; predicates combine `attr=value` with `and`/`or`/`not`, grouping `( )`, quoted values, and `*` wildcards. E.g. `ts("CPU Time (ms)" and source="web-server-01")`. Server-parsed (ANTLR); required and non-empty.'),
|
|
30009
|
+
clamp: v4.z
|
|
30010
|
+
.union([v4.z.number(), v4.z.string()])
|
|
30011
|
+
.optional()
|
|
30012
|
+
.describe('Cap on results; `0` = unlimited (default). Semantically an int, but the platform emits it on the wire as a numeric string (e.g. `"10000"`) — both forms accepted.'),
|
|
30013
|
+
useAttributes: v4.z
|
|
30014
|
+
.boolean()
|
|
30015
|
+
.optional()
|
|
30016
|
+
.describe('When true, use metadata attributes in the WQL metadata query; omit to fall back to the tenant config default (`isMetadataQueryUsingAttributes`).'),
|
|
30017
|
+
queryRange: QueryRangeSpecSchema.optional().describe('Time-window spec; defaults to the last 8 minutes ending now'),
|
|
30018
|
+
});
|
|
29981
30019
|
/**
|
|
29982
30020
|
* `JOIN_METADATA` — for each upstream row, look up zero or one
|
|
29983
30021
|
* `MetricDescriptor` by the external ID in `externalIdColumn` and
|
|
@@ -30131,6 +30169,7 @@ const QueryFunctionSpecSchema = v4.z.discriminatedUnion('op', [
|
|
|
30131
30169
|
QueryFromMetadataSpecSchema,
|
|
30132
30170
|
QueryFromTopologySpecSchema,
|
|
30133
30171
|
QueryFromDataSpecSchema,
|
|
30172
|
+
QueryWqlSpecSchema,
|
|
30134
30173
|
QueryJoinMetadataSpecSchema,
|
|
30135
30174
|
QueryJoinTopologySpecSchema,
|
|
30136
30175
|
QueryLogSpecSchema,
|