        :params  nil})
     (subscribed-data [_ message]
       (api/tasks-memo))))
+
+(def refresh-node-info
+  (reify Rule
+    (match? [_ type message]
+      (and (event? type)
+           (node-event? message)))
+    (subscription [_ message]
+      {:handler :node-info
+       :params  {:id (node-id message)}})
+    (subscribed-data [_ message]
+      (node-info-data message))))
 
 (def refresh-node-list
   (reify Rule

           (or (service-event? message)
               (service-task-event? message))))
    (subscription [_ message]
      (let [service-id (or (get-in message [:Actor :Attributes :com.docker.swarm.service.id])
                           (get-in message [:Actor :ID]))]
        {:handler :service-info
         :params  {:id service-id}}))
    (subscribed-data [_ message]
      (service-info-data message))))


           (or (service-event? message)
               (service-task-event? message))))
    (subscription [_ message]
      {:handler :service-info
       :params  {:id (service-name message)}})
    (subscribed-data [_ message]
      (service-info-data message))))

