본문으로 건너뛰기
Reincubate

Results

게시일: 2019년 6월 27일· 업데이트: 2020년 3월 9일

Cover image for: Results

A result is a record of data or a file that has been published to a storage bucket. It contains the information necessary to retrieve this data from its storage location.

Attributes

nametypedescription
idresult IDResource identifier.
resourcestring, always resultResource type specifier.
organisationorganisation IDThe organisation associated with this resource.
pollpoll IDThe poll the result is associated with.
tasktask IDThe task the result is associated with.
identifierstringAn identifier for the contents of the published data.
urlstringThe storage config url this result was published to.
typeoptional stringThe file type, if identifiable.
checksumstringThe md5 checksum of the stored data.
sizeintThe size of the published data, in bytes.
signed_urloptional dictionaryPopulated with signed URL details if enabled on the storage config in use.
statestringOne of: available, consumed, expired.
date_createddatetimeWhen the resource was created.
date_consumeddatetimeWhen the result was acknowledged as consumed.
date_deleteddatetimeWhen the result was removed from the storage location by the API.

Signed URLs

If signed URL generation is enabled on the storage config used to publish the result, the signed_url will be set to a dictionary with the format:

{
  "url": "<signed URL value here>",
  "date_expires": "2020-02-29T11:59:15.110451Z"
}

The date_expires attribute indicates when the signed URL will cease to be valid. After this date, the result's signed_url attribute will be set to null.

See more details on configuring signed URLs in the storage config docs.

States

available : The result is ready to be downloaded from the bucket.

consumed : The result has been downloaded and the API has been informed.

expired : The result has been deleted from the bucket by a scheduled cleanup. This state does not apply to client-owned buckets.

Retrieve GET /results/{result ID}

Using cURL

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

Using ricloud-py

import ricloud

results = ricloud.Result.retrieve(<result ID>)

List GET /results

Results in the states consumed or expired do not appear in the list by default.

Parameters

nametypedescription
pollpoll IDFilter by the associated poll.
tasktask IDFilter by the associated task.
identifierstringFilter by the result identifier.
checksumstringFilter by the result checksum.
statestringFilter by the result state.
date_createddatetime filterFilter by when the resource was created.
date_consumeddatetime filterFilter by when the result was marked as consumed.
date_deleteddatetime filterFilter by when the result was marked as deleted.

Using cURL

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

Using ricloud-py

import ricloud

results = ricloud.Result.list()

Acknowledge POST /results/{result ID}/ack

Acknowledge the result as having been consumed.

Using cURL

curl https://ricloud-api.reincubate.com/results/<result ID>/ack \
  -X POST \
  -H 'Authorization: Token <your key_token>'

Using ricloud-py

import ricloud

result = ricloud.Result.acknowledge_with_id(<result ID>)

# OR

result = ricloud.Result.retrieve(<result ID>)

result.acknowledge()

Batch acknowledge POST /results/ack

Acknowledge a batch of results as having been consumed.

The endpoint will not raise an error if any of the specified results have already been acknowledged or cannot be found.

nametypedescription
idslist of result IDsA list of IDs of the results to be acknowledged.

Using cURL

curl https://ricloud-api.reincubate.com/results/ack \
  -X POST \
  -H 'Authorization: Token <your key_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "ids": ["<result ID>", "<result ID>"]
}'

Changelog

2020-02-27

  • Adds the signed_url attribute to the result object. This is a nested dictionary containing the signed URL in the url attribute and when it expires in date_expires.
  • Adds the ability to acknowledge results in batches with the new POST /results/ack endpoint.

관련 문서

도움이 필요하신가요?

모든 문의에 영업일 기준 1일 이내에 답변드리도록 노력하고 있습니다.

support@reincubate.com
King's Award for Enterprise 로고

King's Award for Enterprise: Reincubate는 영국 최고의 공식 비즈니스 영예를 네 차례 수상했으며, 가장 최근에는 지난 3년간의 뛰어난 성장을 인정받았습니다.

사용자 및 파트너와의 관계는 우리의 가치와 우리가 만드는 제품의 핵심입니다. 리뷰을(를) 통해 그들의 이야기를 들어보세요.

Centre for Assessment의 ISO 27001 인증, UKAS 공인

© 2008-2026 Reincubate Ltd. 모든 권리 보유. 잉글랜드 및 웨일스 등록 번호 5189175, VAT 번호 GB151788978. Camo®, Streamlight® 및 Reincubate®는 등록 상표입니다. 특허 출원 중.

도움말