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

Function activity

web/pgadmin/dashboard/__init__.py:432–446  ·  view source on GitHub ↗

This function returns server activity information :param sid: server id :return:

(sid=None, did=None)

Source from the content-addressed store, hash-verified

430@pga_login_required
431@check_precondition
432def activity(sid=None, did=None):
433 """
434 This function returns server activity information
435 :param sid: server id
436 :return:
437 """
438 data = [{
439 'activity': get_data(sid, did, 'activity.sql', True, True),
440 'locks': get_data(sid, did, 'locks.sql', only_data=True),
441 'prepared': get_data(sid, did, 'prepared.sql', only_data=True)
442 }]
443 return ajax_response(
444 response=data,
445 status=200
446 )
447
448
449@blueprint.route('/locks/', endpoint='locks')

Callers

nothing calls this directly

Calls 1

get_dataFunction · 0.70

Tested by

no test coverage detected