This function returns server activity information :param sid: server id :return:
(sid=None, did=None)
| 430 | @pga_login_required |
| 431 | @check_precondition |
| 432 | def 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') |
nothing calls this directly
no test coverage detected