Skip to content

Commit

Permalink
feat(specs): add reason code to run outcome (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 authored May 9, 2023
1 parent dd795d2 commit 7c9cfb9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions specs/ingestion/common/schemas/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Run:
reason:
type: string
description: 'Explains the result of outcome.'
reasonCode:
$ref: '#/RunReasonCode'
type:
$ref: '#/RunType'
createdAt:
Expand Down Expand Up @@ -80,3 +82,8 @@ RunOutcome:
RunType:
type: string
enum: ['reindex', 'update']

RunReasonCode:
type: string
description: 'An identifier that pairs with the outcome reason.'
enum: ['internal', 'critical', 'no_events', 'too_many_errors', 'ok', 'discarded']

0 comments on commit 7c9cfb9

Please sign in to comment.