Skip to content

Commit 028bf07

Browse files
shortcutsFluf22
andauthored
feat(specs): add failureThreshold to Ingestion API (#1962)
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent 9ba9d00 commit 028bf07

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

specs/ingestion/common/schemas/run.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Run:
4747
type: integer
4848
outcome:
4949
$ref: '#/RunOutcome'
50+
failureThrehsold:
51+
$ref: './task.yml#/failureThreshold'
5052
reason:
5153
type: string
5254
description: 'Explains the result of outcome.'

specs/ingestion/common/schemas/task.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ TaskCreate:
5656
enabled:
5757
type: boolean
5858
description: Whether the task is enabled or not.
59+
failureThreshold:
60+
$ref: '#/failureThreshold'
5961
input:
6062
$ref: '#/TaskInput'
6163
# lastCursorValue:
@@ -277,3 +279,9 @@ ScheduleDateUtilsInput:
277279
maximum: 30
278280
required:
279281
- timeframe
282+
283+
failureThreshold:
284+
type: integer
285+
minimum: 0
286+
maximum: 100
287+
description: A percentage representing the accepted failure threshold to determine if a `run` succeeded or not.

0 commit comments

Comments
 (0)