code: def createMonitor(self, callback=None, errback=None, **kwargs):
          
          import ns1.monitoring
          monitor = ns1.monitoring.Monitor(self.config)
          return monitor.create(callback=callback, errback=errback, **kwargs)
docs: Create a monitor