Skip to content

Sequence Events Feed

cavalle edited this page Dec 4, 2012 · 31 revisions

Introduction

In order to track changes in resources, a client of the Sequence API can use the events feed.

Each event in the feed represents a change on a specified resource (subject) at specified time (timestamp). There are four types of possible events (event-type) per resource: the creation of the resource ({resource}_created), the modification of any attribute or link of the resource ({resource}_updated) and the deletion of the resource ({resource}_deleted).

This is an example of the XML representation of the event feed:

<events type="array">
  <event>
    <id type="integer">40393</id>
    <event-type>job_created</event-type>
    <timestamp type="datetime">2012-12-03T09:35:37+00:00</timestamp>
    <link href="https://sequence/api/work_areas/85/jobs/97185" rel="subject"/>
  </event>
  <event>
    <id type="integer">40397</id>
    <event-type>asset_updated</event-type>
    <changes>status,name</changes>
    <timestamp type="datetime">2012-12-03T09:35:39+00:00</timestamp>
    <link href="https://sequence/api/work_areas/85/jobs/97185/assets/467237" rel="subject"/>
  </event>
  <event>
    <id type="integer">40401</id>
    <event-type>task_destroyed</event-type>
    <timestamp type="datetime">2012-12-04T14:46:55+00:00</timestamp>
    <link href="https://sequence/api/work_areas/85/jobs/97144/tasks/3030" rel="subject"/>
  </event>
</events>
Clone this wiki locally