The function ba_get_class_stats() retrieves statistics information about a given class for a given managed interface. It returns the following information:
Number of packets sent
Number of bytes sent
Number of attempts made to borrow bandwidth
Number of packets dropped
Number of bytes dropped