MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / log_heartbeat

Function log_heartbeat

web/pgadmin/misc/__init__.py:265–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263@blueprint.route("/heartbeat/log", methods=['POST'])
264@pgCSRFProtect.exempt
265def log_heartbeat():
266 data = None
267 if hasattr(request.data, 'decode'):
268 data = request.data.decode('utf-8')
269
270 if data != '':
271 data = json.loads(data)
272
273 status, msg = log_server_heartbeat(data)
274 if status:
275 return make_json_response(data=msg, status=200)
276 else:
277 return make_json_response(data=msg, status=404)
278
279
280@blueprint.route("/heartbeat/stop", methods=['POST'])

Callers

nothing calls this directly

Calls 3

log_server_heartbeatFunction · 0.90
make_json_responseFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected