The event resource describes the payload of requests sent to your webhook receiver. The API keeps a record of previously sent events which you can query for through the standard resource interface.
The API will attempt to deliver events to your webhook receiver up to 5 times over the course of a few hours.
||Resource type identifier.|
||string||The type of resource this event relates to. Most often, this will be
||string||The action that occurred which lead to this event being sent, i.e.
||nested resource||The resource instance the event is related to.|
||int||The number of times the API has retried delivery of the event.|
||datetime||When the resource was created.|
||datetime||When the event was delivered to your webhook receiver.|
session.expired: the session has been marked as expired.
poll.created: the poll has been created.
poll.completed: the poll has finished processing and all results have been published.
task.created: the poll sub-task has been created.
task.succeeded: the poll sub-task has completed successfully.
task.failed: the poll sub-task encountered an error.
action attribute describes the change that occurred to the resource, such as
The data field will contain the entirety of the resource related to the event. This includes the resource attributes nested.
- The event is still in the process of being delivered.
- The event has been received by a webhook receiver.
- The event could not be delivered after retries.
curl https://ricloud-api.reincubate.com/events/<event ID> \ -H 'Authorization: Token <your key_token>'
import ricloud event = ricloud.Event.retrieve(<event ID>)
||string||Filter by event type.|
||string||Filter by event action.|
||string||Filter by event state.|
||datetime filter||Filter by resource creation datetime.|
||datetime filter||Filter by event delivery datetime.|
curl https://ricloud-api.reincubate.com/events \ -H 'Authorization: Token <your key_token>'
import ricloud polls = ricloud.Event.list()