def __init__(self, conf, logger, redis_client):
        self.conf = conf
        self.logger = logger
        self.rc = redis_client
        self.service_keys = {}
        for e in conf.keys():
            if (e.startswith("pagerduty_") and e.endswith("_id")):
                pagerduty_id = int(conf[e])
                pagerduty_key = conf[e.replace("_id", "_key")]
                self.service_keys[pagerduty_id] = pagerduty_key
        if len(self.service_keys) < 1:
            raise Exception('No pagerduty service keys found in conf')
        self.url = conf.get('pagerduty_url', 'https://events.pagerduty.com/generic/2010-04-15/create_event.json')
        self.prefix = conf.get('pagerduty_incident_key_prefix', "")
dataset/ETHPy150Open pandemicsyn/stalker/stalkeragent/stalkeragent/stalker_notifications.py/PagerDuty.__init__/original