Define EventType contract for gRPC message
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Mon, 4 Mar 2019 15:22:04 +0000 (10:22 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Tue, 5 Mar 2019 14:23:44 +0000 (14:23 +0000)
Change-Id: Ic8bde56d13f774120c8d64a56993ade71e7b4612
Issue-ID: CCSDK-1118
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
components/model-catalog/proto-definition/proto/BluePrintCommon.proto

index 0f17783..de92bdc 100644 (file)
@@ -26,6 +26,13 @@ message Status {
   int32 code = 1;
   string errorMessage = 2;
   string message = 3;
-  string eventType = 4;
+  EventType eventType = 4;
   string timestamp = 5;
+}
+
+enum EventType {
+  EVENT_COMPONENT_FAILURE = 0;
+  EVENT_COMPONENT_PROCESSING = 1;
+  EVENT_COMPONENT_NOTIFICATION = 2;
+  EVENT_COMPONENT_EXECUTED = 3;
 }
\ No newline at end of file