Skip to content

get_job_events()

relationalai.api
get_job_events(reasoner_type STRING, job_id STRING, continuation_token STRING)

A function that retrieves event data for a job on a predictive or prescriptive reasoner. Use the continuation_token to page through results. Logic reasoners use the transaction APIs instead. Requires the all_schema_ro application role.

NameTypeDescription
reasoner_typeSTRINGReasoner type. Supported values are 'predictive' and 'prescriptive'.
job_idSTRINGJob ID.
continuation_tokenSTRING or NULLContinuation token for paging. Pass NULL for the first request.

OBJECT

Get the first page of events for a job:

SELECT relationalai.api.get_job_events('predictive', 'abc123', NULL);

Get the next page of events:

SELECT relationalai.api.get_job_events('predictive', 'abc123', 'continuation_token_here');