client.jobs.list_runs_logs

A method of the Jobs endpoint.

list_runs_logs(id: int, run_id: int, *, last_id: int = None, limit: int = None) ListResponse

Get the logs for a run

API URL: GET /jobs/{id}/runs/{run_id}/logs

import civis
client = civis.APIClient()
response = client.jobs.list_runs_logs(...)
Parameters:
idint

The ID of the job job.

run_idint

The ID of the run.

last_idint, optional

The ID of the last log message received. Log entries with this ID value or lower will be omitted.Logs are sorted by ID if this value is provided, and are otherwise sorted by createdAt.

limitint, optional

The maximum number of log messages to return. Default of 10000.

Returns:
civis.ListResponse
  • idint

    The ID of the log.

  • created_atstr (date-time)

    The time the log was created.

  • messagestr

    The log message.

  • levelstr

    The level of the log. One of unknown,fatal,error,warn,info,debug.