MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / update_status

Method update_status

client/util/api/dogapi.py:341–348  ·  view source on GitHub ↗

机器状态信息上报 :param status_info: dict,机器状态信息 :return: True|False, 上报是否成功

(self, status_info)

Source from the content-addressed store, hash-verified

339 return rsp_dict['id']
340
341 def update_status(self, status_info):
342 """
343 机器状态信息上报
344 :param status_info: dict,机器状态信息
345 :return: True|False, 上报是否成功
346 """
347 rel_url = "api/nodes/%s/status/" % persist_data["NODE_ID"]
348 CodeDogHttpClient(self._server_url, rel_url, headers=self._headers, json_data=status_info).post()
349
350 def heart_beat(self, data):
351 """

Callers 1

_thread_update_statusMethod · 0.45

Calls 2

CodeDogHttpClientClass · 0.85
postMethod · 0.45

Tested by

no test coverage detected