def web_pick(self): return { "id": self.id, "ip": self.ip, "service_group": self.service_group, "port": self.port, "jid": self.jid, "state": self.state, "start_time": timestamp_to_string(self.start_time), "heartbeat_time": timestamp_to_string(self.__heartbeat_time), "service_version": self.service_version, "current_load": self.current_load, "href_doc": self.href_doc if self.state == SS_RUNNING else "", "href": self.href if self.state == SS_RUNNING else "" }
def web_pick(self): return { "id": self.id, "ip": self.ip, "service_group": self.service_group, "port": self.port, "jid": self.jid, "state": self.state, "start_time": timestamp_to_string(self.start_time), "heartbeat_time": timestamp_to_string(self.__heartbeat_time), "service_version": self.service_version, "current_load": self.current_load, "href_doc": self.href_doc if self.state == SS_RUNNING else "", "href": self.href if self.state == SS_RUNNING else "", }
def get_info_dic(self): return { "id": self.id, "ip": self.ip, "service_group": self.service_group, "port": self.port, "jid": self.jid, "state": self.state, "start_time": timestamp_to_string(self.start_time), "heartbeat_time": timestamp_to_string(self.__heartbeat_time), "service_version": self.service_version, "current_load": self.current_load, "href_doc": self.href_doc, "href": self.href, "locate": self.locate }
def get_info_dic(self): return { "id": self.id, "ip": self.ip, "service_group": self.service_group, "port": self.port, "jid": self.jid, "state": self.state, "start_time": timestamp_to_string(self.start_time), "heartbeat_time": timestamp_to_string(self.__heartbeat_time), "service_version": self.service_version, "current_load": self.current_load, "href_doc": self.href_doc, "href": self.href, "locate": self.locate, }