(self, clock)
Create the initial structs for cache
Create the initial structs for cache
Create the initial structs for cache
def __init__(self, clock):
        """
        Create the initial structs for cache
        """
        current_time_milliseconds = int(1000 * clock.seconds())

        self.entities = collections.OrderedDict()
        self.notifications = collections.OrderedDict(
            [(u'ntTechnicalContactsEmail',
              Notification(id=u'ntTechnicalContactsEmail',
                           label=u'Email All Technical Contacts',
                           created_at=current_time_milliseconds,
                           updated_at=current_time_milliseconds,
                           type=u'technicalContactsEmail'))])
        self.notification_plans = collections.OrderedDict(
            [(u'npTechnicalContactsEmail',
              NotificationPlan(id=u'npTechnicalContactsEmail',
                               label=u'Technical Contacts - Email',
                               created_at=current_time_milliseconds,
                               updated_at=current_time_milliseconds))])
        self.notificationtypes_list = [{'id': 'webhook', 'fields': [{'name': 'url',
                                                                     'optional': False,
                                                                     'description': 'An HTTP or \
                                                                      HTTPS URL to POST to'}]},
                                       {'id': 'email', 'fields': [{'name': 'address',
                                                                   'optional': False,
                                                                   'description': 'Email \
                                                                    address to send notifications to'}]},
                                       {'id': 'pagerduty', 'fields': [{'name': 'service_key',
                                                                       'optional': False,
                                                                       'description': 'The PagerDuty \
                                                                        service key to use.'}]},
                                       {'id': 'sms', 'fields': [{'name': 'phone_number',
                                                                 'optional': False,
                                                                 'description': 'Phone number to send \
                                                                  the notification to, \
                                                                  with leading + and country \
                                                                  code (E.164 format)'}]}]
        self.suppressions = collections.OrderedDict()
        self.audits_list = []
        self.maas_store = MaasStore(clock)
        self.test_alarm_responses = {}
        self.test_alarm_errors = {}
def __init__ ( self , clock ) : current_time_milliseconds = int ( 1000 * clock . seconds ( ) ) self . entities = collections . OrderedDict ( ) self . notifications = collections . OrderedDict ( [ ( u'ntTechnicalContactsEmail' , Notification ( id = u'ntTechnicalContactsEmail' , label = u'Email All Technical Contacts' , created_at = current_time_milliseconds , updated_at = current_time_milliseconds , type = u'technicalContactsEmail' ) ) ] ) self . notification_plans = collections . OrderedDict ( [ ( u'npTechnicalContactsEmail' , NotificationPlan ( id = u'npTechnicalContactsEmail' , label = u'Technical Contacts - Email' , created_at = current_time_milliseconds , updated_at = current_time_milliseconds ) ) ] ) self . notificationtypes_list = [ { 'id' : 'webhook' , 'fields' : [ { 'name' : 'url' , 'optional' : False , 'description' : 'An HTTP or \
                                                                      HTTPS URL to POST to' } ] } , { 'id' : 'email' , 'fields' : [ { 'name' : 'address' , 'optional' : False , 'description' : 'Email \
                                                                    address to send notifications to' } ] } , { 'id' : 'pagerduty' , 'fields' : [ { 'name' : 'service_key' , 'optional' : False , 'description' : 'The PagerDuty \
                                                                        service key to use.' } ] } , { 'id' : 'sms' , 'fields' : [ { 'name' : 'phone_number' , 'optional' : False , 'description' : 'Phone number to send \
                                                                  the notification to, \
                                                                  with leading + and country \
                                                                  code (E.164 format)' } ] } ] self . suppressions = collections . OrderedDict ( ) self . audits_list = [ ] self . maas_store = MaasStore ( clock ) self . test_alarm_responses = { } self . test_alarm_errors = { }