This module is used to create an appropriate object which can be used to insert records to the Monitoring system. It always try to insert the records directly. In case of failure the monitoring client is used…

DIRAC.MonitoringSystem.Client.ServerUtils.getDBOrClient(DB, serverName)

Tries to instantiate the DB object and returns it if we manage to connect to the DB, otherwise returns a Client of the server