+ self.update_attributes!(o.select { |k,v|
+ [:bytes_total,
+ :bytes_free,
+ :is_readable,
+ :is_writable,
+ :last_read_at,
+ :last_write_at
+ ].collect(&:to_s).index k
+ }.merge(last_ping_at: db_current_time))
+ end
+
+ def service_host
+ KeepService.find_by_uuid(self.keep_service_uuid).andand.service_host
+ end
+
+ def service_port
+ KeepService.find_by_uuid(self.keep_service_uuid).andand.service_port
+ end