メインコンテンツへスキップ

Events

公開日: 2019年6月27日· 更新日: 2020年5月13日

Cover image for: Events

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.

Attributes

nametypedescription
idstringResource identifier.
resourcestring, always eventResource type identifier.
typestringThe type of resource this event relates to. Most often, this will be task.
actionstringThe action that occurred which lead to this event being sent, i.e. completed.
datanested resourceThe resource instance the event is related to.
statestringOne of: pending, delivered, failed.
retriesintThe number of times the API has retried delivery of the event.
date_createddatetimeWhen the resource was created.
date_delivereddatetimeWhen the event was delivered to your webhook receiver.

Types

  • 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.

Actions

An event's action attribute describes the change that occurred to the resource, such as created, succeeded or failed.

Data

The data field will contain the entirety of the resource related to the event. This includes the resource attributes nested.

States

pending : The event is still in the process of being delivered.

delivered : The event has been received by a webhook receiver.

failed : The event could not be delivered after retries.

Retrieve GET /events/{event ID}

Using cURL

curl https://ricloud-api.reincubate.com/events/<event ID> \
  -H 'Authorization: Token <your key_token>'

Using ricloud-py

import ricloud

event = ricloud.Event.retrieve(<event ID>)

List GET /events

nametypedescription
typestringFilter by event type.
actionstringFilter by event action.
statestringFilter by event state.
date_createddatetime filterFilter by resource creation datetime.
date_delivereddatetime filterFilter by event delivery datetime.

Using cURL

curl https://ricloud-api.reincubate.com/events \
  -H 'Authorization: Token <your key_token>'

Using ricloud-py

import ricloud

polls = ricloud.Event.list()

関連記事

お困りですか?

すべてのお問い合わせに1営業日以内に返信するよう努めています。

support@reincubate.com
King's Award for Enterprise のロゴ

King's Award for Enterprise:Reincubate は英国最高峰の公式ビジネス表彰を4度受賞しており、直近では過去3年間にわたる同社の卓越した成長が評価されました。

ユーザーやパートナーとの関係は、私たちの価値観と開発する製品の中心にあります。レビュー をご覧いただき、皆さまの声をお聞きください。

Centre for Assessment による ISO 27001 認証取得、UKAS 認定

© 2008-2026 Reincubate Ltd. 無断複写・転載を禁じます。イングランドおよびウェールズ登記番号 5189175、VAT 番号 GB151788978。Camo®、Streamlight®、Reincubate® は登録商標です。特許出願中。

ヘルプ