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