def __init__(self, **kwargs): ProcessStateMonitor.__init__(self, **kwargs) logging.debug('location of cert = %s ', kwargs['cert']) self.zulip_client = zulip.Client( email=kwargs['user'], site=kwargs['hostname'], api_key=kwargs['key'], client="SuperZulip/" + VERSION, insecure='false', cert_bundle=kwargs['cert']) sys.path.append(kwargs['api']) self.stream = kwargs['stream'] self.subject = kwargs['subject'] self.now = kwargs.get('now', None)
def __init__(self, **kwargs): ProcessStateMonitor.__init__(self, **kwargs) self.token = kwargs['token'] self.channel = kwargs['channel'] self.now = kwargs.get('now', None) self.hostname = kwargs.get('hostname', None)