2 $schema: https: //vega.github.io/schema/vega-lite/v2.json
3 title: "Capacity in Mpps - 0,001% loss ratio"
7 %timefield%: "@timestamp"
10 _source: ["@timestamp", "_source", "rate_pps", "flow_count", "frame_size", "user_label", "type"]
14 format: { property: "hits.hits" }
18 { calculate: "datum._source['rate_pps'] / 1000000" as: "offered_load_pps"},
19 { calculate: "datum._source['flow_count']" as: "flow_count"},
20 { calculate: "isNaN(toNumber(datum._source['frame_size'])) ? 362 : toNumber(datum._source['frame_size'])" as: "frame_size"},
21 { calculate: "datum._source['user_label'] + '-' + datum._source['flow_count']" as: "label"}
22 { aggregate: [{op: "max", field: "offered_load_pps", as: "max_offered_load_pps"}], groupby: ["frame_size", "label","flow_count"]}
32 encodings: [ "color", "shape" ],
33 toggle: "event.shiftKey"
49 selection: "legendSel",
67 {filter: { selection: "legendSel"}}
80 translate: "[mousedown[!event.shiftKey], window:mouseup] > window:mousemove!",
81 zoom: "wheel![!event.shiftKey]"
89 x: { field: "frame_size", type: "quantitative", title: "Frame size (bytes)", axis: {offset: 10} }
90 y: { field: "max_offered_load_pps", type: "quantitative", title: "Offered load (Mpps)" , axis: {offset: 10} }
91 color: {field: "label", "type": "nominal",
93 tooltip: {"field": "max_offered_load_pps", "type": "quantitative"},
94 shape: {field: "flow_count", type: "nominal"}