Fix removal of perfdata in check results

This commit is contained in:
Blerim Sheqa 2018-12-21 11:55:55 +01:00
parent 1443e86ffa
commit 9e1c436410
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func BuildEventstreamEvent(e []byte) beat.Event {
event.Fields.Put(target_key+"check_result.execution_end", FloatToTimestamp(checkResult["execution_end"].(float64)))
event.Fields.Put(target_key+"check_result.schedule_start", FloatToTimestamp(checkResult["schedule_start"].(float64)))
event.Fields.Put(target_key+"check_result.schedule_end", FloatToTimestamp(checkResult["schedule_end"].(float64)))
event.Fields.Delete("check_result.performance_data")
event.Fields.Delete(target_key+"check_result.performance_data")
case "AcknowledgementSet":
event.Delete("comment")