diff options
author | Jozsef Csongvai <jozsef.csongvai@bell.ca> | 2020-07-09 08:32:40 -0400 |
---|---|---|
committer | Jozsef Csongvai <jozsef.csongvai@bell.ca> | 2020-07-09 08:56:11 -0400 |
commit | f71ba4e81f04a2a3c5e97d565d34c09f46885fe6 (patch) | |
tree | 1190a6aacbbd53e0210c32599bd2b85acd5516b4 /ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin | |
parent | 4ad951ee4c3ed41ca58a240e8b9193416c304b20 (diff) |
Set EventType for GRPC response in designer API
Issue-ID: CCSDK-2539
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: Iaaf64e4b6683c564c1022b609496fec55ad0df6d
Diffstat (limited to 'ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin')
-rw-r--r-- | ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BluePrintManagementGRPCHandler.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BluePrintManagementGRPCHandler.kt b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BluePrintManagementGRPCHandler.kt index 7600979f8..714cf3a46 100644 --- a/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BluePrintManagementGRPCHandler.kt +++ b/ms/blueprintsprocessor/modules/inbounds/designer-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/designer/api/BluePrintManagementGRPCHandler.kt @@ -24,6 +24,7 @@ import io.grpc.stub.StreamObserver import kotlinx.coroutines.runBlocking import org.onap.ccsdk.cds.blueprintsprocessor.designer.api.handler.BluePrintModelHandler import org.onap.ccsdk.cds.controllerblueprints.common.api.CommonHeader +import org.onap.ccsdk.cds.controllerblueprints.common.api.EventType import org.onap.ccsdk.cds.controllerblueprints.common.api.Status import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintConstants import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintProcessorException @@ -246,6 +247,7 @@ open class BluePrintManagementGRPCHandler( .setStatus( Status.newBuilder() .setTimestamp(currentTimestamp()) + .setEventType(EventType.EVENT_COMPONENT_EXECUTED) .setMessage(BluePrintConstants.STATUS_SUCCESS) .setCode(200) .build() @@ -265,6 +267,7 @@ open class BluePrintManagementGRPCHandler( Status.newBuilder() .setTimestamp(currentTimestamp()) .setMessage(BluePrintConstants.STATUS_SUCCESS) + .setEventType(EventType.EVENT_COMPONENT_EXECUTED) .setCode(200) .build() ) @@ -284,6 +287,7 @@ open class BluePrintManagementGRPCHandler( Status.newBuilder() .setTimestamp(currentTimestamp()) .setMessage(BluePrintConstants.STATUS_FAILURE) + .setEventType(EventType.EVENT_COMPONENT_FAILURE) .setErrorMessage("Error : $message \n Details: ${error.errorMessageOrDefault()}") .setCode(code) .build() @@ -305,6 +309,7 @@ open class BluePrintManagementGRPCHandler( Status.newBuilder() .setTimestamp(currentTimestamp()) .setMessage(BluePrintConstants.STATUS_FAILURE) + .setEventType(EventType.EVENT_COMPONENT_FAILURE) .setErrorMessage("Error : ${errorPayload.message}") .setCode(errorPayload.code) .build() |