def dump(self):
        data = dict( # Sessions
                     sessions_active=self.sess_active,

                     # Connections
                     connections_active=self.conn_active,
                     connections_ps=self.conn_ps.last_average,

                     # Packets
                     packets_sent_ps=self.pack_sent_ps.last_average,
                     packets_recv_ps=self.pack_recv_ps.last_average
        )

        for k, v in self.sess_transports.iteritems():
            data['transp_' + k] = v

        return data

    # Various event callbacks
Return the resource corresponding to a single charge.
dataset/ETHPy150Open flaviogrossi/sockjs-cyclone/sockjs/cyclone/stats.py/StatsCollector.dump--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/stripe/service.py/Stripe.charge