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"]
14 format: { property: "hits.hits" }
17 { calculate: "datum._source['rate_pps'] / 1000000" as: "Offered load (Mpps)"},
18 { calculate: "datum._source['flow_count']" as: "Flow count"},
19 { calculate: "isNaN(toNumber(datum._source['frame_size'])) ? 362 : toNumber(datum._source['frame_size'])" as: "Frame size (bytes)"}
20 { calculate: "datum._source['user_label'] + '-' + datum._source['flow_count']" as: "label"}
29 encodings: [ "color", "shape" ],
30 toggle: "event.shiftKey"
46 selection: "legendSel",
64 {filter: { selection: "legendSel"}}
76 translate: "[mousedown[!event.shiftKey], window:mouseup] > window:mousemove!",
77 zoom: "wheel![!event.shiftKey]"
86 field: "Frame size (bytes)",
90 field: "Offered load (Mpps)",
94 field: "label", "type": "nominal",
102 "field": "Offered load (Mpps)",
103 "type": "quantitative"