Ejemplo n.º 1
0
 def getCheckConfigFromURI(self, uri):
     type = getTypeFromURI(uri)
     uri = uri.split('://')[1]
     checks = getattr(self.services, type).checks
     for check in checks:
         if check.uri == uri:
             return check
Ejemplo n.º 2
0
 def getCheckConfigFromURI(self, uri):
     type = getTypeFromURI(uri)
     svc = self.getServiceConfigFromURI(uri)
     uri = uri.split('://')[1]
     for check in svc.checks:
         if check.uri == uri:
             return check
Ejemplo n.º 3
0
 def getServiceConfigFromURI(self, uri):
     type = getTypeFromURI(uri)
     uri = uri.split('://')[1]
     return getattr(self.services, type)
Ejemplo n.º 4
0
 def getDefaultsFromURI(self, uri):
     type = getTypeFromURI(uri)
     uri = uri.split('://')[1]
     return getattr(self.services, type).defaults
Ejemplo n.º 5
0
 def getDefaultsFromURI(self, uri):
     type = getTypeFromURI(uri)
     svc = self.getServiceConfigFromURI(uri)
     return getattr(svc, '%s_defaults' % type)