Recent site activity

Events

Fetching Events

Syntax

GET /eventengine/events.xml?[parameters]

Input

Name Format Example
searchsee EventEngine Search Manual 
changed_sinceYYYY-MM-DDTHH:MM:SS+Timezone2009-12-25T12:22:22+12:00

Output

 NameDescription 
idAn integer that uniquely idenfitifies the event
sourceThe source of the event. At the moment this is always "asset" 
source_idThe id of the asset that caused the caused the event. For example the FleetID of the vehicle that caused the event
levelThe severity level of the event
description 
start_timeThe date/time when the event started
end_timeThe date/time when the event finished 
durationThe duration of the event in seconds
distanceThe distance of the event in metres
rule_config_nameThe type of activity 
effective_at 
geomA space separated list of latitudes and longitudes that describe the path taken by the vehicle during the event  
start_location_nameThe name of the geofence where the event started
end_location_nameThe name of the geofence where the event ended
updated_at
created_at 

Example
GET http://demo.visfleet.com/eventengine/events?search=hamilton+idling

<events>
  <event> 
    <id>556263</id>
    <source>asset</source>
    <source_id>316</source_id>
    <level>1</level>
    <title>Vehicle 316 Idling</title>
    <description>Vehicle 316 Idling...</description>
    <start_time>2009-06-26T00:21:43Z</start_time>
    <end_time>2009-06-26T00:21:54Z</end_time>
    <duration>11.0</duration>
    <distance>0.0</distance>
    <rule_config_name>idling</rule_config_name>
    <effective_at>2009-06-26T12:21:43+12:00</effective_at>
    <geom>174.78277,-41.29546 174.78277,-41.29546</geom>
    <start_location_name></start_location_name>
    <end_location_name></end_location_name>
    <start_street_address></start_street_address>
    <end_street_address></end_street_address>
    <updated_at>2009-06-26T12:22:26+12:00</updated_at>
    <created_at>2009-06-26T12:22:26+12:00</created_at>
  </event>
  ...
</events>