Namespace tao.items.EventTracer
tao.items
Defined in: events.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
the list of attributes to be catched
|
|
The parameters defining how and where to send the events
|
|
array of events arrays
|
|
the list of events to be catched
|
|
array of strings
|
|
<static> |
tao.items.EventTracer.options
|
The tracer common options
|
|
The parameters defining how and where to load the events list to catch
|
Method Attributes | Method Name and Description |
---|---|
bind platform events
|
|
describeElement(e, pload)
set all information from the target dom element to the pLoad
|
|
describeEvent(e, pload)
set all information from the event to the pLoad
|
|
eventStation(e)
controler that send events to feedtrace
|
|
feedTrace(target_tag, event_type, pLoad, pLoad)
in the API to allow the unit creator to send events himself to the event log record events of interaction between interviewee and the test
|
|
hooks(e)
return true if the event passed is a business event
|
|
the request took too much time, we increase the size of traces package, to have less frequent requests
|
|
initDestinationService(environment)
Initialize the service interface forthe destination service:
how and where we send the catched events
|
|
initSourceService(environment)
Initialize the service interface for the source service:
how and where we retrieve the events to catch
|
|
prepare one block of stored traces for being sent
|
|
the request was fast enough, we increase the frequency of requests by reducing the size of traces package
|
|
send all traces with a blocking function
|
|
send one block of traces (non blocking)
Does send the content of eventsToBeSend[0] to the server
|
|
sendFeedTraceFail(xhr, errorString, exception, events)
callback function after request failed (TODO)
|
|
sendFeedTraceSucceed(data, textStatus, sent_timeStamp)
success callback after traces sent.
|
|
setEventParameters(e, pload)
set wanted information from the event to the pLoad
|
|
setEventsToCatch(data)
record events of interaction between interviewee and the test
|
|
unbind platform events
|
Field Detail
ATTRIBUTES_TO_CATCH
the list of attributes to be catched
destinationService
The parameters defining how and where to send the events
eventPool
array of events arrays
EVENTS_TO_CATCH
the list of events to be catched
eventsToBeSend
array of strings
<static>
{Object}
tao.items.EventTracer.options
opts
The tracer common options
sourceService
The parameters defining how and where to load the events list to catch
Method Detail
bind_platform()
bind platform events
describeElement(e, pload)
set all information from the target dom element to the pLoad
- Parameters:
- {event} e
- dom event triggered
- {Object} pload
- callback function called when 'ok' clicked
describeEvent(e, pload)
set all information from the event to the pLoad
- Parameters:
- {event} e
- dom event triggered
- {Object} pload
- callback function called when 'ok' clicked
eventStation(e)
controler that send events to feedtrace
- Parameters:
- {event} e
- dom event triggered
feedTrace(target_tag, event_type, pLoad, pLoad)
in the API to allow the unit creator to send events himself to the event log record events of interaction between interviewee and the test
feedTrace('BUSINESS','start_drawing',getGlobalTime(), {'unitTime':getUnitTime()});
- Parameters:
- {String} target_tag
- element type receiving the event.
- {String} event_type
- type of event being catched
- {Object} pLoad
- object containing various information about the event. you may put whatever you need in it.
- pLoad
{boolean}
hooks(e)
return true if the event passed is a business event
- Parameters:
- {event} e
- dom event triggered
- Returns:
- {boolean}
increaseEventsPoolSize()
the request took too much time, we increase the size of traces package, to have less frequent requests
initDestinationService(environment)
Initialize the service interface forthe destination service:
how and where we send the catched events
- Parameters:
- {Object} environment
initSourceService(environment)
Initialize the service interface for the source service:
how and where we retrieve the events to catch
- Parameters:
- {Object} environment
prepareFeedTrace()
prepare one block of stored traces for being sent
reduceEventsPoolSize()
the request was fast enough, we increase the frequency of requests by reducing the size of traces package
sendAllFeedTrace_now()
send all traces with a blocking function
sendFeedTrace()
send one block of traces (non blocking)
Does send the content of eventsToBeSend[0] to the server
sendFeedTraceFail(xhr, errorString, exception, events)
callback function after request failed (TODO)
- Parameters:
- {ressource} xhr
- ajax request ressource
- {String} errorString
- error message
- {exception} exception Optional
- exception object thrown
- events
sendFeedTraceSucceed(data, textStatus, sent_timeStamp)
success callback after traces sent. does affinate the size of traces package sent
- Parameters:
- {String} data
- response from server
- {String} textStatus
- status of request
- {int} sent_timeStamp
- time the request was sent
setEventParameters(e, pload)
set wanted information from the event to the pLoad
- Parameters:
- {event} e
- dom event triggered
- {Object} pload
- callback function called when 'ok' clicked
{Object}
setEventsToCatch(data)
record events of interaction between interviewee and the test
- Parameters:
- {Object} data
- event type list
- Returns:
- {Object} the events to catch
unbind_platform()
unbind platform events