Skip to content

Commit

Permalink
added string representation of dcsEvent state to DCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Tichák authored and knopers8 committed Sep 25, 2024
1 parent ed1bbff commit 70a6a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/integration/dcs/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{}) {
detPayload := map[string]interface{}{}
_ = copier.Copy(&detPayload, payload)
detPayload["detector"] = ecsDet
detPayload["state"] = dcspb.DetectorState_name[int32(dcsEvent.GetState())]
detPayload["dcsEvent"] = dcsEvent
detPayloadJson, _ := json.Marshal(detPayload)

Expand Down

0 comments on commit 70a6a17

Please sign in to comment.