@databricks/sdk-dataquality 0.33.0 → 0.35.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/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +129 -125
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +370 -451
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -8
- package/dist/v1/index.js +4 -8
- package/dist/v1/model.d.ts +416 -441
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +392 -531
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js
CHANGED
|
@@ -1,578 +1,439 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { FieldMask } from "@databricks/sdk-core/wkt";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/v1/model.ts
|
|
4
5
|
/** The granularity for aggregating data into time windows based on their timestamp. */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AGGREGATION_GRANULARITY_1_WEEK: 'AGGREGATION_GRANULARITY_1_WEEK',
|
|
18
|
-
/** 2 weeks. */
|
|
19
|
-
AGGREGATION_GRANULARITY_2_WEEKS: 'AGGREGATION_GRANULARITY_2_WEEKS',
|
|
20
|
-
/** 3 weeks. */
|
|
21
|
-
AGGREGATION_GRANULARITY_3_WEEKS: 'AGGREGATION_GRANULARITY_3_WEEKS',
|
|
22
|
-
/** 4 weeks. */
|
|
23
|
-
AGGREGATION_GRANULARITY_4_WEEKS: 'AGGREGATION_GRANULARITY_4_WEEKS',
|
|
24
|
-
/** 1 month. */
|
|
25
|
-
AGGREGATION_GRANULARITY_1_MONTH: 'AGGREGATION_GRANULARITY_1_MONTH',
|
|
26
|
-
/** 1 year. */
|
|
27
|
-
AGGREGATION_GRANULARITY_1_YEAR: 'AGGREGATION_GRANULARITY_1_YEAR',
|
|
6
|
+
const AggregationGranularity = {
|
|
7
|
+
AGGREGATION_GRANULARITY_UNSPECIFIED: "AGGREGATION_GRANULARITY_UNSPECIFIED",
|
|
8
|
+
AGGREGATION_GRANULARITY_5_MINUTES: "AGGREGATION_GRANULARITY_5_MINUTES",
|
|
9
|
+
AGGREGATION_GRANULARITY_30_MINUTES: "AGGREGATION_GRANULARITY_30_MINUTES",
|
|
10
|
+
AGGREGATION_GRANULARITY_1_HOUR: "AGGREGATION_GRANULARITY_1_HOUR",
|
|
11
|
+
AGGREGATION_GRANULARITY_1_DAY: "AGGREGATION_GRANULARITY_1_DAY",
|
|
12
|
+
AGGREGATION_GRANULARITY_1_WEEK: "AGGREGATION_GRANULARITY_1_WEEK",
|
|
13
|
+
AGGREGATION_GRANULARITY_2_WEEKS: "AGGREGATION_GRANULARITY_2_WEEKS",
|
|
14
|
+
AGGREGATION_GRANULARITY_3_WEEKS: "AGGREGATION_GRANULARITY_3_WEEKS",
|
|
15
|
+
AGGREGATION_GRANULARITY_4_WEEKS: "AGGREGATION_GRANULARITY_4_WEEKS",
|
|
16
|
+
AGGREGATION_GRANULARITY_1_MONTH: "AGGREGATION_GRANULARITY_1_MONTH",
|
|
17
|
+
AGGREGATION_GRANULARITY_1_YEAR: "AGGREGATION_GRANULARITY_1_YEAR"
|
|
28
18
|
};
|
|
29
19
|
/** The data quality monitoring workflow cron schedule pause status. */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED: 'CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED',
|
|
35
|
-
/** The cron schedule is paused. */
|
|
36
|
-
CRON_SCHEDULE_PAUSE_STATUS_PAUSED: 'CRON_SCHEDULE_PAUSE_STATUS_PAUSED',
|
|
20
|
+
const CronSchedulePauseStatus = {
|
|
21
|
+
CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED: "CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED",
|
|
22
|
+
CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED: "CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED",
|
|
23
|
+
CRON_SCHEDULE_PAUSE_STATUS_PAUSED: "CRON_SCHEDULE_PAUSE_STATUS_PAUSED"
|
|
37
24
|
};
|
|
38
25
|
/** The custom metric type. */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/** Only depend on previously computed aggregate metrics. */
|
|
45
|
-
DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED',
|
|
46
|
-
/** Depend on previously computed aggregate or derived metrics. */
|
|
47
|
-
DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT: 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT',
|
|
26
|
+
const DataProfilingCustomMetricType = {
|
|
27
|
+
DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED: "DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED",
|
|
28
|
+
DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE: "DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE",
|
|
29
|
+
DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED: "DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED",
|
|
30
|
+
DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT: "DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT"
|
|
48
31
|
};
|
|
49
32
|
/** The status of the data profiling monitor. */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
DATA_PROFILING_STATUS_FAILED: 'DATA_PROFILING_STATUS_FAILED',
|
|
33
|
+
const DataProfilingStatus = {
|
|
34
|
+
DATA_PROFILING_STATUS_UNSPECIFIED: "DATA_PROFILING_STATUS_UNSPECIFIED",
|
|
35
|
+
DATA_PROFILING_STATUS_ACTIVE: "DATA_PROFILING_STATUS_ACTIVE",
|
|
36
|
+
DATA_PROFILING_STATUS_PENDING: "DATA_PROFILING_STATUS_PENDING",
|
|
37
|
+
DATA_PROFILING_STATUS_DELETE_PENDING: "DATA_PROFILING_STATUS_DELETE_PENDING",
|
|
38
|
+
DATA_PROFILING_STATUS_ERROR: "DATA_PROFILING_STATUS_ERROR",
|
|
39
|
+
DATA_PROFILING_STATUS_FAILED: "DATA_PROFILING_STATUS_FAILED"
|
|
58
40
|
};
|
|
59
41
|
/** Inference problem type the model aims to solve. */
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
INFERENCE_PROBLEM_TYPE_CLASSIFICATION: 'INFERENCE_PROBLEM_TYPE_CLASSIFICATION',
|
|
65
|
-
/** Regression inference problem. */
|
|
66
|
-
INFERENCE_PROBLEM_TYPE_REGRESSION: 'INFERENCE_PROBLEM_TYPE_REGRESSION',
|
|
42
|
+
const InferenceProblemType = {
|
|
43
|
+
INFERENCE_PROBLEM_TYPE_UNSPECIFIED: "INFERENCE_PROBLEM_TYPE_UNSPECIFIED",
|
|
44
|
+
INFERENCE_PROBLEM_TYPE_CLASSIFICATION: "INFERENCE_PROBLEM_TYPE_CLASSIFICATION",
|
|
45
|
+
INFERENCE_PROBLEM_TYPE_REGRESSION: "INFERENCE_PROBLEM_TYPE_REGRESSION"
|
|
67
46
|
};
|
|
68
47
|
/** The state of the refresh. */
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/** The refresh is successful. */
|
|
77
|
-
MONITOR_REFRESH_STATE_SUCCESS: 'MONITOR_REFRESH_STATE_SUCCESS',
|
|
78
|
-
/** The refresh has failed. */
|
|
79
|
-
MONITOR_REFRESH_STATE_FAILED: 'MONITOR_REFRESH_STATE_FAILED',
|
|
80
|
-
/** The refresh is cancelled. */
|
|
81
|
-
MONITOR_REFRESH_STATE_CANCELED: 'MONITOR_REFRESH_STATE_CANCELED',
|
|
48
|
+
const RefreshState = {
|
|
49
|
+
MONITOR_REFRESH_STATE_UNKNOWN: "MONITOR_REFRESH_STATE_UNKNOWN",
|
|
50
|
+
MONITOR_REFRESH_STATE_PENDING: "MONITOR_REFRESH_STATE_PENDING",
|
|
51
|
+
MONITOR_REFRESH_STATE_RUNNING: "MONITOR_REFRESH_STATE_RUNNING",
|
|
52
|
+
MONITOR_REFRESH_STATE_SUCCESS: "MONITOR_REFRESH_STATE_SUCCESS",
|
|
53
|
+
MONITOR_REFRESH_STATE_FAILED: "MONITOR_REFRESH_STATE_FAILED",
|
|
54
|
+
MONITOR_REFRESH_STATE_CANCELED: "MONITOR_REFRESH_STATE_CANCELED"
|
|
82
55
|
};
|
|
83
56
|
/** The trigger of the refresh. */
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/** The refresh has been triggered from a schedule. */
|
|
90
|
-
MONITOR_REFRESH_TRIGGER_SCHEDULE: 'MONITOR_REFRESH_TRIGGER_SCHEDULE',
|
|
91
|
-
/** The refresh has been triggered from a data change. */
|
|
92
|
-
MONITOR_REFRESH_TRIGGER_DATA_CHANGE: 'MONITOR_REFRESH_TRIGGER_DATA_CHANGE',
|
|
57
|
+
const RefreshTrigger = {
|
|
58
|
+
MONITOR_REFRESH_TRIGGER_UNKNOWN: "MONITOR_REFRESH_TRIGGER_UNKNOWN",
|
|
59
|
+
MONITOR_REFRESH_TRIGGER_MANUAL: "MONITOR_REFRESH_TRIGGER_MANUAL",
|
|
60
|
+
MONITOR_REFRESH_TRIGGER_SCHEDULE: "MONITOR_REFRESH_TRIGGER_SCHEDULE",
|
|
61
|
+
MONITOR_REFRESH_TRIGGER_DATA_CHANGE: "MONITOR_REFRESH_TRIGGER_DATA_CHANGE"
|
|
93
62
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
63
|
+
const unmarshalAnomalyDetectionConfigSchema = z.object({ excluded_table_full_names: z.array(z.string()).optional() }).transform((d) => ({ excludedTableFullNames: d.excluded_table_full_names }));
|
|
64
|
+
const unmarshalCancelRefreshResponseSchema = z.object({ refresh: z.lazy(() => unmarshalRefreshSchema).optional() }).transform((d) => ({ refresh: d.refresh }));
|
|
65
|
+
const unmarshalCronScheduleSchema = z.object({
|
|
66
|
+
quartz_cron_expression: z.string().optional(),
|
|
67
|
+
timezone_id: z.string().optional(),
|
|
68
|
+
pause_status: z.string().optional()
|
|
69
|
+
}).transform((d) => ({
|
|
70
|
+
quartzCronExpression: d.quartz_cron_expression,
|
|
71
|
+
timezoneId: d.timezone_id,
|
|
72
|
+
pauseStatus: d.pause_status
|
|
100
73
|
}));
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
74
|
+
const unmarshalDataProfilingConfigSchema = z.object({
|
|
75
|
+
output_schema_id: z.string().optional(),
|
|
76
|
+
assets_dir: z.string().optional(),
|
|
77
|
+
inference_log: z.lazy(() => unmarshalInferenceLogConfigSchema).optional(),
|
|
78
|
+
time_series: z.lazy(() => unmarshalTimeSeriesConfigSchema).optional(),
|
|
79
|
+
snapshot: z.lazy(() => unmarshalSnapshotConfigSchema).optional(),
|
|
80
|
+
slicing_exprs: z.array(z.string()).optional(),
|
|
81
|
+
custom_metrics: z.array(z.lazy(() => unmarshalDataProfilingCustomMetricSchema)).optional(),
|
|
82
|
+
baseline_table_name: z.string().optional(),
|
|
83
|
+
schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
|
|
84
|
+
notification_settings: z.lazy(() => unmarshalNotificationSettingsSchema).optional(),
|
|
85
|
+
skip_builtin_dashboard: z.boolean().optional(),
|
|
86
|
+
warehouse_id: z.string().optional(),
|
|
87
|
+
monitored_table_name: z.string().optional(),
|
|
88
|
+
status: z.string().optional(),
|
|
89
|
+
latest_monitor_failure_message: z.string().optional(),
|
|
90
|
+
profile_metrics_table_name: z.string().optional(),
|
|
91
|
+
drift_metrics_table_name: z.string().optional(),
|
|
92
|
+
dashboard_id: z.string().optional(),
|
|
93
|
+
monitor_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
94
|
+
effective_warehouse_id: z.string().optional()
|
|
95
|
+
}).transform((d) => ({
|
|
96
|
+
outputSchemaId: d.output_schema_id,
|
|
97
|
+
assetsDir: d.assets_dir,
|
|
98
|
+
analysisConfig: d.inference_log !== void 0 ? {
|
|
99
|
+
$case: "inferenceLog",
|
|
100
|
+
inferenceLog: d.inference_log
|
|
101
|
+
} : d.time_series !== void 0 ? {
|
|
102
|
+
$case: "timeSeries",
|
|
103
|
+
timeSeries: d.time_series
|
|
104
|
+
} : d.snapshot !== void 0 ? {
|
|
105
|
+
$case: "snapshot",
|
|
106
|
+
snapshot: d.snapshot
|
|
107
|
+
} : void 0,
|
|
108
|
+
slicingExprs: d.slicing_exprs,
|
|
109
|
+
customMetrics: d.custom_metrics,
|
|
110
|
+
baselineTableName: d.baseline_table_name,
|
|
111
|
+
schedule: d.schedule,
|
|
112
|
+
notificationSettings: d.notification_settings,
|
|
113
|
+
skipBuiltinDashboard: d.skip_builtin_dashboard,
|
|
114
|
+
warehouseId: d.warehouse_id,
|
|
115
|
+
monitoredTableName: d.monitored_table_name,
|
|
116
|
+
status: d.status,
|
|
117
|
+
latestMonitorFailureMessage: d.latest_monitor_failure_message,
|
|
118
|
+
profileMetricsTableName: d.profile_metrics_table_name,
|
|
119
|
+
driftMetricsTableName: d.drift_metrics_table_name,
|
|
120
|
+
dashboardId: d.dashboard_id,
|
|
121
|
+
monitorVersion: d.monitor_version,
|
|
122
|
+
effectiveWarehouseId: d.effective_warehouse_id
|
|
107
123
|
}));
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
const unmarshalDataProfilingCustomMetricSchema = z.object({
|
|
125
|
+
name: z.string().optional(),
|
|
126
|
+
definition: z.string().optional(),
|
|
127
|
+
input_columns: z.array(z.string()).optional(),
|
|
128
|
+
output_data_type: z.string().optional(),
|
|
129
|
+
type: z.string().optional()
|
|
130
|
+
}).transform((d) => ({
|
|
131
|
+
name: d.name,
|
|
132
|
+
definition: d.definition,
|
|
133
|
+
inputColumns: d.input_columns,
|
|
134
|
+
outputDataType: d.output_data_type,
|
|
135
|
+
type: d.type
|
|
118
136
|
}));
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.lazy(() => unmarshalNotificationSettingsSchema)
|
|
134
|
-
.optional(),
|
|
135
|
-
skip_builtin_dashboard: z.boolean().optional(),
|
|
136
|
-
warehouse_id: z.string().optional(),
|
|
137
|
-
monitored_table_name: z.string().optional(),
|
|
138
|
-
status: z.string().optional(),
|
|
139
|
-
latest_monitor_failure_message: z.string().optional(),
|
|
140
|
-
profile_metrics_table_name: z.string().optional(),
|
|
141
|
-
drift_metrics_table_name: z.string().optional(),
|
|
142
|
-
dashboard_id: z.string().optional(),
|
|
143
|
-
monitor_version: z
|
|
144
|
-
.union([z.number(), z.bigint()])
|
|
145
|
-
.transform(v => BigInt(v))
|
|
146
|
-
.optional(),
|
|
147
|
-
effective_warehouse_id: z.string().optional(),
|
|
148
|
-
})
|
|
149
|
-
.transform(d => ({
|
|
150
|
-
outputSchemaId: d.output_schema_id,
|
|
151
|
-
assetsDir: d.assets_dir,
|
|
152
|
-
analysisConfig: d.inference_log !== undefined
|
|
153
|
-
? { $case: 'inferenceLog', inferenceLog: d.inference_log }
|
|
154
|
-
: d.time_series !== undefined
|
|
155
|
-
? { $case: 'timeSeries', timeSeries: d.time_series }
|
|
156
|
-
: d.snapshot !== undefined
|
|
157
|
-
? { $case: 'snapshot', snapshot: d.snapshot }
|
|
158
|
-
: undefined,
|
|
159
|
-
slicingExprs: d.slicing_exprs,
|
|
160
|
-
customMetrics: d.custom_metrics,
|
|
161
|
-
baselineTableName: d.baseline_table_name,
|
|
162
|
-
schedule: d.schedule,
|
|
163
|
-
notificationSettings: d.notification_settings,
|
|
164
|
-
skipBuiltinDashboard: d.skip_builtin_dashboard,
|
|
165
|
-
warehouseId: d.warehouse_id,
|
|
166
|
-
monitoredTableName: d.monitored_table_name,
|
|
167
|
-
status: d.status,
|
|
168
|
-
latestMonitorFailureMessage: d.latest_monitor_failure_message,
|
|
169
|
-
profileMetricsTableName: d.profile_metrics_table_name,
|
|
170
|
-
driftMetricsTableName: d.drift_metrics_table_name,
|
|
171
|
-
dashboardId: d.dashboard_id,
|
|
172
|
-
monitorVersion: d.monitor_version,
|
|
173
|
-
effectiveWarehouseId: d.effective_warehouse_id,
|
|
137
|
+
const unmarshalInferenceLogConfigSchema = z.object({
|
|
138
|
+
problem_type: z.string().optional(),
|
|
139
|
+
timestamp_column: z.string().optional(),
|
|
140
|
+
granularities: z.array(z.string()).optional(),
|
|
141
|
+
prediction_column: z.string().optional(),
|
|
142
|
+
label_column: z.string().optional(),
|
|
143
|
+
model_id_column: z.string().optional()
|
|
144
|
+
}).transform((d) => ({
|
|
145
|
+
problemType: d.problem_type,
|
|
146
|
+
timestampColumn: d.timestamp_column,
|
|
147
|
+
granularities: d.granularities,
|
|
148
|
+
predictionColumn: d.prediction_column,
|
|
149
|
+
labelColumn: d.label_column,
|
|
150
|
+
modelIdColumn: d.model_id_column
|
|
174
151
|
}));
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
type: z.string().optional(),
|
|
182
|
-
})
|
|
183
|
-
.transform(d => ({
|
|
184
|
-
name: d.name,
|
|
185
|
-
definition: d.definition,
|
|
186
|
-
inputColumns: d.input_columns,
|
|
187
|
-
outputDataType: d.output_data_type,
|
|
188
|
-
type: d.type,
|
|
152
|
+
const unmarshalListMonitorResponseSchema = z.object({
|
|
153
|
+
monitors: z.array(z.lazy(() => unmarshalMonitorSchema)).optional(),
|
|
154
|
+
next_page_token: z.string().optional()
|
|
155
|
+
}).transform((d) => ({
|
|
156
|
+
monitors: d.monitors,
|
|
157
|
+
nextPageToken: d.next_page_token
|
|
189
158
|
}));
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
label_column: z.string().optional(),
|
|
197
|
-
model_id_column: z.string().optional(),
|
|
198
|
-
})
|
|
199
|
-
.transform(d => ({
|
|
200
|
-
problemType: d.problem_type,
|
|
201
|
-
timestampColumn: d.timestamp_column,
|
|
202
|
-
granularities: d.granularities,
|
|
203
|
-
predictionColumn: d.prediction_column,
|
|
204
|
-
labelColumn: d.label_column,
|
|
205
|
-
modelIdColumn: d.model_id_column,
|
|
159
|
+
const unmarshalListRefreshResponseSchema = z.object({
|
|
160
|
+
refreshes: z.array(z.lazy(() => unmarshalRefreshSchema)).optional(),
|
|
161
|
+
next_page_token: z.string().optional()
|
|
162
|
+
}).transform((d) => ({
|
|
163
|
+
refreshes: d.refreshes,
|
|
164
|
+
nextPageToken: d.next_page_token
|
|
206
165
|
}));
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
166
|
+
const unmarshalMonitorSchema = z.object({
|
|
167
|
+
object_type: z.string().optional(),
|
|
168
|
+
object_id: z.string().optional(),
|
|
169
|
+
anomaly_detection_config: z.lazy(() => unmarshalAnomalyDetectionConfigSchema).optional(),
|
|
170
|
+
data_profiling_config: z.lazy(() => unmarshalDataProfilingConfigSchema).optional()
|
|
171
|
+
}).transform((d) => ({
|
|
172
|
+
objectType: d.object_type,
|
|
173
|
+
objectId: d.object_id,
|
|
174
|
+
anomalyDetectionConfig: d.anomaly_detection_config,
|
|
175
|
+
dataProfilingConfig: d.data_profiling_config
|
|
215
176
|
}));
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
177
|
+
const unmarshalNotificationDestinationSchema = z.object({ email_addresses: z.array(z.string()).optional() }).transform((d) => ({ emailAddresses: d.email_addresses }));
|
|
178
|
+
const unmarshalNotificationSettingsSchema = z.object({ on_failure: z.lazy(() => unmarshalNotificationDestinationSchema).optional() }).transform((d) => ({ onFailure: d.on_failure }));
|
|
179
|
+
const unmarshalRefreshSchema = z.object({
|
|
180
|
+
object_type: z.string().optional(),
|
|
181
|
+
object_id: z.string().optional(),
|
|
182
|
+
refresh_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
183
|
+
state: z.string().optional(),
|
|
184
|
+
message: z.string().optional(),
|
|
185
|
+
start_time_ms: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
186
|
+
end_time_ms: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
187
|
+
trigger: z.string().optional()
|
|
188
|
+
}).transform((d) => ({
|
|
189
|
+
objectType: d.object_type,
|
|
190
|
+
objectId: d.object_id,
|
|
191
|
+
refreshId: d.refresh_id,
|
|
192
|
+
state: d.state,
|
|
193
|
+
message: d.message,
|
|
194
|
+
startTimeMs: d.start_time_ms,
|
|
195
|
+
endTimeMs: d.end_time_ms,
|
|
196
|
+
trigger: d.trigger
|
|
224
197
|
}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
data_profiling_config: z
|
|
233
|
-
.lazy(() => unmarshalDataProfilingConfigSchema)
|
|
234
|
-
.optional(),
|
|
235
|
-
})
|
|
236
|
-
.transform(d => ({
|
|
237
|
-
objectType: d.object_type,
|
|
238
|
-
objectId: d.object_id,
|
|
239
|
-
anomalyDetectionConfig: d.anomaly_detection_config,
|
|
240
|
-
dataProfilingConfig: d.data_profiling_config,
|
|
198
|
+
const unmarshalSnapshotConfigSchema = z.object({});
|
|
199
|
+
const unmarshalTimeSeriesConfigSchema = z.object({
|
|
200
|
+
timestamp_column: z.string().optional(),
|
|
201
|
+
granularities: z.array(z.string()).optional()
|
|
202
|
+
}).transform((d) => ({
|
|
203
|
+
timestampColumn: d.timestamp_column,
|
|
204
|
+
granularities: d.granularities
|
|
241
205
|
}));
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
206
|
+
const marshalAnomalyDetectionConfigSchema = z.object({ excludedTableFullNames: z.array(z.string()).optional() }).transform((d) => ({ excluded_table_full_names: d.excludedTableFullNames }));
|
|
207
|
+
const marshalCancelRefreshRequestSchema = z.object({
|
|
208
|
+
objectType: z.string().optional(),
|
|
209
|
+
objectId: z.string().optional(),
|
|
210
|
+
refreshId: z.bigint().optional()
|
|
211
|
+
}).transform((d) => ({
|
|
212
|
+
object_type: d.objectType,
|
|
213
|
+
object_id: d.objectId,
|
|
214
|
+
refresh_id: d.refreshId
|
|
248
215
|
}));
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
216
|
+
const marshalCronScheduleSchema = z.object({
|
|
217
|
+
quartzCronExpression: z.string().optional(),
|
|
218
|
+
timezoneId: z.string().optional(),
|
|
219
|
+
pauseStatus: z.string().optional()
|
|
220
|
+
}).transform((d) => ({
|
|
221
|
+
quartz_cron_expression: d.quartzCronExpression,
|
|
222
|
+
timezone_id: d.timezoneId,
|
|
223
|
+
pause_status: d.pauseStatus
|
|
257
224
|
}));
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
225
|
+
const marshalDataProfilingConfigSchema = z.object({
|
|
226
|
+
outputSchemaId: z.string().optional(),
|
|
227
|
+
assetsDir: z.string().optional(),
|
|
228
|
+
analysisConfig: z.discriminatedUnion("$case", [
|
|
229
|
+
z.object({
|
|
230
|
+
$case: z.literal("inferenceLog"),
|
|
231
|
+
inferenceLog: z.lazy(() => marshalInferenceLogConfigSchema)
|
|
232
|
+
}),
|
|
233
|
+
z.object({
|
|
234
|
+
$case: z.literal("timeSeries"),
|
|
235
|
+
timeSeries: z.lazy(() => marshalTimeSeriesConfigSchema)
|
|
236
|
+
}),
|
|
237
|
+
z.object({
|
|
238
|
+
$case: z.literal("snapshot"),
|
|
239
|
+
snapshot: z.lazy(() => marshalSnapshotConfigSchema)
|
|
240
|
+
})
|
|
241
|
+
]).optional(),
|
|
242
|
+
slicingExprs: z.array(z.string()).optional(),
|
|
243
|
+
customMetrics: z.array(z.lazy(() => marshalDataProfilingCustomMetricSchema)).optional(),
|
|
244
|
+
baselineTableName: z.string().optional(),
|
|
245
|
+
schedule: z.lazy(() => marshalCronScheduleSchema).optional(),
|
|
246
|
+
notificationSettings: z.lazy(() => marshalNotificationSettingsSchema).optional(),
|
|
247
|
+
skipBuiltinDashboard: z.boolean().optional(),
|
|
248
|
+
warehouseId: z.string().optional(),
|
|
249
|
+
monitoredTableName: z.string().optional(),
|
|
250
|
+
status: z.string().optional(),
|
|
251
|
+
latestMonitorFailureMessage: z.string().optional(),
|
|
252
|
+
profileMetricsTableName: z.string().optional(),
|
|
253
|
+
driftMetricsTableName: z.string().optional(),
|
|
254
|
+
dashboardId: z.string().optional(),
|
|
255
|
+
monitorVersion: z.bigint().optional(),
|
|
256
|
+
effectiveWarehouseId: z.string().optional()
|
|
257
|
+
}).transform((d) => ({
|
|
258
|
+
output_schema_id: d.outputSchemaId,
|
|
259
|
+
assets_dir: d.assetsDir,
|
|
260
|
+
...d.analysisConfig?.$case === "inferenceLog" && { inference_log: d.analysisConfig.inferenceLog },
|
|
261
|
+
...d.analysisConfig?.$case === "timeSeries" && { time_series: d.analysisConfig.timeSeries },
|
|
262
|
+
...d.analysisConfig?.$case === "snapshot" && { snapshot: d.analysisConfig.snapshot },
|
|
263
|
+
slicing_exprs: d.slicingExprs,
|
|
264
|
+
custom_metrics: d.customMetrics,
|
|
265
|
+
baseline_table_name: d.baselineTableName,
|
|
266
|
+
schedule: d.schedule,
|
|
267
|
+
notification_settings: d.notificationSettings,
|
|
268
|
+
skip_builtin_dashboard: d.skipBuiltinDashboard,
|
|
269
|
+
warehouse_id: d.warehouseId,
|
|
270
|
+
monitored_table_name: d.monitoredTableName,
|
|
271
|
+
status: d.status,
|
|
272
|
+
latest_monitor_failure_message: d.latestMonitorFailureMessage,
|
|
273
|
+
profile_metrics_table_name: d.profileMetricsTableName,
|
|
274
|
+
drift_metrics_table_name: d.driftMetricsTableName,
|
|
275
|
+
dashboard_id: d.dashboardId,
|
|
276
|
+
monitor_version: d.monitorVersion,
|
|
277
|
+
effective_warehouse_id: d.effectiveWarehouseId
|
|
287
278
|
}));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
279
|
+
const marshalDataProfilingCustomMetricSchema = z.object({
|
|
280
|
+
name: z.string().optional(),
|
|
281
|
+
definition: z.string().optional(),
|
|
282
|
+
inputColumns: z.array(z.string()).optional(),
|
|
283
|
+
outputDataType: z.string().optional(),
|
|
284
|
+
type: z.string().optional()
|
|
285
|
+
}).transform((d) => ({
|
|
286
|
+
name: d.name,
|
|
287
|
+
definition: d.definition,
|
|
288
|
+
input_columns: d.inputColumns,
|
|
289
|
+
output_data_type: d.outputDataType,
|
|
290
|
+
type: d.type
|
|
297
291
|
}));
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
292
|
+
const marshalInferenceLogConfigSchema = z.object({
|
|
293
|
+
problemType: z.string().optional(),
|
|
294
|
+
timestampColumn: z.string().optional(),
|
|
295
|
+
granularities: z.array(z.string()).optional(),
|
|
296
|
+
predictionColumn: z.string().optional(),
|
|
297
|
+
labelColumn: z.string().optional(),
|
|
298
|
+
modelIdColumn: z.string().optional()
|
|
299
|
+
}).transform((d) => ({
|
|
300
|
+
problem_type: d.problemType,
|
|
301
|
+
timestamp_column: d.timestampColumn,
|
|
302
|
+
granularities: d.granularities,
|
|
303
|
+
prediction_column: d.predictionColumn,
|
|
304
|
+
label_column: d.labelColumn,
|
|
305
|
+
model_id_column: d.modelIdColumn
|
|
304
306
|
}));
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
})
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
const marshalMonitorSchema = z.object({
|
|
308
|
+
objectType: z.string().optional(),
|
|
309
|
+
objectId: z.string().optional(),
|
|
310
|
+
anomalyDetectionConfig: z.lazy(() => marshalAnomalyDetectionConfigSchema).optional(),
|
|
311
|
+
dataProfilingConfig: z.lazy(() => marshalDataProfilingConfigSchema).optional()
|
|
312
|
+
}).transform((d) => ({
|
|
313
|
+
object_type: d.objectType,
|
|
314
|
+
object_id: d.objectId,
|
|
315
|
+
anomaly_detection_config: d.anomalyDetectionConfig,
|
|
316
|
+
data_profiling_config: d.dataProfilingConfig
|
|
315
317
|
}));
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
318
|
+
const marshalNotificationDestinationSchema = z.object({ emailAddresses: z.array(z.string()).optional() }).transform((d) => ({ email_addresses: d.emailAddresses }));
|
|
319
|
+
const marshalNotificationSettingsSchema = z.object({ onFailure: z.lazy(() => marshalNotificationDestinationSchema).optional() }).transform((d) => ({ on_failure: d.onFailure }));
|
|
320
|
+
const marshalRefreshSchema = z.object({
|
|
321
|
+
objectType: z.string().optional(),
|
|
322
|
+
objectId: z.string().optional(),
|
|
323
|
+
refreshId: z.bigint().optional(),
|
|
324
|
+
state: z.string().optional(),
|
|
325
|
+
message: z.string().optional(),
|
|
326
|
+
startTimeMs: z.bigint().optional(),
|
|
327
|
+
endTimeMs: z.bigint().optional(),
|
|
328
|
+
trigger: z.string().optional()
|
|
329
|
+
}).transform((d) => ({
|
|
330
|
+
object_type: d.objectType,
|
|
331
|
+
object_id: d.objectId,
|
|
332
|
+
refresh_id: d.refreshId,
|
|
333
|
+
state: d.state,
|
|
334
|
+
message: d.message,
|
|
335
|
+
start_time_ms: d.startTimeMs,
|
|
336
|
+
end_time_ms: d.endTimeMs,
|
|
337
|
+
trigger: d.trigger
|
|
326
338
|
}));
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
$case: z.literal('inferenceLog'),
|
|
335
|
-
inferenceLog: z.lazy(() => marshalInferenceLogConfigSchema),
|
|
336
|
-
}),
|
|
337
|
-
z.object({
|
|
338
|
-
$case: z.literal('timeSeries'),
|
|
339
|
-
timeSeries: z.lazy(() => marshalTimeSeriesConfigSchema),
|
|
340
|
-
}),
|
|
341
|
-
z.object({
|
|
342
|
-
$case: z.literal('snapshot'),
|
|
343
|
-
snapshot: z.lazy(() => marshalSnapshotConfigSchema),
|
|
344
|
-
}),
|
|
345
|
-
])
|
|
346
|
-
.optional(),
|
|
347
|
-
slicingExprs: z.array(z.string()).optional(),
|
|
348
|
-
customMetrics: z
|
|
349
|
-
.array(z.lazy(() => marshalDataProfilingCustomMetricSchema))
|
|
350
|
-
.optional(),
|
|
351
|
-
baselineTableName: z.string().optional(),
|
|
352
|
-
schedule: z.lazy(() => marshalCronScheduleSchema).optional(),
|
|
353
|
-
notificationSettings: z
|
|
354
|
-
.lazy(() => marshalNotificationSettingsSchema)
|
|
355
|
-
.optional(),
|
|
356
|
-
skipBuiltinDashboard: z.boolean().optional(),
|
|
357
|
-
warehouseId: z.string().optional(),
|
|
358
|
-
monitoredTableName: z.string().optional(),
|
|
359
|
-
status: z.string().optional(),
|
|
360
|
-
latestMonitorFailureMessage: z.string().optional(),
|
|
361
|
-
profileMetricsTableName: z.string().optional(),
|
|
362
|
-
driftMetricsTableName: z.string().optional(),
|
|
363
|
-
dashboardId: z.string().optional(),
|
|
364
|
-
monitorVersion: z.bigint().optional(),
|
|
365
|
-
effectiveWarehouseId: z.string().optional(),
|
|
366
|
-
})
|
|
367
|
-
.transform(d => ({
|
|
368
|
-
output_schema_id: d.outputSchemaId,
|
|
369
|
-
assets_dir: d.assetsDir,
|
|
370
|
-
...(d.analysisConfig?.$case === 'inferenceLog' && {
|
|
371
|
-
inference_log: d.analysisConfig.inferenceLog,
|
|
372
|
-
}),
|
|
373
|
-
...(d.analysisConfig?.$case === 'timeSeries' && {
|
|
374
|
-
time_series: d.analysisConfig.timeSeries,
|
|
375
|
-
}),
|
|
376
|
-
...(d.analysisConfig?.$case === 'snapshot' && {
|
|
377
|
-
snapshot: d.analysisConfig.snapshot,
|
|
378
|
-
}),
|
|
379
|
-
slicing_exprs: d.slicingExprs,
|
|
380
|
-
custom_metrics: d.customMetrics,
|
|
381
|
-
baseline_table_name: d.baselineTableName,
|
|
382
|
-
schedule: d.schedule,
|
|
383
|
-
notification_settings: d.notificationSettings,
|
|
384
|
-
skip_builtin_dashboard: d.skipBuiltinDashboard,
|
|
385
|
-
warehouse_id: d.warehouseId,
|
|
386
|
-
monitored_table_name: d.monitoredTableName,
|
|
387
|
-
status: d.status,
|
|
388
|
-
latest_monitor_failure_message: d.latestMonitorFailureMessage,
|
|
389
|
-
profile_metrics_table_name: d.profileMetricsTableName,
|
|
390
|
-
drift_metrics_table_name: d.driftMetricsTableName,
|
|
391
|
-
dashboard_id: d.dashboardId,
|
|
392
|
-
monitor_version: d.monitorVersion,
|
|
393
|
-
effective_warehouse_id: d.effectiveWarehouseId,
|
|
339
|
+
const marshalSnapshotConfigSchema = z.object({});
|
|
340
|
+
const marshalTimeSeriesConfigSchema = z.object({
|
|
341
|
+
timestampColumn: z.string().optional(),
|
|
342
|
+
granularities: z.array(z.string()).optional()
|
|
343
|
+
}).transform((d) => ({
|
|
344
|
+
timestamp_column: d.timestampColumn,
|
|
345
|
+
granularities: d.granularities
|
|
394
346
|
}));
|
|
395
|
-
|
|
396
|
-
.object({
|
|
397
|
-
name: z.string().optional(),
|
|
398
|
-
definition: z.string().optional(),
|
|
399
|
-
inputColumns: z.array(z.string()).optional(),
|
|
400
|
-
outputDataType: z.string().optional(),
|
|
401
|
-
type: z.string().optional(),
|
|
402
|
-
})
|
|
403
|
-
.transform(d => ({
|
|
404
|
-
name: d.name,
|
|
405
|
-
definition: d.definition,
|
|
406
|
-
input_columns: d.inputColumns,
|
|
407
|
-
output_data_type: d.outputDataType,
|
|
408
|
-
type: d.type,
|
|
409
|
-
}));
|
|
410
|
-
export const marshalInferenceLogConfigSchema = z
|
|
411
|
-
.object({
|
|
412
|
-
problemType: z.string().optional(),
|
|
413
|
-
timestampColumn: z.string().optional(),
|
|
414
|
-
granularities: z.array(z.string()).optional(),
|
|
415
|
-
predictionColumn: z.string().optional(),
|
|
416
|
-
labelColumn: z.string().optional(),
|
|
417
|
-
modelIdColumn: z.string().optional(),
|
|
418
|
-
})
|
|
419
|
-
.transform(d => ({
|
|
420
|
-
problem_type: d.problemType,
|
|
421
|
-
timestamp_column: d.timestampColumn,
|
|
422
|
-
granularities: d.granularities,
|
|
423
|
-
prediction_column: d.predictionColumn,
|
|
424
|
-
label_column: d.labelColumn,
|
|
425
|
-
model_id_column: d.modelIdColumn,
|
|
426
|
-
}));
|
|
427
|
-
export const marshalMonitorSchema = z
|
|
428
|
-
.object({
|
|
429
|
-
objectType: z.string().optional(),
|
|
430
|
-
objectId: z.string().optional(),
|
|
431
|
-
anomalyDetectionConfig: z
|
|
432
|
-
.lazy(() => marshalAnomalyDetectionConfigSchema)
|
|
433
|
-
.optional(),
|
|
434
|
-
dataProfilingConfig: z
|
|
435
|
-
.lazy(() => marshalDataProfilingConfigSchema)
|
|
436
|
-
.optional(),
|
|
437
|
-
})
|
|
438
|
-
.transform(d => ({
|
|
439
|
-
object_type: d.objectType,
|
|
440
|
-
object_id: d.objectId,
|
|
441
|
-
anomaly_detection_config: d.anomalyDetectionConfig,
|
|
442
|
-
data_profiling_config: d.dataProfilingConfig,
|
|
443
|
-
}));
|
|
444
|
-
export const marshalNotificationDestinationSchema = z
|
|
445
|
-
.object({
|
|
446
|
-
emailAddresses: z.array(z.string()).optional(),
|
|
447
|
-
})
|
|
448
|
-
.transform(d => ({
|
|
449
|
-
email_addresses: d.emailAddresses,
|
|
450
|
-
}));
|
|
451
|
-
export const marshalNotificationSettingsSchema = z
|
|
452
|
-
.object({
|
|
453
|
-
onFailure: z.lazy(() => marshalNotificationDestinationSchema).optional(),
|
|
454
|
-
})
|
|
455
|
-
.transform(d => ({
|
|
456
|
-
on_failure: d.onFailure,
|
|
457
|
-
}));
|
|
458
|
-
export const marshalRefreshSchema = z
|
|
459
|
-
.object({
|
|
460
|
-
objectType: z.string().optional(),
|
|
461
|
-
objectId: z.string().optional(),
|
|
462
|
-
refreshId: z.bigint().optional(),
|
|
463
|
-
state: z.string().optional(),
|
|
464
|
-
message: z.string().optional(),
|
|
465
|
-
startTimeMs: z.bigint().optional(),
|
|
466
|
-
endTimeMs: z.bigint().optional(),
|
|
467
|
-
trigger: z.string().optional(),
|
|
468
|
-
})
|
|
469
|
-
.transform(d => ({
|
|
470
|
-
object_type: d.objectType,
|
|
471
|
-
object_id: d.objectId,
|
|
472
|
-
refresh_id: d.refreshId,
|
|
473
|
-
state: d.state,
|
|
474
|
-
message: d.message,
|
|
475
|
-
start_time_ms: d.startTimeMs,
|
|
476
|
-
end_time_ms: d.endTimeMs,
|
|
477
|
-
trigger: d.trigger,
|
|
478
|
-
}));
|
|
479
|
-
export const marshalSnapshotConfigSchema = z.object({});
|
|
480
|
-
export const marshalTimeSeriesConfigSchema = z
|
|
481
|
-
.object({
|
|
482
|
-
timestampColumn: z.string().optional(),
|
|
483
|
-
granularities: z.array(z.string()).optional(),
|
|
484
|
-
})
|
|
485
|
-
.transform(d => ({
|
|
486
|
-
timestamp_column: d.timestampColumn,
|
|
487
|
-
granularities: d.granularities,
|
|
488
|
-
}));
|
|
489
|
-
const anomalyDetectionConfigFieldMaskSchema = {
|
|
490
|
-
excludedTableFullNames: { wire: 'excluded_table_full_names' },
|
|
491
|
-
};
|
|
347
|
+
const anomalyDetectionConfigFieldMaskSchema = { excludedTableFullNames: { wire: "excluded_table_full_names" } };
|
|
492
348
|
const cronScheduleFieldMaskSchema = {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
349
|
+
pauseStatus: { wire: "pause_status" },
|
|
350
|
+
quartzCronExpression: { wire: "quartz_cron_expression" },
|
|
351
|
+
timezoneId: { wire: "timezone_id" }
|
|
496
352
|
};
|
|
497
353
|
const dataProfilingConfigFieldMaskSchema = {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
354
|
+
assetsDir: { wire: "assets_dir" },
|
|
355
|
+
baselineTableName: { wire: "baseline_table_name" },
|
|
356
|
+
customMetrics: { wire: "custom_metrics" },
|
|
357
|
+
dashboardId: { wire: "dashboard_id" },
|
|
358
|
+
driftMetricsTableName: { wire: "drift_metrics_table_name" },
|
|
359
|
+
effectiveWarehouseId: { wire: "effective_warehouse_id" },
|
|
360
|
+
inferenceLog: {
|
|
361
|
+
wire: "inference_log",
|
|
362
|
+
children: () => inferenceLogConfigFieldMaskSchema
|
|
363
|
+
},
|
|
364
|
+
latestMonitorFailureMessage: { wire: "latest_monitor_failure_message" },
|
|
365
|
+
monitorVersion: { wire: "monitor_version" },
|
|
366
|
+
monitoredTableName: { wire: "monitored_table_name" },
|
|
367
|
+
notificationSettings: {
|
|
368
|
+
wire: "notification_settings",
|
|
369
|
+
children: () => notificationSettingsFieldMaskSchema
|
|
370
|
+
},
|
|
371
|
+
outputSchemaId: { wire: "output_schema_id" },
|
|
372
|
+
profileMetricsTableName: { wire: "profile_metrics_table_name" },
|
|
373
|
+
schedule: {
|
|
374
|
+
wire: "schedule",
|
|
375
|
+
children: () => cronScheduleFieldMaskSchema
|
|
376
|
+
},
|
|
377
|
+
skipBuiltinDashboard: { wire: "skip_builtin_dashboard" },
|
|
378
|
+
slicingExprs: { wire: "slicing_exprs" },
|
|
379
|
+
snapshot: {
|
|
380
|
+
wire: "snapshot",
|
|
381
|
+
children: () => snapshotConfigFieldMaskSchema
|
|
382
|
+
},
|
|
383
|
+
status: { wire: "status" },
|
|
384
|
+
timeSeries: {
|
|
385
|
+
wire: "time_series",
|
|
386
|
+
children: () => timeSeriesConfigFieldMaskSchema
|
|
387
|
+
},
|
|
388
|
+
warehouseId: { wire: "warehouse_id" }
|
|
527
389
|
};
|
|
528
390
|
const inferenceLogConfigFieldMaskSchema = {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
391
|
+
granularities: { wire: "granularities" },
|
|
392
|
+
labelColumn: { wire: "label_column" },
|
|
393
|
+
modelIdColumn: { wire: "model_id_column" },
|
|
394
|
+
predictionColumn: { wire: "prediction_column" },
|
|
395
|
+
problemType: { wire: "problem_type" },
|
|
396
|
+
timestampColumn: { wire: "timestamp_column" }
|
|
535
397
|
};
|
|
536
398
|
const monitorFieldMaskSchema = {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
399
|
+
anomalyDetectionConfig: {
|
|
400
|
+
wire: "anomaly_detection_config",
|
|
401
|
+
children: () => anomalyDetectionConfigFieldMaskSchema
|
|
402
|
+
},
|
|
403
|
+
dataProfilingConfig: {
|
|
404
|
+
wire: "data_profiling_config",
|
|
405
|
+
children: () => dataProfilingConfigFieldMaskSchema
|
|
406
|
+
},
|
|
407
|
+
objectId: { wire: "object_id" },
|
|
408
|
+
objectType: { wire: "object_type" }
|
|
547
409
|
};
|
|
548
|
-
|
|
549
|
-
|
|
410
|
+
function monitorFieldMask(...paths) {
|
|
411
|
+
return FieldMask.build(paths, monitorFieldMaskSchema);
|
|
550
412
|
}
|
|
551
|
-
const notificationDestinationFieldMaskSchema = {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
wire: 'on_failure',
|
|
557
|
-
children: () => notificationDestinationFieldMaskSchema,
|
|
558
|
-
},
|
|
559
|
-
};
|
|
413
|
+
const notificationDestinationFieldMaskSchema = { emailAddresses: { wire: "email_addresses" } };
|
|
414
|
+
const notificationSettingsFieldMaskSchema = { onFailure: {
|
|
415
|
+
wire: "on_failure",
|
|
416
|
+
children: () => notificationDestinationFieldMaskSchema
|
|
417
|
+
} };
|
|
560
418
|
const refreshFieldMaskSchema = {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
419
|
+
endTimeMs: { wire: "end_time_ms" },
|
|
420
|
+
message: { wire: "message" },
|
|
421
|
+
objectId: { wire: "object_id" },
|
|
422
|
+
objectType: { wire: "object_type" },
|
|
423
|
+
refreshId: { wire: "refresh_id" },
|
|
424
|
+
startTimeMs: { wire: "start_time_ms" },
|
|
425
|
+
state: { wire: "state" },
|
|
426
|
+
trigger: { wire: "trigger" }
|
|
569
427
|
};
|
|
570
|
-
|
|
571
|
-
|
|
428
|
+
function refreshFieldMask(...paths) {
|
|
429
|
+
return FieldMask.build(paths, refreshFieldMaskSchema);
|
|
572
430
|
}
|
|
573
431
|
const snapshotConfigFieldMaskSchema = {};
|
|
574
432
|
const timeSeriesConfigFieldMaskSchema = {
|
|
575
|
-
|
|
576
|
-
|
|
433
|
+
granularities: { wire: "granularities" },
|
|
434
|
+
timestampColumn: { wire: "timestamp_column" }
|
|
577
435
|
};
|
|
436
|
+
|
|
437
|
+
//#endregion
|
|
438
|
+
export { AggregationGranularity, CronSchedulePauseStatus, DataProfilingCustomMetricType, DataProfilingStatus, InferenceProblemType, RefreshState, RefreshTrigger, marshalAnomalyDetectionConfigSchema, marshalCancelRefreshRequestSchema, marshalCronScheduleSchema, marshalDataProfilingConfigSchema, marshalDataProfilingCustomMetricSchema, marshalInferenceLogConfigSchema, marshalMonitorSchema, marshalNotificationDestinationSchema, marshalNotificationSettingsSchema, marshalRefreshSchema, marshalSnapshotConfigSchema, marshalTimeSeriesConfigSchema, monitorFieldMask, refreshFieldMask, unmarshalAnomalyDetectionConfigSchema, unmarshalCancelRefreshResponseSchema, unmarshalCronScheduleSchema, unmarshalDataProfilingConfigSchema, unmarshalDataProfilingCustomMetricSchema, unmarshalInferenceLogConfigSchema, unmarshalListMonitorResponseSchema, unmarshalListRefreshResponseSchema, unmarshalMonitorSchema, unmarshalNotificationDestinationSchema, unmarshalNotificationSettingsSchema, unmarshalRefreshSchema, unmarshalSnapshotConfigSchema, unmarshalTimeSeriesConfigSchema };
|
|
578
439
|
//# sourceMappingURL=model.js.map
|