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", "theoretical_tx_rate_pps", "flow_count", "frame_size", "user_label"]
14 format: { property: "hits.hits" }
17 { calculate: "datum._source['rate_pps'] / 1000000" as: "rate_pps"},
18 { calculate: "datum._source['theoretical_tx_rate_pps'] / 1000000" as: "theoretical_tx_rate_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"}
30 encodings: [ "color", "shape" ],
31 toggle: "event.shiftKey"
47 selection: "legendSel",
69 x: { field: "frame_size", type: "quantitative", title: "Frame size (bytes)", axis: {offset: 10} }
70 y: { field: "theoretical_tx_rate_pps", type: "quantitative", title: "Offered load (Mpps)" , axis: {offset: 10} }
71 strokeDash: {"field": "theoretical_tx_rate_pps", "type": "nominal"}
72 tooltip: [{"field": "theoretical_tx_rate_pps", "type": "quantitative", title: "theoretical max capacity"}],
73 color: { "value": "red"}
80 {filter: { selection: "legendSel"}}
91 translate: "[mousedown[!event.shiftKey], window:mouseup] > window:mousemove!",
92 zoom: "wheel![!event.shiftKey]"
102 title: "Frame size (bytes)",
107 title: "Offered load (Mpps)",
111 field: "label", "type": "nominal",
120 "title": "Offered load (Mpps)",
121 "type": "quantitative"