wallaroo.assays_v2.assay_v2


This module features the AssayV2 class that configures assays and retrieves results via the MLOps API.

class AssayV2(wallaroo.object.Object):

This class helps configure assays and retrieve results via the MLOps API.

Attributes: - id: The ID of the assay.

AssayV2(client: Optional[wallaroo.client.Client], id: str)

Initializes the AssayV2 object.

def results( self, start: datetime.datetime, end: datetime.datetime, include_failures: bool = False, workspace_id: Optional[int] = None) -> wallaroo.assays_v2.assay_result_v2.AssayResultsList:

Retrieves the results of the assay.

Parameters
  • start: The start time.
  • end: The end time.
  • include_failures: Whether to include failures.
  • workspace_id: The workspace ID.
Returns

The assay results.

def set_active(self, active: bool) -> wallaroo.assays_v2.assay_v2.AssayV2:

Sets the active status of the assay.

Parameters
  • active: Whether the assay is active.
Returns

The AssayV2 object.

Pauses an assay. Note: this only pauses future scheduled runs - historical calculations will still be computed.

Resumes a previously-paused assay.

@staticmethod
def builder( client: wallaroo.client.Client, pipeline_id, pipeline_name: str, workspace_id: int) -> wallaroo.assays_v2.assay_v2_builder.AssayV2Builder:

Return an AssayV2Builder.

Parameters
  • client: The client object.
  • pipeline_name: The name of the pipeline.
  • workspace_id: The workspace id.
Returns

The AssayV2Builder object.

class AssayV2List(typing.List[wallaroo.assays_v2.assay_v2.AssayV2]):

This class represents a list of assays.

Inherited Members
builtins.list
list
clear
copy
append
insert
extend
pop
remove
index
count
reverse
sort