@property
    def status(self):
        hps = (self.algo['hashes_per_share'] *
               self.counters['acc_share_n1'].minute /
               60.0)
        dct = dict(mhps=hps / 1000000.0,
                   hps=hps,
                   last_flush_job=None,
                   agent_client_count=len(self.agent_clients),
                   client_count=len(self.clients),
                   address_count=len(self.address_lut),
                   address_worker_count=len(self.address_lut),
                   active_jobs=len(self.active_jobs),
                   stale_jobs=sum([len(j) for j in self.stale_jobs]),
                   client_count_authed=self.authed_clients,
                   client_count_active=len(self.clients) - self.idle_clients,
                   client_count_idle=self.idle_clients)
        if self.last_flush_job:
            j = self.last_flush_job
            dct['last_flush_job'] = dict(
                algo=j.algo,
                pow_block_hash=j.pow_block_hash,
                currency=j.currency,
                job_id=j.job_id,
                merged_networks=j.merged_data.keys(),
                pushed_at=self.last_flush_time
            )
        return dct
For display in the http monitor
dataset/ETHPy150Open simplecrypto/powerpool/powerpool/stratum_server.py/StratumServer.status