(self, request, tenant_id)
return json.dumps({'values': [nt.to_json() for nt in notifications.values()],
                           'metadata': metadata})
Get notification targets
Get notification targets
Get notification targets
def get_notifications(self, request, tenant_id):
        """
        Get notification targets
        """
        notifications = self._entity_cache_for_tenant(tenant_id).notifications
        metadata = {'count': len(notifications),
                    'limit': 100,
                    'marker': None,
                    'next_marker': None,
                    'next_href': None}
        request.setResponseCode(200)
        return json.dumps({'values': [nt.to_json() for nt in notifications.values()],
                           'metadata': metadata})
def get_notifications ( self , request , tenant_id ) : notifications = self . _entity_cache_for_tenant ( tenant_id ) . notifications metadata = { 'count' : len ( notifications ) , 'limit' : 100 , 'marker' : None , 'next_marker' : None , 'next_href' : None } request . setResponseCode ( 200 ) return json . dumps ( { 'values' : [ nt . to_json ( ) for nt in notifications . values ( ) ] , 'metadata' : metadata } )