github.com/magnusbaeck/logstash-filter-verifier/v2@v2.0.0-pre.1/logstash/result.go (about) 1 // Copyright (c) 2015-2016 Magnus Bäck <magnus@noun.se> 2 3 package logstash 4 5 // Result contains the result of a Logstash execution. 6 type Result struct { 7 // Success indicates whether the execution was successful, 8 // i.e. whether the Logstash process terminated with a zero 9 // exit status. 10 Success bool 11 12 // Events contains a slice of the events emitted from 13 // Logstash. 14 Events []Event 15 16 // Log contains the contents of the Logstash log file. 17 Log string 18 19 // Output contains stdout and stderr output (if any) of 20 // the Logstash process. If the process fails during 21 // initialization clues can probably be found here. 22 Output string 23 } 24 25 // ParallelResult contains the results of a parallel Logstash execution, 26 // where multiple test cases are run in parallel via unix domain sockets. 27 type ParallelResult struct { 28 // Success indicates whether the execution was successful, 29 // i.e. whether the Logstash process terminated with a zero 30 // exit status. 31 Success bool 32 33 // Events contains a slice of the events emitted from 34 // Logstash. 35 Events [][]Event 36 37 // Log contains the contents of the Logstash log file. 38 Log string 39 40 // Output contains stdout and stderr output (if any) of 41 // the Logstash process. If the process fails during 42 // initialization clues can probably be found here. 43 Output string 44 } 45 46 // Event represents a Logstash event, i.e. basically a JSON document. 47 type Event map[string]interface{}