@dx-do/client 8.0.0 → 9.1.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 +8637 -1995
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8425 -1996
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +28 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-queue.d.ts +2 -0
- package/dist/src/lib/model/alarm/alarm-queue.d.ts.map +1 -1
- package/dist/src/lib/model/alert/metric-query-spec.d.ts +49 -0
- package/dist/src/lib/model/alert/metric-query-spec.d.ts.map +1 -0
- package/dist/src/lib/model/channel/notify-channel.d.ts +5 -4
- package/dist/src/lib/model/channel/notify-channel.d.ts.map +1 -1
- package/dist/src/lib/model/dashboard/CanvasPanel.d.ts +1035 -0
- package/dist/src/lib/model/dashboard/CanvasPanel.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/DashboardResponse.d.ts +12 -3
- package/dist/src/lib/model/dashboard/DashboardResponse.d.ts.map +1 -1
- package/dist/src/lib/model/dashboard/spec/DashboardSpec.d.ts +4530 -0
- package/dist/src/lib/model/dashboard/spec/DashboardSpec.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/describe.d.ts +40 -0
- package/dist/src/lib/model/dashboard/spec/describe.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/expand.d.ts +65 -0
- package/dist/src/lib/model/dashboard/spec/expand.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/layout.d.ts +43 -0
- package/dist/src/lib/model/dashboard/spec/layout.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/legend.d.ts +99 -0
- package/dist/src/lib/model/dashboard/spec/legend.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/links.d.ts +57 -0
- package/dist/src/lib/model/dashboard/spec/links.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/metrics-query.d.ts +39 -0
- package/dist/src/lib/model/dashboard/spec/metrics-query.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/panel-options.d.ts +33 -0
- package/dist/src/lib/model/dashboard/spec/panel-options.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/spec/panel-options.generated.d.ts +3 -0
- package/dist/src/lib/model/dashboard/spec/panel-options.generated.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/targets/ElasticTarget.d.ts +246 -0
- package/dist/src/lib/model/dashboard/targets/ElasticTarget.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/targets/NasTarget.d.ts +147 -0
- package/dist/src/lib/model/dashboard/targets/NasTarget.d.ts.map +1 -0
- package/dist/src/lib/model/dashboard/targets/TasTarget.d.ts +74 -0
- package/dist/src/lib/model/dashboard/targets/TasTarget.d.ts.map +1 -0
- package/dist/src/lib/model/datastore/audit/response.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/metrics-metadata/attribute-name-specifier.d.ts +10 -10
- package/dist/src/lib/model/datastore/metrics-metadata/query-specifier.d.ts +4 -4
- package/dist/src/lib/model/datastore/metrics-metadata/register.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/metrics-metadata/source-name-specifier.d.ts +2 -2
- package/dist/src/lib/model/datastore/nass/store.d.ts.map +1 -1
- package/dist/src/lib/model/datastore/nassql/filter-specs.d.ts +1 -1
- package/dist/src/lib/model/datastore/nassql/operations.d.ts +1 -1
- package/dist/src/lib/model/datastore/nassql/query.d.ts +1 -1
- package/dist/src/lib/model/datastore/states/query.d.ts +4 -4
- package/dist/src/lib/model/datastore/tas/filters.d.ts +15 -15
- package/dist/src/lib/model/datastore/tas/query.d.ts +2 -2
- package/dist/src/lib/model/datastore/tas/store.d.ts.map +1 -1
- package/dist/src/lib/model/managementmodule/management-module-transform-presets.d.ts.map +1 -1
- package/dist/src/lib/model/managementmodule/management-module-transform.d.ts +54 -0
- package/dist/src/lib/model/managementmodule/management-module-transform.d.ts.map +1 -1
- package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts +10 -0
- package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts.map +1 -1
- package/dist/src/lib/model/nass/NASS.d.ts +10 -6
- package/dist/src/lib/model/nass/NASS.d.ts.map +1 -1
- package/dist/src/lib/model/oi/alarms.d.ts +14 -0
- package/dist/src/lib/model/oi/alarms.d.ts.map +1 -1
- package/dist/src/lib/model/oi/custom-properties.d.ts +184 -0
- package/dist/src/lib/model/oi/custom-properties.d.ts.map +1 -0
- package/dist/src/lib/model/oi/custom-property-grid.d.ts +121 -0
- package/dist/src/lib/model/oi/custom-property-grid.d.ts.map +1 -0
- package/dist/src/lib/model/oi/custom-property-routing.d.ts +60 -0
- package/dist/src/lib/model/oi/custom-property-routing.d.ts.map +1 -0
- package/dist/src/lib/model/oi/services.create.d.ts +6 -1
- package/dist/src/lib/model/oi/services.create.d.ts.map +1 -1
- package/dist/src/lib/model/security/access-references.d.ts +23 -0
- package/dist/src/lib/model/security/access-references.d.ts.map +1 -0
- package/dist/src/lib/model/security/roles.d.ts +75 -0
- package/dist/src/lib/model/security/roles.d.ts.map +1 -0
- package/dist/src/lib/model/security/user-groups.d.ts +69 -0
- package/dist/src/lib/model/security/user-groups.d.ts.map +1 -0
- package/dist/src/lib/model/service/availability-kpi.d.ts +86 -0
- package/dist/src/lib/model/service/availability-kpi.d.ts.map +1 -0
- package/dist/src/lib/model/situations/SituationLifecycle.d.ts +2 -0
- package/dist/src/lib/model/situations/SituationLifecycle.d.ts.map +1 -1
- package/dist/src/lib/model/situations/naming-template.d.ts +73 -0
- package/dist/src/lib/model/situations/naming-template.d.ts.map +1 -0
- package/dist/src/lib/model/situations/situation-explain.d.ts +365 -0
- package/dist/src/lib/model/situations/situation-explain.d.ts.map +1 -0
- package/dist/src/lib/model/sli/definition.d.ts +15 -12
- package/dist/src/lib/model/sli/definition.d.ts.map +1 -1
- package/dist/src/lib/model/synthetics/access-policy.d.ts +115 -0
- package/dist/src/lib/model/synthetics/access-policy.d.ts.map +1 -0
- package/dist/src/lib/model/synthetics/query.d.ts +1 -1
- package/dist/src/lib/services/alarm.service.d.ts +22 -2
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/custom-property.service.d.ts +53 -0
- package/dist/src/lib/services/custom-property.service.d.ts.map +1 -0
- package/dist/src/lib/services/dashboard.service.d.ts +11 -0
- package/dist/src/lib/services/dashboard.service.d.ts.map +1 -1
- package/dist/src/lib/services/dx-saas.service.d.ts +6 -0
- package/dist/src/lib/services/dx-saas.service.d.ts.map +1 -1
- package/dist/src/lib/services/nass.service.d.ts +6 -0
- package/dist/src/lib/services/nass.service.d.ts.map +1 -1
- package/dist/src/lib/services/platform-alert.service.d.ts +11 -0
- package/dist/src/lib/services/platform-alert.service.d.ts.map +1 -1
- package/dist/src/lib/services/role.service.d.ts +46 -0
- package/dist/src/lib/services/role.service.d.ts.map +1 -0
- package/dist/src/lib/services/service-monolith.d.ts +8 -0
- package/dist/src/lib/services/service-monolith.d.ts.map +1 -1
- package/dist/src/lib/services/service.service.d.ts +43 -2
- package/dist/src/lib/services/service.service.d.ts.map +1 -1
- package/dist/src/lib/services/situation.service.d.ts +13 -2
- package/dist/src/lib/services/situation.service.d.ts.map +1 -1
- package/dist/src/lib/services/synthetic-access.service.d.ts +35 -0
- package/dist/src/lib/services/synthetic-access.service.d.ts.map +1 -0
- package/dist/src/lib/services/user-group.service.d.ts +52 -0
- package/dist/src/lib/services/user-group.service.d.ts.map +1 -0
- package/package.json +4 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* A panel target of the `elastic-wrapper-datasource` plugin, as DX Dashboards persists it. The plugin
|
|
4
|
+
* backs the Elasticsearch datasources: `AIOps_Metadata` (and its `_startTime` / `_ts` variants),
|
|
5
|
+
* `All_Alarms`, `Audit`, `AXA Session Events`, `Capacity Analytics`, `JMetrics`, `Maintenance_*`,
|
|
6
|
+
* `Metrics_Alarms`, `OIRawAlarms`, … Read from the plugin's served source (`types.ts`, `datasource.ts`,
|
|
7
|
+
* `query_builder.ts`, the metric and bucket aggregation editors) and checked against every target on
|
|
8
|
+
* THE_LABORATORY.
|
|
9
|
+
*
|
|
10
|
+
* The plugin is Grafana's Elasticsearch query editor with Broadcom additions (a second index joined
|
|
11
|
+
* by column, Painless script metrics, `_source` includes). It builds Elasticsearch query DSL itself
|
|
12
|
+
* and posts it as `_msearch` NDJSON (one header + one body per target) through the datasource proxy,
|
|
13
|
+
* or as `{queries: [...]}` with join mappings when any target in the panel has `hasJoin`. dx-do models
|
|
14
|
+
* no Elasticsearch DSL, so there is no dx-do schema to compile the builder into; `elasticTargetQuery`
|
|
15
|
+
* names the mode and the parts the request is built from.
|
|
16
|
+
*
|
|
17
|
+
* What the request takes from elsewhere:
|
|
18
|
+
* - The index is the datasource's configured `database` when it has one (All_Alarms, Audit, … are
|
|
19
|
+
* pinned); only the `AIOps_Metadata*` datasources, with no database, use `primaryIndex`. An
|
|
20
|
+
* `ao_<name>_<n>` index is widened to `ao_<name>_<n>_*` (rollover).
|
|
21
|
+
* - The time field is the datasource's `timeField`; the target's copy is overwritten when it runs.
|
|
22
|
+
* - The Lucene `query` (empty = `*`) and `alias` get dashboard variables substituted.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ELASTIC_METRIC_TYPES: readonly ["count", "avg", "sum", "min", "max", "avg_script", "sum_script", "min_script", "max_script", "extended_stats", "percentiles", "cardinality", "raw_document", "logs", "moving_avg", "derivative", "bucket_script"];
|
|
25
|
+
/** The Elasticsearch aggregation a metric type is sent as (`avg_script` → `avg`, …). */
|
|
26
|
+
export declare function esMetricType(type: string): string;
|
|
27
|
+
export declare const ElasticMetricSettingsSchema: z.ZodObject<{
|
|
28
|
+
script: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
29
|
+
inline: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>]>>;
|
|
31
|
+
missing: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
32
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
33
|
+
logSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
34
|
+
percents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
35
|
+
sigma: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
36
|
+
precision_threshold: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
37
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
export declare const ElasticMetricSchema: z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodEnum<{
|
|
42
|
+
min: "min";
|
|
43
|
+
max: "max";
|
|
44
|
+
count: "count";
|
|
45
|
+
logs: "logs";
|
|
46
|
+
avg: "avg";
|
|
47
|
+
sum: "sum";
|
|
48
|
+
avg_script: "avg_script";
|
|
49
|
+
sum_script: "sum_script";
|
|
50
|
+
min_script: "min_script";
|
|
51
|
+
max_script: "max_script";
|
|
52
|
+
extended_stats: "extended_stats";
|
|
53
|
+
percentiles: "percentiles";
|
|
54
|
+
cardinality: "cardinality";
|
|
55
|
+
raw_document: "raw_document";
|
|
56
|
+
moving_avg: "moving_avg";
|
|
57
|
+
derivative: "derivative";
|
|
58
|
+
bucket_script: "bucket_script";
|
|
59
|
+
}>;
|
|
60
|
+
field: z.ZodOptional<z.ZodString>;
|
|
61
|
+
hide: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
63
|
+
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
script: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
66
|
+
inline: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$loose>]>>;
|
|
68
|
+
missing: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
69
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
70
|
+
logSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
71
|
+
percents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
72
|
+
sigma: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
73
|
+
precision_threshold: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
74
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$loose>>;
|
|
76
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
77
|
+
pipelineAgg: z.ZodOptional<z.ZodString>;
|
|
78
|
+
pipelineVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
pipelineAgg: z.ZodString;
|
|
81
|
+
}, z.core.$loose>>>;
|
|
82
|
+
}, z.core.$loose>;
|
|
83
|
+
export declare const ElasticBucketAggTypeSchema: z.ZodEnum<{
|
|
84
|
+
filters: "filters";
|
|
85
|
+
terms: "terms";
|
|
86
|
+
geohash_grid: "geohash_grid";
|
|
87
|
+
date_histogram: "date_histogram";
|
|
88
|
+
histogram: "histogram";
|
|
89
|
+
}>;
|
|
90
|
+
export declare const ElasticBucketAggSettingsSchema: z.ZodObject<{
|
|
91
|
+
interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
92
|
+
min_doc_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
93
|
+
trimEdges: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
94
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
95
|
+
size: z.ZodOptional<z.ZodString>;
|
|
96
|
+
order: z.ZodOptional<z.ZodString>;
|
|
97
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
98
|
+
missing: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
precision: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
100
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
+
query: z.ZodString;
|
|
102
|
+
label: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$loose>>>;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
export declare const ElasticBucketAggSchema: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
type: z.ZodEnum<{
|
|
108
|
+
filters: "filters";
|
|
109
|
+
terms: "terms";
|
|
110
|
+
geohash_grid: "geohash_grid";
|
|
111
|
+
date_histogram: "date_histogram";
|
|
112
|
+
histogram: "histogram";
|
|
113
|
+
}>;
|
|
114
|
+
field: z.ZodOptional<z.ZodString>;
|
|
115
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
117
|
+
min_doc_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
118
|
+
trimEdges: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
119
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
120
|
+
size: z.ZodOptional<z.ZodString>;
|
|
121
|
+
order: z.ZodOptional<z.ZodString>;
|
|
122
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
123
|
+
missing: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
precision: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
125
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
query: z.ZodString;
|
|
127
|
+
label: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$loose>>>;
|
|
129
|
+
}, z.core.$loose>>;
|
|
130
|
+
fake: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
}, z.core.$loose>;
|
|
132
|
+
export declare const ElasticTargetSchema: z.ZodObject<{
|
|
133
|
+
refId: z.ZodString;
|
|
134
|
+
datasource: z.ZodOptional<z.ZodUnknown>;
|
|
135
|
+
datasourceType: z.ZodOptional<z.ZodLiteral<"AIOps_Elasticsearch">>;
|
|
136
|
+
hide: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
primaryIndex: z.ZodOptional<z.ZodString>;
|
|
138
|
+
query: z.ZodOptional<z.ZodString>;
|
|
139
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
140
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
type: z.ZodEnum<{
|
|
143
|
+
min: "min";
|
|
144
|
+
max: "max";
|
|
145
|
+
count: "count";
|
|
146
|
+
logs: "logs";
|
|
147
|
+
avg: "avg";
|
|
148
|
+
sum: "sum";
|
|
149
|
+
avg_script: "avg_script";
|
|
150
|
+
sum_script: "sum_script";
|
|
151
|
+
min_script: "min_script";
|
|
152
|
+
max_script: "max_script";
|
|
153
|
+
extended_stats: "extended_stats";
|
|
154
|
+
percentiles: "percentiles";
|
|
155
|
+
cardinality: "cardinality";
|
|
156
|
+
raw_document: "raw_document";
|
|
157
|
+
moving_avg: "moving_avg";
|
|
158
|
+
derivative: "derivative";
|
|
159
|
+
bucket_script: "bucket_script";
|
|
160
|
+
}>;
|
|
161
|
+
field: z.ZodOptional<z.ZodString>;
|
|
162
|
+
hide: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
164
|
+
includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
script: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
167
|
+
inline: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$loose>]>>;
|
|
169
|
+
missing: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
170
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
171
|
+
logSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
172
|
+
percents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
173
|
+
sigma: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
174
|
+
precision_threshold: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
175
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$loose>>;
|
|
177
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
178
|
+
pipelineAgg: z.ZodOptional<z.ZodString>;
|
|
179
|
+
pipelineVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
pipelineAgg: z.ZodString;
|
|
182
|
+
}, z.core.$loose>>>;
|
|
183
|
+
}, z.core.$loose>>;
|
|
184
|
+
bucketAggs: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
type: z.ZodEnum<{
|
|
187
|
+
filters: "filters";
|
|
188
|
+
terms: "terms";
|
|
189
|
+
geohash_grid: "geohash_grid";
|
|
190
|
+
date_histogram: "date_histogram";
|
|
191
|
+
histogram: "histogram";
|
|
192
|
+
}>;
|
|
193
|
+
field: z.ZodOptional<z.ZodString>;
|
|
194
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
196
|
+
min_doc_count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
197
|
+
trimEdges: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
198
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
199
|
+
size: z.ZodOptional<z.ZodString>;
|
|
200
|
+
order: z.ZodOptional<z.ZodString>;
|
|
201
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
202
|
+
missing: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
+
precision: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
204
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
+
query: z.ZodString;
|
|
206
|
+
label: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$loose>>>;
|
|
208
|
+
}, z.core.$loose>>;
|
|
209
|
+
fake: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
}, z.core.$loose>>;
|
|
211
|
+
timeField: z.ZodOptional<z.ZodString>;
|
|
212
|
+
isLogsQuery: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
hasJoin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
214
|
+
secondaryIndex: z.ZodOptional<z.ZodString>;
|
|
215
|
+
primaryMapCol: z.ZodOptional<z.ZodString>;
|
|
216
|
+
secondaryMapCol: z.ZodOptional<z.ZodString>;
|
|
217
|
+
secondaryReplaceCol: z.ZodOptional<z.ZodString>;
|
|
218
|
+
additionalColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
+
queryType: z.ZodOptional<z.ZodString>;
|
|
220
|
+
format: z.ZodOptional<z.ZodString>;
|
|
221
|
+
index: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$loose>;
|
|
223
|
+
export type ElasticTarget = z.infer<typeof ElasticTargetSchema>;
|
|
224
|
+
export type ElasticMetric = z.infer<typeof ElasticMetricSchema>;
|
|
225
|
+
/** The second index a joined target is matched against, as the plugin sends it. */
|
|
226
|
+
export interface ElasticJoin {
|
|
227
|
+
index: string;
|
|
228
|
+
primaryMapCol: string;
|
|
229
|
+
secondaryMapCol: string;
|
|
230
|
+
replacePrimaryColWith: string;
|
|
231
|
+
additionalColumns: string[];
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* How a target runs. `logs` returns documents plus the aggregations; `documents` (a raw_document
|
|
235
|
+
* metric first) returns the newest documents only; `aggregation` returns the bucket/metric tree.
|
|
236
|
+
*/
|
|
237
|
+
export interface ElasticTargetQuery {
|
|
238
|
+
mode: 'logs' | 'documents' | 'aggregation';
|
|
239
|
+
/** primaryIndex; a datasource with a configured database queries that instead. */
|
|
240
|
+
index: string;
|
|
241
|
+
/** Lucene query, `*` when empty, before variable substitution. */
|
|
242
|
+
lucene: string;
|
|
243
|
+
join?: ElasticJoin;
|
|
244
|
+
}
|
|
245
|
+
export declare function elasticTargetQuery(target: ElasticTarget): ElasticTargetQuery;
|
|
246
|
+
//# sourceMappingURL=ElasticTarget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElasticTarget.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/dashboard/targets/ElasticTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,oBAAoB,6NAkBvB,CAAC;AAKX,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAID,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAYtC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;EAA8E,CAAC;AAEtH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;iBAczC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBgE,CAAC;AAEjG,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,mFAAmF;AACnF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC;IAC3C,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,kBAAkB,CAc5E"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* A panel target of the `AIOps_Metrics` datasource (plugin `aiops-nas-datasource`), as DX Dashboards
|
|
4
|
+
* persists it. Read from the plugin's served source (`types.ts`, `datasource.ts`,
|
|
5
|
+
* `utils/queryBuilder.ts`) and checked against every target on THE_LABORATORY.
|
|
6
|
+
*
|
|
7
|
+
* A target runs in one of three modes, in this order of precedence:
|
|
8
|
+
* 1. **NASSQL stage**: `nassAggregations.nassAggregationsEnabled`. `aggregationsRawQuery` is NASSQL
|
|
9
|
+
* JSON posted to `metrics/nassQuery` (the same dialect as `DataStoreNASSQLService`). Dashboard
|
|
10
|
+
* variables are substituted first; a `FROM`/`WQL` step without `queryRange` gets the dashboard time
|
|
11
|
+
* range; `WINDOW.every: "auto"` (or a variable) is resolved to a window size.
|
|
12
|
+
* 2. **Raw specifier**: `isRawQuery`. `rawQuery` is a Metrics-Metadata query specifier as JSON
|
|
13
|
+
* (`QuerySpecifierSchema`), posted to `atc/metric/queryMetric`.
|
|
14
|
+
* 3. **Builder**: filter rows (`basicFilters` when `advanceQuery === false`, else `querytFilters`)
|
|
15
|
+
* that `compileNasFilterRows` turns into that same specifier. Every builder target on the lab
|
|
16
|
+
* compiles to a valid `QuerySpecifierSchema`.
|
|
17
|
+
*
|
|
18
|
+
* Modes 2 and 3 also send `queryRange` (dashboard time range, `additionalParams.frequency`),
|
|
19
|
+
* `clampSize` and, when enabled, `aggregations`.
|
|
20
|
+
*/
|
|
21
|
+
/** One builder row; nested rows build the source / attribute / folder name specifiers. */
|
|
22
|
+
export interface NasFilterRow {
|
|
23
|
+
op: string;
|
|
24
|
+
isNot?: boolean;
|
|
25
|
+
logicalOperator?: string;
|
|
26
|
+
includeMetrics?: boolean;
|
|
27
|
+
includeFolders?: boolean;
|
|
28
|
+
sourceNameSpecifier?: NasFilterRow[];
|
|
29
|
+
attributeNameSpecifier?: NasFilterRow[];
|
|
30
|
+
folderNameSpecifier?: NasFilterRow[];
|
|
31
|
+
repeatSpecValues?: boolean;
|
|
32
|
+
templateVariableForRepeatSpec?: string;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare const NasFilterRowSchema: z.ZodType<NasFilterRow>;
|
|
36
|
+
export declare const NasAggregationsSchema: z.ZodObject<{
|
|
37
|
+
enableAggregation: z.ZodBoolean;
|
|
38
|
+
aggregationCatergory: z.ZodString;
|
|
39
|
+
aggregateBy: z.ZodString;
|
|
40
|
+
displayTimeSeries: z.ZodBoolean;
|
|
41
|
+
limit: z.ZodString;
|
|
42
|
+
order: z.ZodEnum<{
|
|
43
|
+
TOP: "TOP";
|
|
44
|
+
BOTTOM: "BOTTOM";
|
|
45
|
+
}>;
|
|
46
|
+
resultFormat: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
"Time Series": "Time Series";
|
|
48
|
+
Table: "Table";
|
|
49
|
+
}>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
|
+
export declare const NasAdditionalParamsSchema: z.ZodObject<{
|
|
52
|
+
alias: z.ZodString;
|
|
53
|
+
clampSize: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
54
|
+
frequency: z.ZodString;
|
|
55
|
+
legendMetricField: z.ZodString;
|
|
56
|
+
legendMetricCustomValues: z.ZodArray<z.ZodString>;
|
|
57
|
+
plotCategories: z.ZodArray<z.ZodString>;
|
|
58
|
+
stackOnSeriesAlias: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
export declare const NasAggregationModeValuesSchema: z.ZodObject<{
|
|
61
|
+
xaxis: z.ZodString;
|
|
62
|
+
yaxis: z.ZodArray<z.ZodString>;
|
|
63
|
+
seriesName: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$loose>;
|
|
65
|
+
export declare const NasNassqlStageSchema: z.ZodObject<{
|
|
66
|
+
nassAggregationsEnabled: z.ZodBoolean;
|
|
67
|
+
aggregationsRawQuery: z.ZodString;
|
|
68
|
+
nassAggregationMode: z.ZodEnum<{
|
|
69
|
+
"Time Series": "Time Series";
|
|
70
|
+
Table: "Table";
|
|
71
|
+
}>;
|
|
72
|
+
nassAggModeValues: z.ZodObject<{
|
|
73
|
+
xaxis: z.ZodString;
|
|
74
|
+
yaxis: z.ZodArray<z.ZodString>;
|
|
75
|
+
seriesName: z.ZodArray<z.ZodString>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
}, z.core.$loose>;
|
|
78
|
+
export declare const NasTargetSchema: z.ZodObject<{
|
|
79
|
+
refId: z.ZodString;
|
|
80
|
+
datasource: z.ZodOptional<z.ZodUnknown>;
|
|
81
|
+
datasourceType: z.ZodLiteral<"AIops_NASS">;
|
|
82
|
+
hide: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
tenantId: z.ZodString;
|
|
84
|
+
isRawQuery: z.ZodBoolean;
|
|
85
|
+
rawQuery: z.ZodString;
|
|
86
|
+
advanceQuery: z.ZodBoolean;
|
|
87
|
+
basicFilters: z.ZodArray<z.ZodType<NasFilterRow, unknown, z.core.$ZodTypeInternals<NasFilterRow, unknown>>>;
|
|
88
|
+
querytFilters: z.ZodArray<z.ZodType<NasFilterRow, unknown, z.core.$ZodTypeInternals<NasFilterRow, unknown>>>;
|
|
89
|
+
aggregations: z.ZodObject<{
|
|
90
|
+
enableAggregation: z.ZodBoolean;
|
|
91
|
+
aggregationCatergory: z.ZodString;
|
|
92
|
+
aggregateBy: z.ZodString;
|
|
93
|
+
displayTimeSeries: z.ZodBoolean;
|
|
94
|
+
limit: z.ZodString;
|
|
95
|
+
order: z.ZodEnum<{
|
|
96
|
+
TOP: "TOP";
|
|
97
|
+
BOTTOM: "BOTTOM";
|
|
98
|
+
}>;
|
|
99
|
+
resultFormat: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
"Time Series": "Time Series";
|
|
101
|
+
Table: "Table";
|
|
102
|
+
}>>;
|
|
103
|
+
}, z.core.$loose>;
|
|
104
|
+
additionalParams: z.ZodObject<{
|
|
105
|
+
alias: z.ZodString;
|
|
106
|
+
clampSize: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
107
|
+
frequency: z.ZodString;
|
|
108
|
+
legendMetricField: z.ZodString;
|
|
109
|
+
legendMetricCustomValues: z.ZodArray<z.ZodString>;
|
|
110
|
+
plotCategories: z.ZodArray<z.ZodString>;
|
|
111
|
+
stackOnSeriesAlias: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
}, z.core.$loose>;
|
|
113
|
+
nassAggregations: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
nassAggregationsEnabled: z.ZodBoolean;
|
|
115
|
+
aggregationsRawQuery: z.ZodString;
|
|
116
|
+
nassAggregationMode: z.ZodEnum<{
|
|
117
|
+
"Time Series": "Time Series";
|
|
118
|
+
Table: "Table";
|
|
119
|
+
}>;
|
|
120
|
+
nassAggModeValues: z.ZodObject<{
|
|
121
|
+
xaxis: z.ZodString;
|
|
122
|
+
yaxis: z.ZodArray<z.ZodString>;
|
|
123
|
+
seriesName: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>;
|
|
125
|
+
}, z.core.$loose>>;
|
|
126
|
+
}, z.core.$loose>;
|
|
127
|
+
export type NasTarget = z.infer<typeof NasTargetSchema>;
|
|
128
|
+
/**
|
|
129
|
+
* Compiles builder rows into the Metrics-Metadata query specifier the datasource sends: rows joined by
|
|
130
|
+
* AND, an OR row starting a new AND group, `isNot` wrapping a row in NOT, nested name-specifier rows
|
|
131
|
+
* compiled the same way. A port of the plugin's `getFiltersObject` without variable expansion
|
|
132
|
+
* (`repeatSpecValues` is dropped; variables stay as written). Returns `{}` for no rows.
|
|
133
|
+
*/
|
|
134
|
+
export declare function compileNasFilterRows(rows: NasFilterRow[]): Record<string, unknown>;
|
|
135
|
+
/** Which query a target runs, and its payload (the specifier is compiled for builder targets). */
|
|
136
|
+
export type NasTargetQuery = {
|
|
137
|
+
mode: 'nassql';
|
|
138
|
+
query: string;
|
|
139
|
+
} | {
|
|
140
|
+
mode: 'raw';
|
|
141
|
+
specifier: string;
|
|
142
|
+
} | {
|
|
143
|
+
mode: 'builder';
|
|
144
|
+
specifier: Record<string, unknown>;
|
|
145
|
+
};
|
|
146
|
+
export declare function nasTargetQuery(target: NasTarget): NasTargetQuery;
|
|
147
|
+
//# sourceMappingURL=NasTarget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NasTarget.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/dashboard/targets/NasTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;;;;;;GAkBG;AAEH,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,sBAAsB,CAAC,EAAE,YAAY,EAAE,CAAC;IACxC,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAID,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAWrD,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAQhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;iBAQpC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBuC,CAAC;AAEpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AA2CxD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQlF;AAED,kGAAkG;AAClG,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AAE5D,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAOhE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* A panel target of the `AIOps_Inventory` datasource (plugin `aiops-tas-datasource`), as DX Dashboards
|
|
4
|
+
* persists it. Read from the plugin's served source (`QueryEditor.tsx`, `datasource.ts`,
|
|
5
|
+
* `utils/queryBuilder.ts`, `utils/defaults.ts`) and checked against every target on THE_LABORATORY.
|
|
6
|
+
*
|
|
7
|
+
* A target runs in one of two modes:
|
|
8
|
+
* 1. **Raw filter**: `isRawQuery`. `rawQuery` is a TAS filter as JSON (`TasFilterSchema`).
|
|
9
|
+
* 2. **Builder**: `querytFilters` rows that `compileTasFilterRows` turns into that same TAS filter.
|
|
10
|
+
*
|
|
11
|
+
* Either way the filter is wrapped in a TAS query (`tasTargetRequest`) and posted to
|
|
12
|
+
* `tas/graph/query`, or to `tas/graph/queryHistory` when `includeTimeRange` adds the dashboard range
|
|
13
|
+
* as `startTime`/`endTime`. Several visible targets in one panel go together to `tasQuery` as
|
|
14
|
+
* `{TasQuery: [...]}`. Dashboard variables are substituted into every string first.
|
|
15
|
+
*/
|
|
16
|
+
/** One builder row; `input` holds the rows nested under it. */
|
|
17
|
+
export interface TasFilterRow {
|
|
18
|
+
op: string;
|
|
19
|
+
logicalOperator?: string;
|
|
20
|
+
input?: TasFilterRow[];
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare const TasFilterRowSchema: z.ZodType<TasFilterRow>;
|
|
24
|
+
export declare const TasAggregationsSchema: z.ZodObject<{
|
|
25
|
+
enableAggregation: z.ZodBoolean;
|
|
26
|
+
aggrationField: z.ZodString;
|
|
27
|
+
displayUndefined: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
export declare const TasTargetSchema: z.ZodObject<{
|
|
30
|
+
refId: z.ZodString;
|
|
31
|
+
datasource: z.ZodOptional<z.ZodUnknown>;
|
|
32
|
+
datasourceType: z.ZodOptional<z.ZodLiteral<"AIops_TAS">>;
|
|
33
|
+
hide: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
isRawQuery: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
rawQuery: z.ZodOptional<z.ZodString>;
|
|
37
|
+
querytFilters: z.ZodOptional<z.ZodArray<z.ZodType<TasFilterRow, unknown, z.core.$ZodTypeInternals<TasFilterRow, unknown>>>>;
|
|
38
|
+
includeVertexStatus: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
additionalColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
customPropertiesColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
+
includeTimeRange: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
44
|
+
aggregations: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
enableAggregation: z.ZodBoolean;
|
|
46
|
+
aggrationField: z.ZodString;
|
|
47
|
+
displayUndefined: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
export type TasTarget = z.infer<typeof TasTargetSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* Compiles builder rows into the TAS filter the datasource sends: rows joined by AND, an OR row
|
|
53
|
+
* starting a new AND group under one OR, each row's nested rows compiled the same way into its
|
|
54
|
+
* `input`. A port of the plugin's `getTasPayload` without variable substitution (variables stay as
|
|
55
|
+
* written). Returns `{}` for no rows, as the plugin does.
|
|
56
|
+
*/
|
|
57
|
+
export declare function compileTasFilterRows(rows: TasFilterRow[]): Record<string, unknown>;
|
|
58
|
+
/** Which filter a target runs: the raw JSON text, or the filter compiled from the builder rows. */
|
|
59
|
+
export type TasTargetQuery = {
|
|
60
|
+
mode: 'raw';
|
|
61
|
+
filter: string;
|
|
62
|
+
} | {
|
|
63
|
+
mode: 'builder';
|
|
64
|
+
filter: Record<string, unknown>;
|
|
65
|
+
};
|
|
66
|
+
export declare function tasTargetQuery(target: TasTarget): TasTargetQuery;
|
|
67
|
+
/**
|
|
68
|
+
* The TAS query the datasource posts for a target, before variable substitution and without the
|
|
69
|
+
* viewer-dependent `authorizationView` and the `startTime`/`endTime` of a history query. `limit` is
|
|
70
|
+
* not capped at the tenant's `tasDataSourceLimit` (a boot setting the target does not carry).
|
|
71
|
+
* Throws on a raw filter that is not JSON, like the plugin ("Invalid Query").
|
|
72
|
+
*/
|
|
73
|
+
export declare function tasTargetRequest(target: TasTarget): Record<string, unknown>;
|
|
74
|
+
//# sourceMappingURL=TasTarget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TasTarget.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/dashboard/targets/TasTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;GAaG;AAEH,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAID,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAIrD,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;iBAkByC,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AA4BxD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAElF;AAED,mGAAmG;AACnG,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AAEpH,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAGhE;AAKD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/audit/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,wFAKxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/audit/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,wFAKxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;iBAkC9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;kBAEU,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -13,14 +13,14 @@ declare const QueryAttributeExpressionSchema: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodOptional<z.ZodString>;
|
|
14
14
|
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
15
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
IN: "IN";
|
|
17
|
-
NOT_IN: "NOT_IN";
|
|
18
|
-
MATCHES: "MATCHES";
|
|
19
|
-
NOT_MATCHES: "NOT_MATCHES";
|
|
20
16
|
GE: "GE";
|
|
21
17
|
GT: "GT";
|
|
22
18
|
LE: "LE";
|
|
23
19
|
LT: "LT";
|
|
20
|
+
IN: "IN";
|
|
21
|
+
NOT_IN: "NOT_IN";
|
|
22
|
+
MATCHES: "MATCHES";
|
|
23
|
+
NOT_MATCHES: "NOT_MATCHES";
|
|
24
24
|
}>>;
|
|
25
25
|
comparator: z.ZodOptional<z.ZodEnum<{
|
|
26
26
|
LEXICAL: "LEXICAL";
|
|
@@ -133,11 +133,11 @@ declare const AttributeNameTypeSpecifierSchema: z.ZodObject<{
|
|
|
133
133
|
bitMask: z.ZodOptional<z.ZodNumber>;
|
|
134
134
|
bitMatch: z.ZodOptional<z.ZodNumber>;
|
|
135
135
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
EQ: "EQ";
|
|
136
137
|
GE: "GE";
|
|
137
138
|
GT: "GT";
|
|
138
139
|
LE: "LE";
|
|
139
140
|
LT: "LT";
|
|
140
|
-
EQ: "EQ";
|
|
141
141
|
NE: "NE";
|
|
142
142
|
}>>;
|
|
143
143
|
}, z.core.$loose>;
|
|
@@ -152,11 +152,11 @@ declare const AttributeNameOperatorSpecifierSchema: z.ZodObject<{
|
|
|
152
152
|
name: z.ZodOptional<z.ZodString>;
|
|
153
153
|
fullPath: z.ZodOptional<z.ZodBoolean>;
|
|
154
154
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
EQ: "EQ";
|
|
155
156
|
GE: "GE";
|
|
156
157
|
GT: "GT";
|
|
157
158
|
LE: "LE";
|
|
158
159
|
LT: "LT";
|
|
159
|
-
EQ: "EQ";
|
|
160
160
|
NE: "NE";
|
|
161
161
|
}>>;
|
|
162
162
|
}, z.core.$loose>;
|
|
@@ -180,14 +180,14 @@ declare const AttributeNameAttributeSpecifierSchema: z.ZodObject<{
|
|
|
180
180
|
name: z.ZodOptional<z.ZodString>;
|
|
181
181
|
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
182
182
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
183
|
-
IN: "IN";
|
|
184
|
-
NOT_IN: "NOT_IN";
|
|
185
|
-
MATCHES: "MATCHES";
|
|
186
|
-
NOT_MATCHES: "NOT_MATCHES";
|
|
187
183
|
GE: "GE";
|
|
188
184
|
GT: "GT";
|
|
189
185
|
LE: "LE";
|
|
190
186
|
LT: "LT";
|
|
187
|
+
IN: "IN";
|
|
188
|
+
NOT_IN: "NOT_IN";
|
|
189
|
+
MATCHES: "MATCHES";
|
|
190
|
+
NOT_MATCHES: "NOT_MATCHES";
|
|
191
191
|
}>>;
|
|
192
192
|
comparator: z.ZodOptional<z.ZodEnum<{
|
|
193
193
|
LEXICAL: "LEXICAL";
|
|
@@ -97,14 +97,14 @@ declare const QueryAttributeSpecifierSchema: z.ZodObject<{
|
|
|
97
97
|
name: z.ZodOptional<z.ZodString>;
|
|
98
98
|
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
99
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
IN: "IN";
|
|
101
|
-
NOT_IN: "NOT_IN";
|
|
102
|
-
MATCHES: "MATCHES";
|
|
103
|
-
NOT_MATCHES: "NOT_MATCHES";
|
|
104
100
|
GE: "GE";
|
|
105
101
|
GT: "GT";
|
|
106
102
|
LE: "LE";
|
|
107
103
|
LT: "LT";
|
|
104
|
+
IN: "IN";
|
|
105
|
+
NOT_IN: "NOT_IN";
|
|
106
|
+
MATCHES: "MATCHES";
|
|
107
|
+
NOT_MATCHES: "NOT_MATCHES";
|
|
108
108
|
}>>;
|
|
109
109
|
comparator: z.ZodOptional<z.ZodEnum<{
|
|
110
110
|
LEXICAL: "LEXICAL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/metrics-metadata/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,eAAO,MAAM,oBAAoB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/metrics-metadata/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,eAAO,MAAM,oBAAoB;;;;;;;;;iBAqB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAQ/D;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;iBAkDrC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { z } from 'zod/v4';
|
|
|
4
4
|
* dot-separated source-name segments numerically or lexically.
|
|
5
5
|
*/
|
|
6
6
|
declare const OperatorSchema: z.ZodEnum<{
|
|
7
|
+
EQ: "EQ";
|
|
7
8
|
GE: "GE";
|
|
8
9
|
GT: "GT";
|
|
9
10
|
LE: "LE";
|
|
10
11
|
LT: "LT";
|
|
11
|
-
EQ: "EQ";
|
|
12
12
|
NE: "NE";
|
|
13
13
|
}>;
|
|
14
14
|
/**
|
|
@@ -81,11 +81,11 @@ declare const SourceNameRegExSpecifierSchema: z.ZodObject<{
|
|
|
81
81
|
declare const SourceNamePartOperatorSpecifierSchema: z.ZodObject<{
|
|
82
82
|
op: z.ZodLiteral<"PART">;
|
|
83
83
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
EQ: "EQ";
|
|
84
85
|
GE: "GE";
|
|
85
86
|
GT: "GT";
|
|
86
87
|
LE: "LE";
|
|
87
88
|
LT: "LT";
|
|
88
|
-
EQ: "EQ";
|
|
89
89
|
NE: "NE";
|
|
90
90
|
}>>;
|
|
91
91
|
part: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/nass/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/model/datastore/nass/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,gMAqBpC,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B,8HAY8C,CAAC;AAExF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,mBAAmB,qVAE8C,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;;iBAalC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -9,11 +9,11 @@ import { z } from 'zod/v4';
|
|
|
9
9
|
* - `GE` — greater than or equal
|
|
10
10
|
*/
|
|
11
11
|
export declare const NumericOperatorSchema: z.ZodEnum<{
|
|
12
|
+
EQ: "EQ";
|
|
12
13
|
GE: "GE";
|
|
13
14
|
GT: "GT";
|
|
14
15
|
LE: "LE";
|
|
15
16
|
LT: "LT";
|
|
16
|
-
EQ: "EQ";
|
|
17
17
|
NE: "NE";
|
|
18
18
|
}>;
|
|
19
19
|
export type NumericOperator = z.infer<typeof NumericOperatorSchema>;
|
|
@@ -406,8 +406,8 @@ export declare const QueryFunctionSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
406
406
|
includeProfile: z.ZodOptional<z.ZodBoolean>;
|
|
407
407
|
flushCacheBeforeQuery: z.ZodOptional<z.ZodBoolean>;
|
|
408
408
|
projection: z.ZodOptional<z.ZodEnum<{
|
|
409
|
-
DETAILED: "DETAILED";
|
|
410
409
|
BRIEF: "BRIEF";
|
|
410
|
+
DETAILED: "DETAILED";
|
|
411
411
|
NO_TYPE: "NO_TYPE";
|
|
412
412
|
}>>;
|
|
413
413
|
projectionFilter: z.ZodOptional<z.ZodObject<{
|
|
@@ -316,8 +316,8 @@ export declare const QueryRequestSchema: z.ZodObject<{
|
|
|
316
316
|
includeProfile: z.ZodOptional<z.ZodBoolean>;
|
|
317
317
|
flushCacheBeforeQuery: z.ZodOptional<z.ZodBoolean>;
|
|
318
318
|
projection: z.ZodOptional<z.ZodEnum<{
|
|
319
|
-
DETAILED: "DETAILED";
|
|
320
319
|
BRIEF: "BRIEF";
|
|
320
|
+
DETAILED: "DETAILED";
|
|
321
321
|
NO_TYPE: "NO_TYPE";
|
|
322
322
|
}>>;
|
|
323
323
|
projectionFilter: z.ZodOptional<z.ZodObject<{
|