@databricks/sdk-dataquality 0.1.0-dev.3 → 0.1.0-dev.5

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/src/v1/model.ts DELETED
@@ -1,1041 +0,0 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
-
3
- import {FieldMask} from '@databricks/sdk-core/wkt';
4
- import type {FieldMaskSchema} from '@databricks/sdk-core/wkt';
5
- import {z} from 'zod';
6
-
7
- /** The granularity for aggregating data into time windows based on their timestamp. */
8
- export enum AggregationGranularity {
9
- AGGREGATION_GRANULARITY_UNSPECIFIED = 'AGGREGATION_GRANULARITY_UNSPECIFIED',
10
- /** 5 minutes. */
11
- AGGREGATION_GRANULARITY_5_MINUTES = 'AGGREGATION_GRANULARITY_5_MINUTES',
12
- /** 30 minutes. */
13
- AGGREGATION_GRANULARITY_30_MINUTES = 'AGGREGATION_GRANULARITY_30_MINUTES',
14
- /** 1 hour. */
15
- AGGREGATION_GRANULARITY_1_HOUR = 'AGGREGATION_GRANULARITY_1_HOUR',
16
- /** 1 day. */
17
- AGGREGATION_GRANULARITY_1_DAY = 'AGGREGATION_GRANULARITY_1_DAY',
18
- /** 1 week. */
19
- AGGREGATION_GRANULARITY_1_WEEK = 'AGGREGATION_GRANULARITY_1_WEEK',
20
- /** 2 weeks. */
21
- AGGREGATION_GRANULARITY_2_WEEKS = 'AGGREGATION_GRANULARITY_2_WEEKS',
22
- /** 3 weeks. */
23
- AGGREGATION_GRANULARITY_3_WEEKS = 'AGGREGATION_GRANULARITY_3_WEEKS',
24
- /** 4 weeks. */
25
- AGGREGATION_GRANULARITY_4_WEEKS = 'AGGREGATION_GRANULARITY_4_WEEKS',
26
- /** 1 month. */
27
- AGGREGATION_GRANULARITY_1_MONTH = 'AGGREGATION_GRANULARITY_1_MONTH',
28
- /** 1 year. */
29
- AGGREGATION_GRANULARITY_1_YEAR = 'AGGREGATION_GRANULARITY_1_YEAR',
30
- }
31
-
32
- /** The data quality monitoring workflow cron schedule pause status. */
33
- export enum CronSchedulePauseStatus {
34
- CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED = 'CRON_SCHEDULE_PAUSE_STATUS_UNSPECIFIED',
35
- /** The cron schedule is not paused. */
36
- CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED = 'CRON_SCHEDULE_PAUSE_STATUS_UNPAUSED',
37
- /** The cron schedule is paused. */
38
- CRON_SCHEDULE_PAUSE_STATUS_PAUSED = 'CRON_SCHEDULE_PAUSE_STATUS_PAUSED',
39
- }
40
-
41
- /** The custom metric type. */
42
- export enum DataProfilingCustomMetricType {
43
- DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED = 'DATA_PROFILING_CUSTOM_METRIC_TYPE_UNSPECIFIED',
44
- /** Only depend on the existing columns in the table. */
45
- DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE = 'DATA_PROFILING_CUSTOM_METRIC_TYPE_AGGREGATE',
46
- /** Only depend on previously computed aggregate metrics. */
47
- DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED = 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DERIVED',
48
- /** Depend on previously computed aggregate or derived metrics. */
49
- DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT = 'DATA_PROFILING_CUSTOM_METRIC_TYPE_DRIFT',
50
- }
51
-
52
- /** The status of the data profiling monitor. */
53
- export enum DataProfilingStatus {
54
- DATA_PROFILING_STATUS_UNSPECIFIED = 'DATA_PROFILING_STATUS_UNSPECIFIED',
55
- DATA_PROFILING_STATUS_ACTIVE = 'DATA_PROFILING_STATUS_ACTIVE',
56
- DATA_PROFILING_STATUS_PENDING = 'DATA_PROFILING_STATUS_PENDING',
57
- DATA_PROFILING_STATUS_DELETE_PENDING = 'DATA_PROFILING_STATUS_DELETE_PENDING',
58
- DATA_PROFILING_STATUS_ERROR = 'DATA_PROFILING_STATUS_ERROR',
59
- DATA_PROFILING_STATUS_FAILED = 'DATA_PROFILING_STATUS_FAILED',
60
- }
61
-
62
- /** Inference problem type the model aims to solve. */
63
- export enum InferenceProblemType {
64
- INFERENCE_PROBLEM_TYPE_UNSPECIFIED = 'INFERENCE_PROBLEM_TYPE_UNSPECIFIED',
65
- /** Classification inference problem. */
66
- INFERENCE_PROBLEM_TYPE_CLASSIFICATION = 'INFERENCE_PROBLEM_TYPE_CLASSIFICATION',
67
- /** Regression inference problem. */
68
- INFERENCE_PROBLEM_TYPE_REGRESSION = 'INFERENCE_PROBLEM_TYPE_REGRESSION',
69
- }
70
-
71
- /** The state of the refresh. */
72
- export enum RefreshState {
73
- MONITOR_REFRESH_STATE_UNKNOWN = 'MONITOR_REFRESH_STATE_UNKNOWN',
74
- /** The refresh is pending. */
75
- MONITOR_REFRESH_STATE_PENDING = 'MONITOR_REFRESH_STATE_PENDING',
76
- /** The refresh is running. */
77
- MONITOR_REFRESH_STATE_RUNNING = 'MONITOR_REFRESH_STATE_RUNNING',
78
- /** The refresh is successful. */
79
- MONITOR_REFRESH_STATE_SUCCESS = 'MONITOR_REFRESH_STATE_SUCCESS',
80
- /** The refresh has failed. */
81
- MONITOR_REFRESH_STATE_FAILED = 'MONITOR_REFRESH_STATE_FAILED',
82
- /** The refresh is cancelled. */
83
- MONITOR_REFRESH_STATE_CANCELED = 'MONITOR_REFRESH_STATE_CANCELED',
84
- }
85
-
86
- /** The trigger of the refresh. */
87
- export enum RefreshTrigger {
88
- MONITOR_REFRESH_TRIGGER_UNKNOWN = 'MONITOR_REFRESH_TRIGGER_UNKNOWN',
89
- /** The refresh has been triggered manually. */
90
- MONITOR_REFRESH_TRIGGER_MANUAL = 'MONITOR_REFRESH_TRIGGER_MANUAL',
91
- /** The refresh has been triggered from a schedule. */
92
- MONITOR_REFRESH_TRIGGER_SCHEDULE = 'MONITOR_REFRESH_TRIGGER_SCHEDULE',
93
- /** The refresh has been triggered from a data change. */
94
- MONITOR_REFRESH_TRIGGER_DATA_CHANGE = 'MONITOR_REFRESH_TRIGGER_DATA_CHANGE',
95
- }
96
-
97
- /** Anomaly Detection Configurations. */
98
- export interface AnomalyDetectionConfig {
99
- /** List of fully qualified table names to exclude from anomaly detection. */
100
- excludedTableFullNames?: string[] | undefined;
101
- }
102
-
103
- /** Request to cancel a refresh. */
104
- export interface CancelRefreshRequest {
105
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
106
- objectType?: string | undefined;
107
- /**
108
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
109
- *
110
- * Find the `schema_id` from either:
111
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
112
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
113
- *
114
- * Find the `table_id` from either:
115
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
116
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
117
- */
118
- objectId?: string | undefined;
119
- /** Unique id of the refresh operation. */
120
- refreshId?: bigint | undefined;
121
- }
122
-
123
- /** Response to cancelling a refresh. */
124
- export interface CancelRefreshResponse {
125
- /** The refresh to cancel. */
126
- refresh?: Refresh | undefined;
127
- }
128
-
129
- /** Request to create a Monitor. */
130
- export interface CreateMonitorRequest {
131
- /** The monitor to create. */
132
- monitor?: Monitor | undefined;
133
- }
134
-
135
- /** Request to create a refresh. */
136
- export interface CreateRefreshRequest {
137
- /** The refresh to create */
138
- refresh?: Refresh | undefined;
139
- }
140
-
141
- /** The data quality monitoring workflow cron schedule. */
142
- export interface CronSchedule {
143
- /** The expression that determines when to run the monitor. See [examples](https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html). */
144
- quartzCronExpression?: string | undefined;
145
- /**
146
- * A Java timezone id. The schedule for a job will be resolved with respect to this timezone.
147
- * See `Java TimeZone <http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html>`_ for details.
148
- * The timezone id (e.g., ``America/Los_Angeles``) in which to evaluate the quartz expression.
149
- */
150
- timezoneId?: string | undefined;
151
- /** Read only field that indicates whether the schedule is paused or not. */
152
- pauseStatus?: CronSchedulePauseStatus | undefined;
153
- }
154
-
155
- /** Data Profiling Configurations. */
156
- export interface DataProfilingConfig {
157
- /** ID of the schema where output tables are created. */
158
- outputSchemaId?: string | undefined;
159
- /**
160
- * Field for specifying the absolute path to a custom directory to store data-monitoring
161
- * assets. Normally prepopulated to a default user location via UI and Python APIs.
162
- */
163
- assetsDir?: string | undefined;
164
- /** (--[Create:REQ Update:REQ]--) Analysis config which is used to determine analysis logic. */
165
- analysisConfig?:
166
- | {
167
- $case: 'inferenceLog';
168
- /** `Analysis Configuration` for monitoring inference log tables. */
169
- inferenceLog: InferenceLogConfig;
170
- }
171
- | {
172
- $case: 'timeSeries';
173
- /** `Analysis Configuration` for monitoring time series tables. */
174
- timeSeries: TimeSeriesConfig;
175
- }
176
- | {
177
- $case: 'snapshot';
178
- /** `Analysis Configuration` for monitoring snapshot tables. */
179
- snapshot: SnapshotConfig;
180
- }
181
- | undefined;
182
- /**
183
- * List of column expressions to slice data with for targeted analysis. The data is grouped by
184
- * each expression independently, resulting in a separate slice for each predicate and its
185
- * complements. For example `slicing_exprs=[“col_1”, “col_2 > 10”]` will generate the following
186
- * slices: two slices for `col_2 > 10` (True and False), and one slice per unique value in
187
- * `col1`. For high-cardinality columns, only the top 100 unique values by frequency will
188
- * generate slices.
189
- */
190
- slicingExprs?: string[] | undefined;
191
- /** Custom metrics. */
192
- customMetrics?: DataProfilingCustomMetric[] | undefined;
193
- /**
194
- * Baseline table name.
195
- * Baseline data is used to compute drift from the data in the monitored `table_name`.
196
- * The baseline table and the monitored table shall have the same schema.
197
- */
198
- baselineTableName?: string | undefined;
199
- /** The cron schedule. */
200
- schedule?: CronSchedule | undefined;
201
- /** Field for specifying notification settings. */
202
- notificationSettings?: NotificationSettings | undefined;
203
- /** Whether to skip creating a default dashboard summarizing data quality metrics. */
204
- skipBuiltinDashboard?: boolean | undefined;
205
- /**
206
- * Optional argument to specify the warehouse for dashboard creation. If not specified, the first running
207
- * warehouse will be used.
208
- */
209
- warehouseId?: string | undefined;
210
- /** Unity Catalog table to monitor. Format: `catalog.schema.table_name` */
211
- monitoredTableName?: string | undefined;
212
- /** The data profiling monitor status. */
213
- status?: DataProfilingStatus | undefined;
214
- /** The latest error message for a monitor failure. */
215
- latestMonitorFailureMessage?: string | undefined;
216
- /** Table that stores profile metrics data. Format: `catalog.schema.table_name`. */
217
- profileMetricsTableName?: string | undefined;
218
- /** Table that stores drift metrics data. Format: `catalog.schema.table_name`. */
219
- driftMetricsTableName?: string | undefined;
220
- /**
221
- * Id of dashboard that visualizes the computed metrics.
222
- * This can be empty if the monitor is in PENDING state.
223
- */
224
- dashboardId?: string | undefined;
225
- /**
226
- * Represents the current monitor configuration version in use. The version will be represented in a
227
- * numeric fashion (1,2,3...). The field has flexibility to take on negative values, which can indicate corrupted
228
- * monitor_version numbers.
229
- */
230
- monitorVersion?: bigint | undefined;
231
- /** The warehouse for dashboard creation */
232
- effectiveWarehouseId?: string | undefined;
233
- }
234
-
235
- /** Custom metric definition. */
236
- export interface DataProfilingCustomMetric {
237
- /** Name of the metric in the output tables. */
238
- name?: string | undefined;
239
- /** Jinja template for a SQL expression that specifies how to compute the metric. See [create metric definition](https://docs.databricks.com/en/lakehouse-monitoring/custom-metrics.html#create-definition). */
240
- definition?: string | undefined;
241
- /**
242
- * A list of column names in the input table the metric should be computed for.
243
- * Can use ``":table"`` to indicate that the metric needs information from multiple columns.
244
- */
245
- inputColumns?: string[] | undefined;
246
- /** The output type of the custom metric. */
247
- outputDataType?: string | undefined;
248
- /** The type of the custom metric. */
249
- type?: DataProfilingCustomMetricType | undefined;
250
- }
251
-
252
- /** Request to delete a Monitor. */
253
- export interface DeleteMonitorRequest {
254
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
255
- objectType?: string | undefined;
256
- /**
257
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
258
- *
259
- * Find the `schema_id` from either:
260
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
261
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
262
- *
263
- * Find the `table_id` from either:
264
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
265
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
266
- */
267
- objectId?: string | undefined;
268
- }
269
-
270
- /** Request to delete a ronitor. */
271
- export interface DeleteRefreshRequest {
272
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
273
- objectType?: string | undefined;
274
- /**
275
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
276
- *
277
- * Find the `schema_id` from either:
278
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
279
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
280
- *
281
- * Find the `table_id` from either:
282
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
283
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
284
- */
285
- objectId?: string | undefined;
286
- /** Unique id of the refresh operation. */
287
- refreshId?: bigint | undefined;
288
- }
289
-
290
- /** Request to get a Monitor. */
291
- export interface GetMonitorRequest {
292
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
293
- objectType?: string | undefined;
294
- /**
295
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
296
- *
297
- * Find the `schema_id` from either:
298
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
299
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
300
- *
301
- * Find the `table_id` from either:
302
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
303
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
304
- */
305
- objectId?: string | undefined;
306
- }
307
-
308
- /** Request to get a refresh. */
309
- export interface GetRefreshRequest {
310
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
311
- objectType?: string | undefined;
312
- /**
313
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
314
- *
315
- * Find the `schema_id` from either:
316
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
317
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
318
- *
319
- * Find the `table_id` from either:
320
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
321
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
322
- */
323
- objectId?: string | undefined;
324
- /** Unique id of the refresh operation. */
325
- refreshId?: bigint | undefined;
326
- }
327
-
328
- /** Inference log configuration. */
329
- export interface InferenceLogConfig {
330
- /** Problem type the model aims to solve. */
331
- problemType?: InferenceProblemType | undefined;
332
- /** Column for the timestamp. */
333
- timestampColumn?: string | undefined;
334
- /** List of granularities to use when aggregating data into time windows based on their timestamp. */
335
- granularities?: AggregationGranularity[] | undefined;
336
- /** Column for the prediction. */
337
- predictionColumn?: string | undefined;
338
- /** Column for the label. */
339
- labelColumn?: string | undefined;
340
- /** Column for the model identifier. */
341
- modelIdColumn?: string | undefined;
342
- }
343
-
344
- /** Request to list Monitors. */
345
- export interface ListMonitorRequest {
346
- pageToken?: string | undefined;
347
- pageSize?: number | undefined;
348
- }
349
-
350
- /** Response for listing Monitors. */
351
- export interface ListMonitorResponse {
352
- monitors?: Monitor[] | undefined;
353
- nextPageToken?: string | undefined;
354
- }
355
-
356
- /** Request to list refreshes. */
357
- export interface ListRefreshRequest {
358
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
359
- objectType?: string | undefined;
360
- /**
361
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
362
- *
363
- * Find the `schema_id` from either:
364
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
365
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
366
- *
367
- * Find the `table_id` from either:
368
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
369
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
370
- */
371
- objectId?: string | undefined;
372
- pageToken?: string | undefined;
373
- pageSize?: number | undefined;
374
- }
375
-
376
- /** Response for listing refreshes. */
377
- export interface ListRefreshResponse {
378
- refreshes?: Refresh[] | undefined;
379
- nextPageToken?: string | undefined;
380
- }
381
-
382
- /** Monitor for the data quality of unity catalog entities such as schema or table. */
383
- export interface Monitor {
384
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
385
- objectType?: string | undefined;
386
- /**
387
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
388
- *
389
- * Find the `schema_id` from either:
390
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
391
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
392
- *
393
- * Find the `table_id` from either:
394
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
395
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
396
- */
397
- objectId?: string | undefined;
398
- /** Anomaly Detection Configuration, applicable to `schema` object types. */
399
- anomalyDetectionConfig?: AnomalyDetectionConfig | undefined;
400
- /**
401
- * Data Profiling Configuration, applicable to `table` object types. Exactly one `Analysis Configuration`
402
- * must be present.
403
- */
404
- dataProfilingConfig?: DataProfilingConfig | undefined;
405
- }
406
-
407
- /** Destination of the data quality monitoring notification. */
408
- export interface NotificationDestination {
409
- /** The list of email addresses to send the notification to. A maximum of 5 email addresses is supported. */
410
- emailAddresses?: string[] | undefined;
411
- }
412
-
413
- /** Settings for sending notifications on the data quality monitoring. */
414
- export interface NotificationSettings {
415
- /** Destinations to send notifications on failure/timeout. */
416
- onFailure?: NotificationDestination | undefined;
417
- }
418
-
419
- /** The Refresh object gives information on a refresh of the data quality monitoring pipeline. */
420
- export interface Refresh {
421
- /** The type of the monitored object. Can be one of the following: `schema`or `table`. */
422
- objectType?: string | undefined;
423
- /**
424
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
425
- *
426
- * Find the `schema_id` from either:
427
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
428
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
429
- *
430
- * Find the `table_id` from either:
431
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
432
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
433
- */
434
- objectId?: string | undefined;
435
- /** Unique id of the refresh operation. */
436
- refreshId?: bigint | undefined;
437
- /** The current state of the refresh. */
438
- state?: RefreshState | undefined;
439
- /** An optional message to give insight into the current state of the refresh (e.g. FAILURE messages). */
440
- message?: string | undefined;
441
- /** Time when the refresh started (milliseconds since 1/1/1970 UTC). */
442
- startTimeMs?: bigint | undefined;
443
- /** Time when the refresh ended (milliseconds since 1/1/1970 UTC). */
444
- endTimeMs?: bigint | undefined;
445
- /** What triggered the refresh. */
446
- trigger?: RefreshTrigger | undefined;
447
- }
448
-
449
- /** Snapshot analysis configuration. */
450
- // eslint-disable-next-line @typescript-eslint/no-empty-object-type
451
- export interface SnapshotConfig {}
452
-
453
- /** Time series analysis configuration. */
454
- export interface TimeSeriesConfig {
455
- /** Column for the timestamp. */
456
- timestampColumn?: string | undefined;
457
- /** List of granularities to use when aggregating data into time windows based on their timestamp. */
458
- granularities?: AggregationGranularity[] | undefined;
459
- }
460
-
461
- /** Request to update a Monitor. */
462
- export interface UpdateMonitorRequest {
463
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
464
- objectType?: string | undefined;
465
- /**
466
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
467
- *
468
- * Find the `schema_id` from either:
469
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
470
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
471
- *
472
- * Find the `table_id` from either:
473
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
474
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
475
- */
476
- objectId?: string | undefined;
477
- /** The monitor to update. */
478
- monitor?: Monitor | undefined;
479
- /**
480
- * The field mask to specify which fields to update as a comma-separated list.
481
- * Example value: `data_profiling_config.custom_metrics,data_profiling_config.schedule.quartz_cron_expression`
482
- */
483
- updateMask?: FieldMask<Monitor> | undefined;
484
- }
485
-
486
- /** Request to update a refresh. */
487
- export interface UpdateRefreshRequest {
488
- /** The type of the monitored object. Can be one of the following: `schema` or `table`. */
489
- objectType?: string | undefined;
490
- /**
491
- * The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
492
- *
493
- * Find the `schema_id` from either:
494
- * 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
495
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
496
- *
497
- * Find the `table_id` from either:
498
- * 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
499
- * 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field.
500
- */
501
- objectId?: string | undefined;
502
- /** Unique id of the refresh operation. */
503
- refreshId?: bigint | undefined;
504
- /** The refresh to update. */
505
- refresh?: Refresh | undefined;
506
- /** The field mask to specify which fields to update. */
507
- updateMask?: FieldMask<Refresh> | undefined;
508
- }
509
-
510
- export const unmarshalAnomalyDetectionConfigSchema: z.ZodType<AnomalyDetectionConfig> =
511
- z
512
- .object({
513
- excluded_table_full_names: z.array(z.string()).optional(),
514
- })
515
- .transform(d => ({
516
- excludedTableFullNames: d.excluded_table_full_names,
517
- }));
518
-
519
- export const unmarshalCancelRefreshResponseSchema: z.ZodType<CancelRefreshResponse> =
520
- z
521
- .object({
522
- refresh: z.lazy(() => unmarshalRefreshSchema).optional(),
523
- })
524
- .transform(d => ({
525
- refresh: d.refresh,
526
- }));
527
-
528
- export const unmarshalCronScheduleSchema: z.ZodType<CronSchedule> = z
529
- .object({
530
- quartz_cron_expression: z.string().optional(),
531
- timezone_id: z.string().optional(),
532
- pause_status: z.enum(CronSchedulePauseStatus).optional(),
533
- })
534
- .transform(d => ({
535
- quartzCronExpression: d.quartz_cron_expression,
536
- timezoneId: d.timezone_id,
537
- pauseStatus: d.pause_status,
538
- }));
539
-
540
- export const unmarshalDataProfilingConfigSchema: z.ZodType<DataProfilingConfig> =
541
- z
542
- .object({
543
- output_schema_id: z.string().optional(),
544
- assets_dir: z.string().optional(),
545
- inference_log: z.lazy(() => unmarshalInferenceLogConfigSchema).optional(),
546
- time_series: z.lazy(() => unmarshalTimeSeriesConfigSchema).optional(),
547
- snapshot: z.lazy(() => unmarshalSnapshotConfigSchema).optional(),
548
- slicing_exprs: z.array(z.string()).optional(),
549
- custom_metrics: z
550
- .array(z.lazy(() => unmarshalDataProfilingCustomMetricSchema))
551
- .optional(),
552
- baseline_table_name: z.string().optional(),
553
- schedule: z.lazy(() => unmarshalCronScheduleSchema).optional(),
554
- notification_settings: z
555
- .lazy(() => unmarshalNotificationSettingsSchema)
556
- .optional(),
557
- skip_builtin_dashboard: z.boolean().optional(),
558
- warehouse_id: z.string().optional(),
559
- monitored_table_name: z.string().optional(),
560
- status: z.enum(DataProfilingStatus).optional(),
561
- latest_monitor_failure_message: z.string().optional(),
562
- profile_metrics_table_name: z.string().optional(),
563
- drift_metrics_table_name: z.string().optional(),
564
- dashboard_id: z.string().optional(),
565
- monitor_version: z
566
- .union([z.number(), z.bigint()])
567
- .transform(v => BigInt(v))
568
- .optional(),
569
- effective_warehouse_id: z.string().optional(),
570
- })
571
- .transform(d => ({
572
- outputSchemaId: d.output_schema_id,
573
- assetsDir: d.assets_dir,
574
- analysisConfig:
575
- d.inference_log !== undefined
576
- ? {$case: 'inferenceLog' as const, inferenceLog: d.inference_log}
577
- : d.time_series !== undefined
578
- ? {$case: 'timeSeries' as const, timeSeries: d.time_series}
579
- : d.snapshot !== undefined
580
- ? {$case: 'snapshot' as const, snapshot: d.snapshot}
581
- : undefined,
582
- slicingExprs: d.slicing_exprs,
583
- customMetrics: d.custom_metrics,
584
- baselineTableName: d.baseline_table_name,
585
- schedule: d.schedule,
586
- notificationSettings: d.notification_settings,
587
- skipBuiltinDashboard: d.skip_builtin_dashboard,
588
- warehouseId: d.warehouse_id,
589
- monitoredTableName: d.monitored_table_name,
590
- status: d.status,
591
- latestMonitorFailureMessage: d.latest_monitor_failure_message,
592
- profileMetricsTableName: d.profile_metrics_table_name,
593
- driftMetricsTableName: d.drift_metrics_table_name,
594
- dashboardId: d.dashboard_id,
595
- monitorVersion: d.monitor_version,
596
- effectiveWarehouseId: d.effective_warehouse_id,
597
- }));
598
-
599
- export const unmarshalDataProfilingCustomMetricSchema: z.ZodType<DataProfilingCustomMetric> =
600
- z
601
- .object({
602
- name: z.string().optional(),
603
- definition: z.string().optional(),
604
- input_columns: z.array(z.string()).optional(),
605
- output_data_type: z.string().optional(),
606
- type: z.enum(DataProfilingCustomMetricType).optional(),
607
- })
608
- .transform(d => ({
609
- name: d.name,
610
- definition: d.definition,
611
- inputColumns: d.input_columns,
612
- outputDataType: d.output_data_type,
613
- type: d.type,
614
- }));
615
-
616
- export const unmarshalInferenceLogConfigSchema: z.ZodType<InferenceLogConfig> =
617
- z
618
- .object({
619
- problem_type: z.enum(InferenceProblemType).optional(),
620
- timestamp_column: z.string().optional(),
621
- granularities: z.array(z.enum(AggregationGranularity)).optional(),
622
- prediction_column: z.string().optional(),
623
- label_column: z.string().optional(),
624
- model_id_column: z.string().optional(),
625
- })
626
- .transform(d => ({
627
- problemType: d.problem_type,
628
- timestampColumn: d.timestamp_column,
629
- granularities: d.granularities,
630
- predictionColumn: d.prediction_column,
631
- labelColumn: d.label_column,
632
- modelIdColumn: d.model_id_column,
633
- }));
634
-
635
- export const unmarshalListMonitorResponseSchema: z.ZodType<ListMonitorResponse> =
636
- z
637
- .object({
638
- monitors: z.array(z.lazy(() => unmarshalMonitorSchema)).optional(),
639
- next_page_token: z.string().optional(),
640
- })
641
- .transform(d => ({
642
- monitors: d.monitors,
643
- nextPageToken: d.next_page_token,
644
- }));
645
-
646
- export const unmarshalListRefreshResponseSchema: z.ZodType<ListRefreshResponse> =
647
- z
648
- .object({
649
- refreshes: z.array(z.lazy(() => unmarshalRefreshSchema)).optional(),
650
- next_page_token: z.string().optional(),
651
- })
652
- .transform(d => ({
653
- refreshes: d.refreshes,
654
- nextPageToken: d.next_page_token,
655
- }));
656
-
657
- export const unmarshalMonitorSchema: z.ZodType<Monitor> = z
658
- .object({
659
- object_type: z.string().optional(),
660
- object_id: z.string().optional(),
661
- anomaly_detection_config: z
662
- .lazy(() => unmarshalAnomalyDetectionConfigSchema)
663
- .optional(),
664
- data_profiling_config: z
665
- .lazy(() => unmarshalDataProfilingConfigSchema)
666
- .optional(),
667
- })
668
- .transform(d => ({
669
- objectType: d.object_type,
670
- objectId: d.object_id,
671
- anomalyDetectionConfig: d.anomaly_detection_config,
672
- dataProfilingConfig: d.data_profiling_config,
673
- }));
674
-
675
- export const unmarshalNotificationDestinationSchema: z.ZodType<NotificationDestination> =
676
- z
677
- .object({
678
- email_addresses: z.array(z.string()).optional(),
679
- })
680
- .transform(d => ({
681
- emailAddresses: d.email_addresses,
682
- }));
683
-
684
- export const unmarshalNotificationSettingsSchema: z.ZodType<NotificationSettings> =
685
- z
686
- .object({
687
- on_failure: z
688
- .lazy(() => unmarshalNotificationDestinationSchema)
689
- .optional(),
690
- })
691
- .transform(d => ({
692
- onFailure: d.on_failure,
693
- }));
694
-
695
- export const unmarshalRefreshSchema: z.ZodType<Refresh> = z
696
- .object({
697
- object_type: z.string().optional(),
698
- object_id: z.string().optional(),
699
- refresh_id: z
700
- .union([z.number(), z.bigint()])
701
- .transform(v => BigInt(v))
702
- .optional(),
703
- state: z.enum(RefreshState).optional(),
704
- message: z.string().optional(),
705
- start_time_ms: z
706
- .union([z.number(), z.bigint()])
707
- .transform(v => BigInt(v))
708
- .optional(),
709
- end_time_ms: z
710
- .union([z.number(), z.bigint()])
711
- .transform(v => BigInt(v))
712
- .optional(),
713
- trigger: z.enum(RefreshTrigger).optional(),
714
- })
715
- .transform(d => ({
716
- objectType: d.object_type,
717
- objectId: d.object_id,
718
- refreshId: d.refresh_id,
719
- state: d.state,
720
- message: d.message,
721
- startTimeMs: d.start_time_ms,
722
- endTimeMs: d.end_time_ms,
723
- trigger: d.trigger,
724
- }));
725
-
726
- export const unmarshalSnapshotConfigSchema: z.ZodType<SnapshotConfig> =
727
- z.object({});
728
-
729
- export const unmarshalTimeSeriesConfigSchema: z.ZodType<TimeSeriesConfig> = z
730
- .object({
731
- timestamp_column: z.string().optional(),
732
- granularities: z.array(z.enum(AggregationGranularity)).optional(),
733
- })
734
- .transform(d => ({
735
- timestampColumn: d.timestamp_column,
736
- granularities: d.granularities,
737
- }));
738
-
739
- export const marshalAnomalyDetectionConfigSchema: z.ZodType = z
740
- .object({
741
- excludedTableFullNames: z.array(z.string()).optional(),
742
- })
743
- .transform(d => ({
744
- excluded_table_full_names: d.excludedTableFullNames,
745
- }));
746
-
747
- export const marshalCancelRefreshRequestSchema: z.ZodType = z
748
- .object({
749
- objectType: z.string().optional(),
750
- objectId: z.string().optional(),
751
- refreshId: z.bigint().optional(),
752
- })
753
- .transform(d => ({
754
- object_type: d.objectType,
755
- object_id: d.objectId,
756
- refresh_id: d.refreshId,
757
- }));
758
-
759
- export const marshalCronScheduleSchema: z.ZodType = z
760
- .object({
761
- quartzCronExpression: z.string().optional(),
762
- timezoneId: z.string().optional(),
763
- pauseStatus: z.enum(CronSchedulePauseStatus).optional(),
764
- })
765
- .transform(d => ({
766
- quartz_cron_expression: d.quartzCronExpression,
767
- timezone_id: d.timezoneId,
768
- pause_status: d.pauseStatus,
769
- }));
770
-
771
- export const marshalDataProfilingConfigSchema: z.ZodType = z
772
- .object({
773
- outputSchemaId: z.string().optional(),
774
- assetsDir: z.string().optional(),
775
- analysisConfig: z
776
- .discriminatedUnion('$case', [
777
- z.object({
778
- $case: z.literal('inferenceLog'),
779
- inferenceLog: z.lazy(() => marshalInferenceLogConfigSchema),
780
- }),
781
- z.object({
782
- $case: z.literal('timeSeries'),
783
- timeSeries: z.lazy(() => marshalTimeSeriesConfigSchema),
784
- }),
785
- z.object({
786
- $case: z.literal('snapshot'),
787
- snapshot: z.lazy(() => marshalSnapshotConfigSchema),
788
- }),
789
- ])
790
- .optional(),
791
- slicingExprs: z.array(z.string()).optional(),
792
- customMetrics: z
793
- .array(z.lazy(() => marshalDataProfilingCustomMetricSchema))
794
- .optional(),
795
- baselineTableName: z.string().optional(),
796
- schedule: z.lazy(() => marshalCronScheduleSchema).optional(),
797
- notificationSettings: z
798
- .lazy(() => marshalNotificationSettingsSchema)
799
- .optional(),
800
- skipBuiltinDashboard: z.boolean().optional(),
801
- warehouseId: z.string().optional(),
802
- monitoredTableName: z.string().optional(),
803
- status: z.enum(DataProfilingStatus).optional(),
804
- latestMonitorFailureMessage: z.string().optional(),
805
- profileMetricsTableName: z.string().optional(),
806
- driftMetricsTableName: z.string().optional(),
807
- dashboardId: z.string().optional(),
808
- monitorVersion: z.bigint().optional(),
809
- effectiveWarehouseId: z.string().optional(),
810
- })
811
- .transform(d => ({
812
- output_schema_id: d.outputSchemaId,
813
- assets_dir: d.assetsDir,
814
- ...(d.analysisConfig?.$case === 'inferenceLog' && {
815
- inference_log: d.analysisConfig.inferenceLog,
816
- }),
817
- ...(d.analysisConfig?.$case === 'timeSeries' && {
818
- time_series: d.analysisConfig.timeSeries,
819
- }),
820
- ...(d.analysisConfig?.$case === 'snapshot' && {
821
- snapshot: d.analysisConfig.snapshot,
822
- }),
823
- slicing_exprs: d.slicingExprs,
824
- custom_metrics: d.customMetrics,
825
- baseline_table_name: d.baselineTableName,
826
- schedule: d.schedule,
827
- notification_settings: d.notificationSettings,
828
- skip_builtin_dashboard: d.skipBuiltinDashboard,
829
- warehouse_id: d.warehouseId,
830
- monitored_table_name: d.monitoredTableName,
831
- status: d.status,
832
- latest_monitor_failure_message: d.latestMonitorFailureMessage,
833
- profile_metrics_table_name: d.profileMetricsTableName,
834
- drift_metrics_table_name: d.driftMetricsTableName,
835
- dashboard_id: d.dashboardId,
836
- monitor_version: d.monitorVersion,
837
- effective_warehouse_id: d.effectiveWarehouseId,
838
- }));
839
-
840
- export const marshalDataProfilingCustomMetricSchema: z.ZodType = z
841
- .object({
842
- name: z.string().optional(),
843
- definition: z.string().optional(),
844
- inputColumns: z.array(z.string()).optional(),
845
- outputDataType: z.string().optional(),
846
- type: z.enum(DataProfilingCustomMetricType).optional(),
847
- })
848
- .transform(d => ({
849
- name: d.name,
850
- definition: d.definition,
851
- input_columns: d.inputColumns,
852
- output_data_type: d.outputDataType,
853
- type: d.type,
854
- }));
855
-
856
- export const marshalInferenceLogConfigSchema: z.ZodType = z
857
- .object({
858
- problemType: z.enum(InferenceProblemType).optional(),
859
- timestampColumn: z.string().optional(),
860
- granularities: z.array(z.enum(AggregationGranularity)).optional(),
861
- predictionColumn: z.string().optional(),
862
- labelColumn: z.string().optional(),
863
- modelIdColumn: z.string().optional(),
864
- })
865
- .transform(d => ({
866
- problem_type: d.problemType,
867
- timestamp_column: d.timestampColumn,
868
- granularities: d.granularities,
869
- prediction_column: d.predictionColumn,
870
- label_column: d.labelColumn,
871
- model_id_column: d.modelIdColumn,
872
- }));
873
-
874
- export const marshalMonitorSchema: z.ZodType = z
875
- .object({
876
- objectType: z.string().optional(),
877
- objectId: z.string().optional(),
878
- anomalyDetectionConfig: z
879
- .lazy(() => marshalAnomalyDetectionConfigSchema)
880
- .optional(),
881
- dataProfilingConfig: z
882
- .lazy(() => marshalDataProfilingConfigSchema)
883
- .optional(),
884
- })
885
- .transform(d => ({
886
- object_type: d.objectType,
887
- object_id: d.objectId,
888
- anomaly_detection_config: d.anomalyDetectionConfig,
889
- data_profiling_config: d.dataProfilingConfig,
890
- }));
891
-
892
- export const marshalNotificationDestinationSchema: z.ZodType = z
893
- .object({
894
- emailAddresses: z.array(z.string()).optional(),
895
- })
896
- .transform(d => ({
897
- email_addresses: d.emailAddresses,
898
- }));
899
-
900
- export const marshalNotificationSettingsSchema: z.ZodType = z
901
- .object({
902
- onFailure: z.lazy(() => marshalNotificationDestinationSchema).optional(),
903
- })
904
- .transform(d => ({
905
- on_failure: d.onFailure,
906
- }));
907
-
908
- export const marshalRefreshSchema: z.ZodType = z
909
- .object({
910
- objectType: z.string().optional(),
911
- objectId: z.string().optional(),
912
- refreshId: z.bigint().optional(),
913
- state: z.enum(RefreshState).optional(),
914
- message: z.string().optional(),
915
- startTimeMs: z.bigint().optional(),
916
- endTimeMs: z.bigint().optional(),
917
- trigger: z.enum(RefreshTrigger).optional(),
918
- })
919
- .transform(d => ({
920
- object_type: d.objectType,
921
- object_id: d.objectId,
922
- refresh_id: d.refreshId,
923
- state: d.state,
924
- message: d.message,
925
- start_time_ms: d.startTimeMs,
926
- end_time_ms: d.endTimeMs,
927
- trigger: d.trigger,
928
- }));
929
-
930
- export const marshalSnapshotConfigSchema: z.ZodType = z.object({});
931
-
932
- export const marshalTimeSeriesConfigSchema: z.ZodType = z
933
- .object({
934
- timestampColumn: z.string().optional(),
935
- granularities: z.array(z.enum(AggregationGranularity)).optional(),
936
- })
937
- .transform(d => ({
938
- timestamp_column: d.timestampColumn,
939
- granularities: d.granularities,
940
- }));
941
-
942
- const anomalyDetectionConfigFieldMaskSchema: FieldMaskSchema = {
943
- excludedTableFullNames: {wire: 'excluded_table_full_names'},
944
- };
945
-
946
- const cronScheduleFieldMaskSchema: FieldMaskSchema = {
947
- pauseStatus: {wire: 'pause_status'},
948
- quartzCronExpression: {wire: 'quartz_cron_expression'},
949
- timezoneId: {wire: 'timezone_id'},
950
- };
951
-
952
- const dataProfilingConfigFieldMaskSchema: FieldMaskSchema = {
953
- assetsDir: {wire: 'assets_dir'},
954
- baselineTableName: {wire: 'baseline_table_name'},
955
- customMetrics: {wire: 'custom_metrics'},
956
- dashboardId: {wire: 'dashboard_id'},
957
- driftMetricsTableName: {wire: 'drift_metrics_table_name'},
958
- effectiveWarehouseId: {wire: 'effective_warehouse_id'},
959
- inferenceLog: {
960
- wire: 'inference_log',
961
- children: () => inferenceLogConfigFieldMaskSchema,
962
- },
963
- latestMonitorFailureMessage: {wire: 'latest_monitor_failure_message'},
964
- monitorVersion: {wire: 'monitor_version'},
965
- monitoredTableName: {wire: 'monitored_table_name'},
966
- notificationSettings: {
967
- wire: 'notification_settings',
968
- children: () => notificationSettingsFieldMaskSchema,
969
- },
970
- outputSchemaId: {wire: 'output_schema_id'},
971
- profileMetricsTableName: {wire: 'profile_metrics_table_name'},
972
- schedule: {wire: 'schedule', children: () => cronScheduleFieldMaskSchema},
973
- skipBuiltinDashboard: {wire: 'skip_builtin_dashboard'},
974
- slicingExprs: {wire: 'slicing_exprs'},
975
- snapshot: {wire: 'snapshot', children: () => snapshotConfigFieldMaskSchema},
976
- status: {wire: 'status'},
977
- timeSeries: {
978
- wire: 'time_series',
979
- children: () => timeSeriesConfigFieldMaskSchema,
980
- },
981
- warehouseId: {wire: 'warehouse_id'},
982
- };
983
-
984
- const inferenceLogConfigFieldMaskSchema: FieldMaskSchema = {
985
- granularities: {wire: 'granularities'},
986
- labelColumn: {wire: 'label_column'},
987
- modelIdColumn: {wire: 'model_id_column'},
988
- predictionColumn: {wire: 'prediction_column'},
989
- problemType: {wire: 'problem_type'},
990
- timestampColumn: {wire: 'timestamp_column'},
991
- };
992
-
993
- const monitorFieldMaskSchema: FieldMaskSchema = {
994
- anomalyDetectionConfig: {
995
- wire: 'anomaly_detection_config',
996
- children: () => anomalyDetectionConfigFieldMaskSchema,
997
- },
998
- dataProfilingConfig: {
999
- wire: 'data_profiling_config',
1000
- children: () => dataProfilingConfigFieldMaskSchema,
1001
- },
1002
- objectId: {wire: 'object_id'},
1003
- objectType: {wire: 'object_type'},
1004
- };
1005
-
1006
- export function monitorFieldMask(...paths: string[]): FieldMask<Monitor> {
1007
- return FieldMask.build<Monitor>(paths, monitorFieldMaskSchema);
1008
- }
1009
-
1010
- const notificationDestinationFieldMaskSchema: FieldMaskSchema = {
1011
- emailAddresses: {wire: 'email_addresses'},
1012
- };
1013
-
1014
- const notificationSettingsFieldMaskSchema: FieldMaskSchema = {
1015
- onFailure: {
1016
- wire: 'on_failure',
1017
- children: () => notificationDestinationFieldMaskSchema,
1018
- },
1019
- };
1020
-
1021
- const refreshFieldMaskSchema: FieldMaskSchema = {
1022
- endTimeMs: {wire: 'end_time_ms'},
1023
- message: {wire: 'message'},
1024
- objectId: {wire: 'object_id'},
1025
- objectType: {wire: 'object_type'},
1026
- refreshId: {wire: 'refresh_id'},
1027
- startTimeMs: {wire: 'start_time_ms'},
1028
- state: {wire: 'state'},
1029
- trigger: {wire: 'trigger'},
1030
- };
1031
-
1032
- export function refreshFieldMask(...paths: string[]): FieldMask<Refresh> {
1033
- return FieldMask.build<Refresh>(paths, refreshFieldMaskSchema);
1034
- }
1035
-
1036
- const snapshotConfigFieldMaskSchema: FieldMaskSchema = {};
1037
-
1038
- const timeSeriesConfigFieldMaskSchema: FieldMaskSchema = {
1039
- granularities: {wire: 'granularities'},
1040
- timestampColumn: {wire: 'timestamp_column'},
1041
- };