In [1]:
%matplotlib notebook
import sys, os, datetime
sys.path.append(os.getcwd())
from sixcnCiscoLiveDemo import sixcnCiscoLiveDemo, sixcnglobalinfo, sixcninfo
now=datetime.datetime.now()
demo = sixcnCiscoLiveDemo('sixcnCiscoLiveIPFIX',        # -> the 'src' field in logstash records
                          'year=2017/month={0:02d}/day={1:02d}'.format(now.month, now.day), # records of the current day 
                           10,          # -> sample period(seconds)
                           10,           # -> sliding time window (smoothing) 
                           [ os.getcwd() + '/sixcnCiscoLiveDemo.py'], # code package
                           False,       # -> quiet
                           None, None)  # -> filter, filter_name

demo.pie_charts_of_Broadcasted_Data()
demo.pie_charts_of_Eyeball_Time()
demo.graph_of_Cumulated_Data_by_streaming_protocol()
demo.graph_of_Cumulated_Eyeball_by_streaming_protocol()
demo.graph_of_Cumulated_Data_by_streaming_speed()
demo.graph_of_Cumulated_Eyeball_by_streaming_speed()

#demo.graph_of_Throughput_by_streaming_protocol()
#demo.graph_of_Eyeball_Time_by_streaming_protocol()
#demo.graph_of_Throughput_by_streaming_speed()
#demo.graph_of_Eyeball_Time_by_streaming_speed()

demo.graph_of_Throughput_Percent_by_streaming_protocol()
demo.graph_of_Eyeball_Time_Percent_by_streaming_protocol()
demo.graph_of_Throughput_Percent_by_streaming_speed()
demo.graph_of_Eyeball_Time_Percent_by_streaming_speed()

##### Not used b/c no filter is defined
#demo.pie_charts_of_Data_and_Eyeball_versus_Others()
#demo.graph_of_Throughput_versus_Others()
#demo.graph_of_Eyeball_Time_versus_Others()
#demo.graph_of_Cumulated_Data_versus_Others()
#demo.graph_of_Cumulated_Eyeball_Time_versus_Others()
#demo.graph_of_Throughput_percent_versus_Others()
#demo.graph_of_Eyeball_Time_percent_versus_Others()
=> Global stats: 	  map .. reduce .. collect .. postprocess .. OK
=> Chronological stats:
		global HLS             => filter .. map .. reduce .. OK
		HLS 4.5 Mbps           => filter .. map .. reduce .. OK
		HLS 1.2 Mbps           => filter .. map .. reduce .. OK
		HLS 600 kbps           => filter .. map .. reduce .. OK
		HLS 200 kbps           => filter .. map .. reduce .. OK
		HLS 110 kbps           => filter .. map .. reduce .. OK
		DASH manifest          => filter .. map .. reduce .. OK
		DASH 4.5 Mbps          => filter .. map .. reduce .. OK
		DASH 1.2 Mbps          => filter .. map .. reduce .. OK
		DASH 600 kbps          => filter .. map .. reduce .. OK
		DASH 200 kbps          => filter .. map .. reduce .. OK
		DASH 110 kbps          => filter .. map .. reduce .. OK
		DASH unknown bandwidth => filter .. map .. reduce .. OK
=> Chronological stats: postprocessing  . . . . . . . . . . . . . . . . . . . . . . . .  . . . .  . .  . . . . OK
=> Filtered   chrono. stats: postprocessing  . . . OK