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. Use the continuation_token to page through results. Requires the all_schema_ro application role.

NameTypeDescription
reasoner_typeSTRINGReasoner type (for example, 'predictive').
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');