Ejemplo n.º 1
0
		print res
		print ""
		
	# Get flow level results
	# Note: the statistic names should be identical to those that appear in the results CSV
	results = ixchariotApi.getFlowLevelResults(session, ["Throughput", "Total Datagrams Sent"], "FlowGroup 1", "RTP HD (10 Mbps)", "RTP")
	
	print "Flow Level Results for RTP HD (10 Mbps) (RTP) from FlowGroup 1:\n"
	for res in results:
		print res
		print ""
		
	# Get user level results
	# Note: the statistic names should be identical to those that appear in the results CSV
	# Get results for the first user
	results = ixchariotApi.getUserLevelResultsFromFlow(session, ["Throughput"], "FlowGroup 1", "RTP HD (10 Mbps)", "RTP", 1)
	
	print "User Level Results for first user in flow RTP HD (10 Mbps) (RTP), FlowGroup 1:\n"
	for res in results:
		print res
		print ""
	

except Exception, e:
	print "Error", e
	
print "Stopping the session..."
session.stopSession()

print "Deleting the session..."
session.httpDelete()
    # Note: the statistic names should be identical to those that appear in the results CSV
    results = ixchariotApi.getFlowLevelResults(session,
                                               ["Avg Mos", "Avg R-value"],
                                               "FlowGroup 1",
                                               "G.711a (64 kbps)", "RTP")

    print "Flow Level Results for AMR-NB (7.40 kbps) from FlowGroup 1:\n"
    for res in results:
        print res
        print ""

    # Get user level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    # Get results for the first user
    results = ixchariotApi.getUserLevelResultsFromFlow(session, ["Avg Mos"],
                                                       "FlowGroup 1",
                                                       "G.711a (64 kbps)",
                                                       "RTP", 1)

    print "User Level Results for first user in flow G.711a (64 kbps) (RTP), FlowGroup 1:\n"
    for res in results:
        print res
        print ""

except Exception, e:
    print "Error", e

print "Stopping the session..."
session.stopSession()

print "Deleting the session..."
session.httpDelete()
Ejemplo n.º 3
0
    # Get flow level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    results = ixchariotApi.getFlowLevelResults(
        session, ["Throughput", "Total Datagrams Sent"], "FlowGroup 1",
        "TCP Baseline Performance", "TCP")

    print "Flow Level Results for TCP Baseline Performance (TCP) from FlowGroup 1:\n"
    for res in results:
        print res
        print ""

    # Get user level results
    # Note: the statistic names should be identical to those that appear in the results CSV
    # Get results for the first user
    results = ixchariotApi.getUserLevelResultsFromFlow(
        session, ["Throughput"], "FlowGroup 1", "TCP Baseline Performance",
        "TCP", 1)

    print "User Level Results for first user in flow TCP Baseline Performance (TCP), FlowGroup 1:\n"
    for res in results:
        print res
        print ""

except Exception, e:
    print "Error", e

print "Stopping the session..."
session.stopSession()

print "Deleting the session..."
session.httpDelete()