1 QA output created by 407
2 === This should work ===
5 inst [0 or "fungus"] value [0 event records]
6 inst [1 or "bogus"] value [2 event records timestamps TIMESTAMP...TIMESTAMP]
9 inst [0 or "fungus"] value [1 event record timestamp TIMESTAMP]
10 inst [1 or "bogus"] value [1 event record timestamp TIMESTAMP]
13 inst [0 or "fungus"] value [2 event records timestamps TIMESTAMP...TIMESTAMP]
14 inst [1 or "bogus"] value [1 event record timestamp TIMESTAMP]
17 inst [0 or "fungus"] value [5 event records (7 missed) timestamps TIMESTAMP...TIMESTAMP]
18 inst [1 or "bogus"] value [2 event records timestamps TIMESTAMP...TIMESTAMP]
20 === These should NOT work ===
21 Semantic error: derived metric my.bad_1: sample.event.records - sample.event.records: Non-arithmetic type for left operand
22 Semantic error: derived metric my.bad_2: 1 + sample.event.records: Non-arithmetic type for right operand
23 Semantic error: derived metric my.bad_3: <expr> + sample.event.records: Non-arithmetic type for right operand
24 Semantic error: derived metric my.bad_4: sample.event.records - <expr>: Non-arithmetic type for left operand
25 Semantic error: derived metric my.bad_5: 1 + sample.event.records: Non-arithmetic type for right operand
26 Semantic error: derived metric my.bad_6: sample.event.records * 2: Non-arithmetic type for left operand
27 Error: my: Unknown metric name