Glance

Take a watch on all request or matched controller

Configure


host: {
   application_name:{
         glance:{
            flag:true,
            http:[],                 
            ajax:[],
            socket:[]
         }
    }
 }
               

flag

To set watch on request require set flag : true

http

Watch on every regular http request in array of object


http:[
  {"*":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
  {"controller-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
          
Rule

Watch on every http request to pass key with * or pass controller name

entry

Watch http request while it is come

exit

Watch http request before http response sending to client

scripts

Pass array of script need to be called on http request entry or exit point

ajax

Watch on every regular ajax request in array of object


ajax:[
  {"*":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
  {"controller-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
          
Rule

Watch on every ajax request to pass key with * or pass controller name

entry

Watch ajax request while it is come

exit

Watch ajax request before ajax response sending to client

scripts

Pass array of script need to be called on ajax request entry or exit point

socket

Watch on every regular socket request in array of object


socket:[
  {"*": { entry:true , exit:true , scripts:["script-name-1","script-name-1"] } },
  {"model-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
          
Rule

Watch on every socket request to pass key with * or pass model-name

entry

Watch http request while it is come

exit

Watch http request before socket response sending to client

scripts

Pass array of script need to be called on http request entry or exit point