|
@@ -799,25 +799,22 @@ func TestEventWindow(t *testing.T) {
|
|
"color": "red",
|
|
"color": "red",
|
|
"ts": float64(1541152486013),
|
|
"ts": float64(1541152486013),
|
|
}},
|
|
}},
|
|
- {},
|
|
|
|
{{
|
|
{{
|
|
"window_start": float64(1541152488000),
|
|
"window_start": float64(1541152488000),
|
|
"window_end": float64(1541152489000),
|
|
"window_end": float64(1541152489000),
|
|
"color": "yellow",
|
|
"color": "yellow",
|
|
"ts": float64(1541152488442),
|
|
"ts": float64(1541152488442),
|
|
}},
|
|
}},
|
|
- {},
|
|
|
|
- {},
|
|
|
|
},
|
|
},
|
|
M: map[string]interface{}{
|
|
M: map[string]interface{}{
|
|
"op_4_project_0_exceptions_total": int64(0),
|
|
"op_4_project_0_exceptions_total": int64(0),
|
|
"op_4_project_0_process_latency_us": int64(0),
|
|
"op_4_project_0_process_latency_us": int64(0),
|
|
- "op_4_project_0_records_in_total": int64(5),
|
|
|
|
- "op_4_project_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_4_project_0_records_in_total": int64(2),
|
|
|
|
+ "op_4_project_0_records_out_total": int64(2),
|
|
|
|
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
"sink_mockSink_0_exceptions_total": int64(0),
|
|
- "sink_mockSink_0_records_in_total": int64(5),
|
|
|
|
- "sink_mockSink_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "sink_mockSink_0_records_in_total": int64(2),
|
|
|
|
+ "sink_mockSink_0_records_out_total": int64(2),
|
|
|
|
|
|
"source_demoE_0_exceptions_total": int64(0),
|
|
"source_demoE_0_exceptions_total": int64(0),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
"source_demoE_0_records_in_total": int64(6),
|
|
@@ -831,7 +828,7 @@ func TestEventWindow(t *testing.T) {
|
|
"op_3_filter_0_exceptions_total": int64(0),
|
|
"op_3_filter_0_exceptions_total": int64(0),
|
|
"op_3_filter_0_process_latency_us": int64(0),
|
|
"op_3_filter_0_process_latency_us": int64(0),
|
|
"op_3_filter_0_records_in_total": int64(5),
|
|
"op_3_filter_0_records_in_total": int64(5),
|
|
- "op_3_filter_0_records_out_total": int64(5),
|
|
|
|
|
|
+ "op_3_filter_0_records_out_total": int64(2),
|
|
},
|
|
},
|
|
}, {
|
|
}, {
|
|
Name: `TestEventWindowRule3`,
|
|
Name: `TestEventWindowRule3`,
|