Skip to content

Commit d4c9bdc

Browse files
committed
new shape
1 parent bbe8b05 commit d4c9bdc

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

specs/ingestion/common/schemas/task.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Task:
2828
$ref: './common.yml#/cursor'
2929
notifications:
3030
$ref: '#/Notifications'
31+
policies:
32+
$ref: '#/Policies'
3133
createdAt:
3234
$ref: './common.yml#/createdAt'
3335
updatedAt:
@@ -67,6 +69,8 @@ TaskV1:
6769
$ref: './common.yml#/cursor'
6870
notifications:
6971
$ref: '#/Notifications'
72+
policies:
73+
$ref: '#/Policies'
7074
createdAt:
7175
$ref: './common.yml#/createdAt'
7276
updatedAt:
@@ -111,6 +115,8 @@ TaskCreate:
111115
$ref: './common.yml#/cursor'
112116
notifications:
113117
$ref: '#/Notifications'
118+
policies:
119+
$ref: '#/Policies'
114120
required:
115121
- sourceID
116122
- destinationID
@@ -183,6 +189,8 @@ TaskUpdate:
183189
$ref: '#/failureThreshold'
184190
notifications:
185191
$ref: '#/Notifications'
192+
policies:
193+
$ref: '#/Policies'
186194

187195
TaskUpdateV1:
188196
type: object
@@ -575,10 +583,16 @@ Notifications:
575583
enabled:
576584
description: Whether to send email notifications, note that this doesn't prevent the task from being blocked.
577585
type: boolean
578-
criticalThreshold:
579-
description: The number of critical failures in a row before blocking the task and sending a notification.
580-
type: integer
581-
minimum: 1
582-
maximum: 10
583586
required:
584587
- email
588+
589+
Policies:
590+
type: object
591+
additionalProperties: false
592+
description: Set of rules for a task.
593+
properties:
594+
criticalThreshold:
595+
description: The number of critical failures in a row before blocking the task and sending a notification.
596+
type: integer
597+
minimum: 1
598+
maximum: 10

0 commit comments

Comments
 (0)