List job logs
- async AsyncCogniteClient.hosted_extractors.jobs.list_logs(
- job: str | None = None,
- source: str | None = None,
- destination: str | None = None,
- limit: int | None = 25,
-
- Parameters:
job (str | None) – Require returned logs to belong to the job given by this external ID.
source (str | None) – Require returned logs to belong to the any job with source given by this external ID.
destination (str | None) – Require returned logs to belong to the any job with destination given by this external ID.
limit (int | None) – Maximum number of logs to return. Defaults to 25. Set to -1, float(“inf”) or None to return all items.
- Returns:
List of requested job logs
- Return type:
JobLogsList
Examples
Reqests logs for a specific job:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> res = client.hosted_extractors.jobs.list_logs(job="myJob")