openlayer 0.4.1 → 0.5.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/internal/transport/base_client.rb +7 -1
  5. data/lib/openlayer/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/openlayer/internal/util.rb +3 -2
  7. data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +507 -1
  8. data/lib/openlayer/models/inference_pipeline_update_response.rb +507 -1
  9. data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +609 -1
  10. data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +507 -1
  11. data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +507 -1
  12. data/lib/openlayer/models/projects/test_create_params.rb +49 -1
  13. data/lib/openlayer/models/projects/test_create_response.rb +49 -1
  14. data/lib/openlayer/models/projects/test_list_response.rb +49 -1
  15. data/lib/openlayer/resources/projects/inference_pipelines.rb +3 -1
  16. data/lib/openlayer/resources/projects/tests.rb +9 -1
  17. data/lib/openlayer/version.rb +1 -1
  18. data/lib/openlayer.rb +2 -0
  19. data/manifest.yaml +2 -0
  20. data/rbi/openlayer/internal/transport/base_client.rbi +5 -0
  21. data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +6 -2
  22. data/rbi/openlayer/internal/type/base_model.rbi +8 -4
  23. data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +948 -0
  24. data/rbi/openlayer/models/inference_pipeline_update_response.rbi +948 -0
  25. data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +1095 -0
  26. data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +952 -0
  27. data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +952 -0
  28. data/rbi/openlayer/models/projects/test_create_params.rbi +40 -0
  29. data/rbi/openlayer/models/projects/test_create_response.rbi +40 -0
  30. data/rbi/openlayer/models/projects/test_list_response.rbi +40 -0
  31. data/rbi/openlayer/resources/projects/inference_pipelines.rbi +12 -0
  32. data/rbi/openlayer/resources/projects/tests.rbi +16 -0
  33. data/sig/openlayer/internal/transport/base_client.rbs +2 -0
  34. data/sig/openlayer/internal/transport/pooled_net_requester.rbs +4 -1
  35. data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +473 -0
  36. data/sig/openlayer/models/inference_pipeline_update_response.rbs +473 -0
  37. data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +493 -0
  38. data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +473 -0
  39. data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +473 -0
  40. data/sig/openlayer/models/projects/test_create_params.rbs +20 -0
  41. data/sig/openlayer/models/projects/test_create_response.rbs +20 -0
  42. data/sig/openlayer/models/projects/test_list_response.rbs +20 -0
  43. data/sig/openlayer/resources/projects/inference_pipelines.rbs +1 -0
  44. data/sig/openlayer/resources/projects/tests.rbs +4 -0
  45. metadata +2 -2
@@ -27,6 +27,14 @@ module Openlayer
27
27
  # @return [String]
28
28
  required :name, String
29
29
 
30
+ # @!attribute data_backend
31
+ #
32
+ # @return [Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5, nil]
33
+ optional :data_backend,
34
+ union: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend },
35
+ api_name: :dataBackend,
36
+ nil?: true
37
+
30
38
  # @!attribute project
31
39
  #
32
40
  # @return [Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project, nil]
@@ -119,6 +127,18 @@ module Openlayer
119
127
  # @return [Integer]
120
128
  required :total_goal_count, Integer, api_name: :totalGoalCount
121
129
 
130
+ # @!attribute date_last_polled
131
+ # The last time the data was polled.
132
+ #
133
+ # @return [Time, nil]
134
+ optional :date_last_polled, Time, api_name: :dateLastPolled, nil?: true
135
+
136
+ # @!attribute total_records_count
137
+ # The total number of records in the data backend.
138
+ #
139
+ # @return [Integer, nil]
140
+ optional :total_records_count, Integer, api_name: :totalRecordsCount, nil?: true
141
+
122
142
  # @!attribute workspace_id
123
143
  # The workspace id.
124
144
  #
@@ -126,7 +146,7 @@ module Openlayer
126
146
  optional :workspace_id, String, api_name: :workspaceId
127
147
  end
128
148
 
129
- # @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, project: nil, workspace: nil, workspace_id: nil)
149
+ # @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, data_backend: nil, date_last_polled: nil, project: nil, total_records_count: nil, workspace: nil, workspace_id: nil)
130
150
  # @param id [String] The inference pipeline id.
131
151
  #
132
152
  # @param date_created [Time] The creation date.
@@ -157,8 +177,14 @@ module Openlayer
157
177
  #
158
178
  # @param total_goal_count [Integer] The total number of tests.
159
179
  #
180
+ # @param data_backend [Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5, nil]
181
+ #
182
+ # @param date_last_polled [Time, nil] The last time the data was polled.
183
+ #
160
184
  # @param project [Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project, nil]
161
185
  #
186
+ # @param total_records_count [Integer, nil] The total number of records in the data backend.
187
+ #
162
188
  # @param workspace [Openlayer::Models::Projects::InferencePipelineListResponse::Item::Workspace, nil]
163
189
  #
164
190
  # @param workspace_id [String] The workspace id.
@@ -191,6 +217,486 @@ module Openlayer
191
217
  # @return [Array<Symbol>]
192
218
  end
193
219
 
220
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item#data_backend
221
+ module DataBackend
222
+ extend Openlayer::Internal::Type::Union
223
+
224
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0 }
225
+
226
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType }
227
+
228
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2 }
229
+
230
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3 }
231
+
232
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4 }
233
+
234
+ variant -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5 }
235
+
236
+ class UnionMember0 < Openlayer::Internal::Type::BaseModel
237
+ # @!attribute backend_type
238
+ #
239
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::BackendType]
240
+ required :backend_type,
241
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::BackendType },
242
+ api_name: :backendType
243
+
244
+ # @!attribute bigquery_connection_id
245
+ #
246
+ # @return [String, nil]
247
+ required :bigquery_connection_id, String, api_name: :bigqueryConnectionId, nil?: true
248
+
249
+ # @!attribute dataset_id
250
+ #
251
+ # @return [String]
252
+ required :dataset_id, String, api_name: :datasetId
253
+
254
+ # @!attribute project_id
255
+ #
256
+ # @return [String]
257
+ required :project_id, String, api_name: :projectId
258
+
259
+ # @!attribute table_id
260
+ #
261
+ # @return [String, nil]
262
+ required :table_id, String, api_name: :tableId, nil?: true
263
+
264
+ # @!attribute partition_type
265
+ #
266
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::PartitionType, nil]
267
+ optional :partition_type,
268
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::PartitionType },
269
+ api_name: :partitionType,
270
+ nil?: true
271
+
272
+ # @!method initialize(backend_type:, bigquery_connection_id:, dataset_id:, project_id:, table_id:, partition_type: nil)
273
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::BackendType]
274
+ # @param bigquery_connection_id [String, nil]
275
+ # @param dataset_id [String]
276
+ # @param project_id [String]
277
+ # @param table_id [String, nil]
278
+ # @param partition_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::PartitionType, nil]
279
+
280
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0#backend_type
281
+ module BackendType
282
+ extend Openlayer::Internal::Type::Enum
283
+
284
+ BIGQUERY = :bigquery
285
+
286
+ # @!method self.values
287
+ # @return [Array<Symbol>]
288
+ end
289
+
290
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0#config
291
+ class Config < Openlayer::Internal::Type::BaseModel
292
+ # @!attribute ground_truth_column_name
293
+ # Name of the column with the ground truths.
294
+ #
295
+ # @return [String, nil]
296
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
297
+
298
+ # @!attribute human_feedback_column_name
299
+ # Name of the column with human feedback.
300
+ #
301
+ # @return [String, nil]
302
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
303
+
304
+ # @!attribute latency_column_name
305
+ # Name of the column with the latencies.
306
+ #
307
+ # @return [String, nil]
308
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
309
+
310
+ # @!attribute timestamp_column_name
311
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
312
+ # If not provided, the upload timestamp is used.
313
+ #
314
+ # @return [String, nil]
315
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
316
+
317
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
318
+ # Some parameter documentations has been truncated, see
319
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0::Config}
320
+ # for more details.
321
+ #
322
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
323
+ #
324
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
325
+ #
326
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
327
+ #
328
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
329
+ end
330
+
331
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0#partition_type
332
+ module PartitionType
333
+ extend Openlayer::Internal::Type::Enum
334
+
335
+ DAY = :DAY
336
+ MONTH = :MONTH
337
+ YEAR = :YEAR
338
+
339
+ # @!method self.values
340
+ # @return [Array<Symbol>]
341
+ end
342
+ end
343
+
344
+ class BackendType < Openlayer::Internal::Type::BaseModel
345
+ # @!attribute backend_type
346
+ #
347
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType::BackendType]
348
+ required :backend_type,
349
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType::BackendType },
350
+ api_name: :backendType
351
+
352
+ # @!method initialize(backend_type:)
353
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType::BackendType]
354
+
355
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType#backend_type
356
+ module BackendType
357
+ extend Openlayer::Internal::Type::Enum
358
+
359
+ DEFAULT = :default
360
+
361
+ # @!method self.values
362
+ # @return [Array<Symbol>]
363
+ end
364
+ end
365
+
366
+ class UnionMember2 < Openlayer::Internal::Type::BaseModel
367
+ # @!attribute backend_type
368
+ #
369
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2::BackendType]
370
+ required :backend_type,
371
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2::BackendType },
372
+ api_name: :backendType
373
+
374
+ # @!attribute database
375
+ #
376
+ # @return [String]
377
+ required :database, String
378
+
379
+ # @!attribute schema
380
+ #
381
+ # @return [String]
382
+ required :schema, String
383
+
384
+ # @!attribute snowflake_connection_id
385
+ #
386
+ # @return [String, nil]
387
+ required :snowflake_connection_id, String, api_name: :snowflakeConnectionId, nil?: true
388
+
389
+ # @!attribute table
390
+ #
391
+ # @return [String, nil]
392
+ required :table, String, nil?: true
393
+
394
+ # @!method initialize(backend_type:, database:, schema:, snowflake_connection_id:, table:)
395
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2::BackendType]
396
+ # @param database [String]
397
+ # @param schema [String]
398
+ # @param snowflake_connection_id [String, nil]
399
+ # @param table [String, nil]
400
+
401
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2#backend_type
402
+ module BackendType
403
+ extend Openlayer::Internal::Type::Enum
404
+
405
+ SNOWFLAKE = :snowflake
406
+
407
+ # @!method self.values
408
+ # @return [Array<Symbol>]
409
+ end
410
+
411
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2#config
412
+ class Config < Openlayer::Internal::Type::BaseModel
413
+ # @!attribute ground_truth_column_name
414
+ # Name of the column with the ground truths.
415
+ #
416
+ # @return [String, nil]
417
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
418
+
419
+ # @!attribute human_feedback_column_name
420
+ # Name of the column with human feedback.
421
+ #
422
+ # @return [String, nil]
423
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
424
+
425
+ # @!attribute latency_column_name
426
+ # Name of the column with the latencies.
427
+ #
428
+ # @return [String, nil]
429
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
430
+
431
+ # @!attribute timestamp_column_name
432
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
433
+ # If not provided, the upload timestamp is used.
434
+ #
435
+ # @return [String, nil]
436
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
437
+
438
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
439
+ # Some parameter documentations has been truncated, see
440
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2::Config}
441
+ # for more details.
442
+ #
443
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
444
+ #
445
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
446
+ #
447
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
448
+ #
449
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
450
+ end
451
+ end
452
+
453
+ class UnionMember3 < Openlayer::Internal::Type::BaseModel
454
+ # @!attribute backend_type
455
+ #
456
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3::BackendType]
457
+ required :backend_type,
458
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3::BackendType },
459
+ api_name: :backendType
460
+
461
+ # @!attribute databricks_dtl_connection_id
462
+ #
463
+ # @return [String, nil]
464
+ required :databricks_dtl_connection_id, String, api_name: :databricksDtlConnectionId, nil?: true
465
+
466
+ # @!attribute table_id
467
+ #
468
+ # @return [String, nil]
469
+ required :table_id, String, api_name: :tableId, nil?: true
470
+
471
+ # @!method initialize(backend_type:, databricks_dtl_connection_id:, table_id:)
472
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3::BackendType]
473
+ # @param databricks_dtl_connection_id [String, nil]
474
+ # @param table_id [String, nil]
475
+
476
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3#backend_type
477
+ module BackendType
478
+ extend Openlayer::Internal::Type::Enum
479
+
480
+ DATABRICKS_DTL = :databricks_dtl
481
+
482
+ # @!method self.values
483
+ # @return [Array<Symbol>]
484
+ end
485
+
486
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3#config
487
+ class Config < Openlayer::Internal::Type::BaseModel
488
+ # @!attribute ground_truth_column_name
489
+ # Name of the column with the ground truths.
490
+ #
491
+ # @return [String, nil]
492
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
493
+
494
+ # @!attribute human_feedback_column_name
495
+ # Name of the column with human feedback.
496
+ #
497
+ # @return [String, nil]
498
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
499
+
500
+ # @!attribute latency_column_name
501
+ # Name of the column with the latencies.
502
+ #
503
+ # @return [String, nil]
504
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
505
+
506
+ # @!attribute timestamp_column_name
507
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
508
+ # If not provided, the upload timestamp is used.
509
+ #
510
+ # @return [String, nil]
511
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
512
+
513
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
514
+ # Some parameter documentations has been truncated, see
515
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3::Config}
516
+ # for more details.
517
+ #
518
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
519
+ #
520
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
521
+ #
522
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
523
+ #
524
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
525
+ end
526
+ end
527
+
528
+ class UnionMember4 < Openlayer::Internal::Type::BaseModel
529
+ # @!attribute backend_type
530
+ #
531
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4::BackendType]
532
+ required :backend_type,
533
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4::BackendType },
534
+ api_name: :backendType
535
+
536
+ # @!attribute redshift_connection_id
537
+ #
538
+ # @return [String, nil]
539
+ required :redshift_connection_id, String, api_name: :redshiftConnectionId, nil?: true
540
+
541
+ # @!attribute schema_name
542
+ #
543
+ # @return [String]
544
+ required :schema_name, String, api_name: :schemaName
545
+
546
+ # @!attribute table_name
547
+ #
548
+ # @return [String]
549
+ required :table_name, String, api_name: :tableName
550
+
551
+ # @!method initialize(backend_type:, redshift_connection_id:, schema_name:, table_name:)
552
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4::BackendType]
553
+ # @param redshift_connection_id [String, nil]
554
+ # @param schema_name [String]
555
+ # @param table_name [String]
556
+
557
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4#backend_type
558
+ module BackendType
559
+ extend Openlayer::Internal::Type::Enum
560
+
561
+ REDSHIFT = :redshift
562
+
563
+ # @!method self.values
564
+ # @return [Array<Symbol>]
565
+ end
566
+
567
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4#config
568
+ class Config < Openlayer::Internal::Type::BaseModel
569
+ # @!attribute ground_truth_column_name
570
+ # Name of the column with the ground truths.
571
+ #
572
+ # @return [String, nil]
573
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
574
+
575
+ # @!attribute human_feedback_column_name
576
+ # Name of the column with human feedback.
577
+ #
578
+ # @return [String, nil]
579
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
580
+
581
+ # @!attribute latency_column_name
582
+ # Name of the column with the latencies.
583
+ #
584
+ # @return [String, nil]
585
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
586
+
587
+ # @!attribute timestamp_column_name
588
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
589
+ # If not provided, the upload timestamp is used.
590
+ #
591
+ # @return [String, nil]
592
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
593
+
594
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
595
+ # Some parameter documentations has been truncated, see
596
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4::Config}
597
+ # for more details.
598
+ #
599
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
600
+ #
601
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
602
+ #
603
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
604
+ #
605
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
606
+ end
607
+ end
608
+
609
+ class UnionMember5 < Openlayer::Internal::Type::BaseModel
610
+ # @!attribute backend_type
611
+ #
612
+ # @return [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5::BackendType]
613
+ required :backend_type,
614
+ enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5::BackendType },
615
+ api_name: :backendType
616
+
617
+ # @!attribute database
618
+ #
619
+ # @return [String]
620
+ required :database, String
621
+
622
+ # @!attribute postgres_connection_id
623
+ #
624
+ # @return [String, nil]
625
+ required :postgres_connection_id, String, api_name: :postgresConnectionId, nil?: true
626
+
627
+ # @!attribute schema
628
+ #
629
+ # @return [String]
630
+ required :schema, String
631
+
632
+ # @!attribute table
633
+ #
634
+ # @return [String, nil]
635
+ required :table, String, nil?: true
636
+
637
+ # @!method initialize(backend_type:, database:, postgres_connection_id:, schema:, table:)
638
+ # @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5::BackendType]
639
+ # @param database [String]
640
+ # @param postgres_connection_id [String, nil]
641
+ # @param schema [String]
642
+ # @param table [String, nil]
643
+
644
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5#backend_type
645
+ module BackendType
646
+ extend Openlayer::Internal::Type::Enum
647
+
648
+ POSTGRES = :postgres
649
+
650
+ # @!method self.values
651
+ # @return [Array<Symbol>]
652
+ end
653
+
654
+ # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5#config
655
+ class Config < Openlayer::Internal::Type::BaseModel
656
+ # @!attribute ground_truth_column_name
657
+ # Name of the column with the ground truths.
658
+ #
659
+ # @return [String, nil]
660
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
661
+
662
+ # @!attribute human_feedback_column_name
663
+ # Name of the column with human feedback.
664
+ #
665
+ # @return [String, nil]
666
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
667
+
668
+ # @!attribute latency_column_name
669
+ # Name of the column with the latencies.
670
+ #
671
+ # @return [String, nil]
672
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
673
+
674
+ # @!attribute timestamp_column_name
675
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
676
+ # If not provided, the upload timestamp is used.
677
+ #
678
+ # @return [String, nil]
679
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
680
+
681
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
682
+ # Some parameter documentations has been truncated, see
683
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5::Config}
684
+ # for more details.
685
+ #
686
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
687
+ #
688
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
689
+ #
690
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
691
+ #
692
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
693
+ end
694
+ end
695
+
696
+ # @!method self.variants
697
+ # @return [Array(Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineListResponse::Item::DataBackend::UnionMember5)]
698
+ end
699
+
194
700
  # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item#project
195
701
  class Project < Openlayer::Internal::Type::BaseModel
196
702
  # @!attribute name
@@ -44,6 +44,16 @@ module Openlayer
44
44
  # @return [Boolean, nil]
45
45
  optional :archived, Openlayer::Internal::Type::Boolean
46
46
 
47
+ # @!attribute default_to_all_pipelines
48
+ # Whether to apply the test to all pipelines (data sources) or to a specific set
49
+ # of pipelines. Only applies to tests that use production data.
50
+ #
51
+ # @return [Boolean, nil]
52
+ optional :default_to_all_pipelines,
53
+ Openlayer::Internal::Type::Boolean,
54
+ api_name: :defaultToAllPipelines,
55
+ nil?: true
56
+
47
57
  # @!attribute delay_window
48
58
  # The delay window in seconds. Only applies to tests that use production data.
49
59
  #
@@ -57,6 +67,36 @@ module Openlayer
57
67
  # @return [Float, nil]
58
68
  optional :evaluation_window, Float, api_name: :evaluationWindow, nil?: true
59
69
 
70
+ # @!attribute exclude_pipelines
71
+ # Array of pipelines (data sources) to which the test should not be applied. Only
72
+ # applies to tests that use production data.
73
+ #
74
+ # @return [Array<String>, nil]
75
+ optional :exclude_pipelines,
76
+ Openlayer::Internal::Type::ArrayOf[String],
77
+ api_name: :excludePipelines,
78
+ nil?: true
79
+
80
+ # @!attribute include_historical_data
81
+ # Whether to include historical data in the test result. Only applies to tests
82
+ # that use production data.
83
+ #
84
+ # @return [Boolean, nil]
85
+ optional :include_historical_data,
86
+ Openlayer::Internal::Type::Boolean,
87
+ api_name: :includeHistoricalData,
88
+ nil?: true
89
+
90
+ # @!attribute include_pipelines
91
+ # Array of pipelines (data sources) to which the test should be applied. Only
92
+ # applies to tests that use production data.
93
+ #
94
+ # @return [Array<String>, nil]
95
+ optional :include_pipelines,
96
+ Openlayer::Internal::Type::ArrayOf[String],
97
+ api_name: :includePipelines,
98
+ nil?: true
99
+
60
100
  # @!attribute uses_ml_model
61
101
  # Whether the test uses an ML model.
62
102
  #
@@ -89,7 +129,7 @@ module Openlayer
89
129
  Openlayer::Internal::Type::Boolean,
90
130
  api_name: :usesValidationDataset
91
131
 
92
- # @!method initialize(description:, name:, subtype:, thresholds:, type:, archived: nil, delay_window: nil, evaluation_window: nil, uses_ml_model: nil, uses_production_data: nil, uses_reference_dataset: nil, uses_training_dataset: nil, uses_validation_dataset: nil, request_options: {})
132
+ # @!method initialize(description:, name:, subtype:, thresholds:, type:, archived: nil, default_to_all_pipelines: nil, delay_window: nil, evaluation_window: nil, exclude_pipelines: nil, include_historical_data: nil, include_pipelines: nil, uses_ml_model: nil, uses_production_data: nil, uses_reference_dataset: nil, uses_training_dataset: nil, uses_validation_dataset: nil, request_options: {})
93
133
  # Some parameter documentations has been truncated, see
94
134
  # {Openlayer::Models::Projects::TestCreateParams} for more details.
95
135
  #
@@ -105,10 +145,18 @@ module Openlayer
105
145
  #
106
146
  # @param archived [Boolean] Whether the test is archived.
107
147
  #
148
+ # @param default_to_all_pipelines [Boolean, nil] Whether to apply the test to all pipelines (data sources) or to a specific set o
149
+ #
108
150
  # @param delay_window [Float, nil] The delay window in seconds. Only applies to tests that use production data.
109
151
  #
110
152
  # @param evaluation_window [Float, nil] The evaluation window in seconds. Only applies to tests that use production data
111
153
  #
154
+ # @param exclude_pipelines [Array<String>, nil] Array of pipelines (data sources) to which the test should not be applied. Only
155
+ #
156
+ # @param include_historical_data [Boolean, nil] Whether to include historical data in the test result. Only applies to tests tha
157
+ #
158
+ # @param include_pipelines [Array<String>, nil] Array of pipelines (data sources) to which the test should be applied. Only appl
159
+ #
112
160
  # @param uses_ml_model [Boolean] Whether the test uses an ML model.
113
161
  #
114
162
  # @param uses_production_data [Boolean] Whether the test uses production data (monitoring mode only).