diff --git a/src/DIRAC/MonitoringSystem/Service/WebAppHandler.py b/src/DIRAC/MonitoringSystem/Service/WebAppHandler.py index 4da2059e312..43c1b9aa061 100644 --- a/src/DIRAC/MonitoringSystem/Service/WebAppHandler.py +++ b/src/DIRAC/MonitoringSystem/Service/WebAppHandler.py @@ -305,6 +305,19 @@ def export_getPilotLoggingInfo(cls, pilotReference): return S_OK(loggingInfo) + types_getGroupedPilotSummary = [list] + + @classmethod + def export_getGroupedPilotSummary(cls, columnList): + """ + Get pilot summary showing grouped by columns in columnList, all pilot states + and pilot efficiencies in a single row. + + :param columnList: a list of columns to GROUP BY (less status column) + :return: a dictionary containing column names and data records + """ + return cls.pilotAgentsDB.getGroupedPilotSummary(columnList) + ############################################################################## # Jobs ##############################################################################