aind_behavior_experiment_launcher.resource_monitor.resource_monitor_service.Constraint

class aind_behavior_experiment_launcher.resource_monitor.resource_monitor_service.Constraint(name: 'str', constraint: 'Callable[..., bool]', args: 'List' = <factory>, kwargs: 'dict' = <factory>, fail_msg_handler: 'Optional[Callable[..., str]]' = None)[source]

Bases: object

__init__(name: str, constraint: ~typing.Callable[[...], bool], args: ~typing.List = <factory>, kwargs: dict = <factory>, fail_msg_handler: ~typing.Callable[[...], str] | None = None) None[source]

Methods

__init__(name, constraint[, args, kwargs, ...])

on_fail()

Attributes

fail_msg_handler

name

constraint

args

kwargs