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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
reasoner_type | STRING | Reasoner type (for example, 'predictive'). |
job_id | STRING | Job ID. |
continuation_token | STRING or NULL | Continuation token for paging. Pass NULL for the first request. |
Returns
Section titled “Returns”OBJECT
Example
Section titled “Example”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');