File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -985,6 +985,24 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
985
985
WithField ("partition" , envId ).
986
986
WithField ("level" , infologger .IL_Devel ).
987
987
Info ("ALIECS PFR operation : processing DCS PFR for " )
988
+
989
+ ecsDet := dcsToEcsDetector (dcsEvent .GetDetector ())
990
+ detPayload := map [string ]interface {}{}
991
+ _ = copier .Copy (& detPayload , payload )
992
+ detPayload ["detector" ] = ecsDet
993
+ detPayload ["state" ] = dcspb .DetectorState_name [int32 (dcsEvent .GetState ())]
994
+ detPayload ["dcsEvent" ] = dcsEvent
995
+ detPayloadJson , _ := json .Marshal (detPayload )
996
+
997
+ the .EventWriterWithTopic (TOPIC ).WriteEvent (& pb.Ev_IntegratedServiceEvent {
998
+ Name : call .GetName (),
999
+ OperationName : call .Func ,
1000
+ OperationStatus : pb .OpStatus_ONGOING ,
1001
+ OperationStep : "perform DCS call: PrepareForRun" ,
1002
+ OperationStepStatus : pb .OpStatus_ONGOING ,
1003
+ EnvironmentId : envId ,
1004
+ Payload : string (detPayloadJson [:]),
1005
+ })
988
1006
}
989
1007
990
1008
}
You can’t perform that action at this time.
0 commit comments