Skip to content

Commit a68f1ff

Browse files
feat(api): api update
1 parent dcae1c4 commit a68f1ff

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 18
2-
openapi_spec_hash: 8cd3908ccce472dcb5480c14b290b460
2+
openapi_spec_hash: 539798fac79a1eeebf9ac4faa0492455
33
config_hash: 6dcf08c4324405f152d1da9fc11ab04a

src/resources/projects/tests.ts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ export interface TestCreateResponse {
188188
*/
189189
archived?: boolean;
190190

191+
/**
192+
* Whether to apply the test to all pipelines (data sources) or to a specific set
193+
* of pipelines. Only applies to tests that use production data.
194+
*/
195+
defaultToAllPipelines?: boolean | null;
196+
191197
/**
192198
* The delay window in seconds. Only applies to tests that use production data.
193199
*/
@@ -199,6 +205,24 @@ export interface TestCreateResponse {
199205
*/
200206
evaluationWindow?: number | null;
201207

208+
/**
209+
* Array of pipelines (data sources) to which the test should not be applied. Only
210+
* applies to tests that use production data.
211+
*/
212+
excludePipelines?: Array<string> | null;
213+
214+
/**
215+
* Whether to include historical data in the test result. Only applies to tests
216+
* that use production data.
217+
*/
218+
includeHistoricalData?: boolean | null;
219+
220+
/**
221+
* Array of pipelines (data sources) to which the test should be applied. Only
222+
* applies to tests that use production data.
223+
*/
224+
includePipelines?: Array<string> | null;
225+
202226
/**
203227
* Whether the test uses an ML model.
204228
*/
@@ -431,6 +455,12 @@ export namespace TestListResponse {
431455
*/
432456
archived?: boolean;
433457

458+
/**
459+
* Whether to apply the test to all pipelines (data sources) or to a specific set
460+
* of pipelines. Only applies to tests that use production data.
461+
*/
462+
defaultToAllPipelines?: boolean | null;
463+
434464
/**
435465
* The delay window in seconds. Only applies to tests that use production data.
436466
*/
@@ -442,6 +472,24 @@ export namespace TestListResponse {
442472
*/
443473
evaluationWindow?: number | null;
444474

475+
/**
476+
* Array of pipelines (data sources) to which the test should not be applied. Only
477+
* applies to tests that use production data.
478+
*/
479+
excludePipelines?: Array<string> | null;
480+
481+
/**
482+
* Whether to include historical data in the test result. Only applies to tests
483+
* that use production data.
484+
*/
485+
includeHistoricalData?: boolean | null;
486+
487+
/**
488+
* Array of pipelines (data sources) to which the test should be applied. Only
489+
* applies to tests that use production data.
490+
*/
491+
includePipelines?: Array<string> | null;
492+
445493
/**
446494
* Whether the test uses an ML model.
447495
*/
@@ -619,6 +667,12 @@ export interface TestCreateParams {
619667
*/
620668
archived?: boolean;
621669

670+
/**
671+
* Whether to apply the test to all pipelines (data sources) or to a specific set
672+
* of pipelines. Only applies to tests that use production data.
673+
*/
674+
defaultToAllPipelines?: boolean | null;
675+
622676
/**
623677
* The delay window in seconds. Only applies to tests that use production data.
624678
*/
@@ -630,6 +684,24 @@ export interface TestCreateParams {
630684
*/
631685
evaluationWindow?: number | null;
632686

687+
/**
688+
* Array of pipelines (data sources) to which the test should not be applied. Only
689+
* applies to tests that use production data.
690+
*/
691+
excludePipelines?: Array<string> | null;
692+
693+
/**
694+
* Whether to include historical data in the test result. Only applies to tests
695+
* that use production data.
696+
*/
697+
includeHistoricalData?: boolean | null;
698+
699+
/**
700+
* Array of pipelines (data sources) to which the test should be applied. Only
701+
* applies to tests that use production data.
702+
*/
703+
includePipelines?: Array<string> | null;
704+
633705
/**
634706
* Whether the test uses an ML model.
635707
*/

tests/api-resources/projects/tests.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ describe('resource tests', () => {
4242
],
4343
type: 'integrity',
4444
archived: false,
45+
defaultToAllPipelines: true,
4546
delayWindow: 0,
4647
evaluationWindow: 3600,
48+
excludePipelines: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'],
49+
includeHistoricalData: true,
50+
includePipelines: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'],
4751
usesMlModel: false,
4852
usesProductionData: false,
4953
usesReferenceDataset: false,

0 commit comments

Comments
 (0)