From 7c9cfb9b6abb6dcf0cbd7e2b7b2867f19950ca3e Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 9 May 2023 11:20:40 +0200 Subject: [PATCH] feat(specs): add reason code to run outcome (#1531) --- specs/ingestion/common/schemas/run.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specs/ingestion/common/schemas/run.yml b/specs/ingestion/common/schemas/run.yml index 8fc9e3815b..2327cb86ed 100644 --- a/specs/ingestion/common/schemas/run.yml +++ b/specs/ingestion/common/schemas/run.yml @@ -50,6 +50,8 @@ Run: reason: type: string description: 'Explains the result of outcome.' + reasonCode: + $ref: '#/RunReasonCode' type: $ref: '#/RunType' createdAt: @@ -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']