'Process status message from a client and update the stats.
Args:
client_id: Client id.
responses: The responses object returned from the client.'

def ProcessClientResourcesStats(self, client_id, responses):

    flow_path = responses.status.child_session_id
    status = responses.status
    resources = rdf_client.ClientResources()
    resources.client_id = client_id
    resources.session_id = flow_path
    resources.cpu_usage.user_cpu_time = status.cpu_time_used.user_cpu_time
    resources.cpu_usage.system_cpu_time = status.cpu_time_used.system_cpu_time
    resources.network_bytes_sent = status.network_bytes_sent
    self.context.usage_stats.RegisterResources(resources)
