Skip to content

Filters

RebatchFilters

Bases: BaseJobFilters

Class to provide filters for querying jobs to re-create.

Setting a value for any attribute of this class will add a filter to the query.

When using several filters at the same time, the API will return elements who pass all filters at the same time: - If the filter value is a single element, the API will return jobs whose attribute matches the provided value. - If the filter value is a list, the API will return jobs whose value for this attribute is contained in that list.

ATTRIBUTE DESCRIPTION
id

Filter by job IDs

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

status

Filter by job statuses,

TYPE: Optional[Union[List[JobStatus], JobStatus]]

min_runs

Minimum number of runs.

TYPE: Optional[int]

max_runs

Maximum number of runs.

TYPE: Optional[int]

start_date

Jobs created at or after this datetime.

TYPE: Optional[datetime]

end_date

Jobs created at or before this datetime.

TYPE: Optional[datetime]

CancelJobFilters

Bases: BaseJobFilters

Class to provide filters for cancelling a group of jobs.

Setting a value for any attribute of this class will add a filter to the query.

When using several filters at the same time, the API will return elements who pass all filters at the same time: - If the filter value is a single element, the API will return jobs whose attribute matches the provided value. - If the filter value is a list, the API will return jobs whose value for this attribute is contained in that list.

ATTRIBUTE DESCRIPTION
id

Filter by job IDs

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

min_runs

Minimum number of runs.

TYPE: Optional[int]

max_runs

Maximum number of runs.

TYPE: Optional[int]

start_date

Jobs created at or after this datetime.

TYPE: Optional[datetime]

end_date

Jobs created at or before this datetime.

TYPE: Optional[datetime]

JobFilters

Bases: BaseJobFilters

Class to provide filters for querying jobs.

Setting a value for any attribute of this class will add a filter to the query.

When using several filters at the same time, the API will return elements who pass all filters at the same time: - If the filter value is a single element, the API will return jobs whose attribute matches the provided value. - If the filter value is a list, the API will return jobs whose value for this attribute is contained in that list.

ATTRIBUTE DESCRIPTION
id

Filter by job IDs.

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

project_id

Filter by project IDs.

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

user_id

Filter by user IDs.

TYPE: Optional[Union[List[str], str]]

batch_id

Filter by batch IDs.

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

status

Filter by job statuses.

TYPE: Optional[Union[List[JobStatus], JobStatus]]

min_runs

Minimum number of runs.

TYPE: Optional[int]

max_runs

Maximum number of runs.

TYPE: Optional[int]

errors

Filter by presence of errors.

TYPE: Optional[bool]

start_date

Jobs created at or after this datetime.

TYPE: Optional[datetime]

end_date

Jobs created at or before this datetime.

TYPE: Optional[datetime]

BatchFilters

Bases: BaseFilters

Class to provide filters for querying batches.

Setting a value for any attribute of this class will add a filter to the query.

When using several filters at the same time, the API will return elements who pass all filters at the same time: - If the filter value is a single element, the API will return batches whose attribute matches the provided value. - If the filter value is a list, the API will return batches whose value for this attribute is contained in that list.

ATTRIBUTE DESCRIPTION
id

Filter by batch IDs.

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

project_id

Filter by project IDs.

TYPE: Optional[Union[List[Union[UUID, str]], Union[UUID, str]]]

user_id

Filter by user IDs.

TYPE: Optional[Union[List[str], str]]

device_type

Filter by device type.

TYPE: Optional[Union[List[str], str]]

status

Filter by batch statuses.

TYPE: Optional[Union[List[BatchStatus], BatchStatus]]

open

If the batch accepts more jobs or not.

TYPE: Optional[bool]

start_date

Batches created at or after this datetime.

TYPE: Optional[datetime]

end_date

Batches created at or before this datetime.

TYPE: Optional[datetime]

queue_priority

Filter by queue priority value.

TYPE: Optional[Union[List[QueuePriority], QueuePriority]]

tag

Filter by a specific tag.

TYPE: Optional[str]

PaginationParams

Bases: BaseModel

Class providing parameters for paginating query results.

ATTRIBUTE DESCRIPTION
offset

The starting index of the items to return (must be 0 or greater).

TYPE: int

limit

The maximum number of items to return (must be greater than 0 and less than or equal to 100).

TYPE: int