Skip to content

Commit

Permalink
feat: add enabled property to data sampling (#1081)
Browse files Browse the repository at this point in the history
* feat: add enabled property to data sampling

* fix: fix test

---------

Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
bkuzma and cognite-bulldozer[bot] committed Apr 10, 2024
1 parent bf27aaf commit cf2c6c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/alpha/src/__tests__/api/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const routineRevisionConfiguration: SimulatorRoutineRevisionConfiguration
{
schedule: { enabled: false },
dataSampling: {
enabled: true,
validationWindow: 0,
samplingWindow: 0,
granularity: 0,
Expand Down
1 change: 1 addition & 0 deletions packages/alpha/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ export interface SimulatorRoutineFilterQuery extends FilterQuery {
/* Routine revisions */

export interface SimulatorRoutineDataSampling {
enabled: boolean;
validationWindow: number;
samplingWindow: number;
granularity: number;
Expand Down

0 comments on commit cf2c6c3

Please sign in to comment.