Skip to main content
GitHub source

class RunStateFilter

Represents a filter for triggering events based on changes in run states.

method RunStateFilter.__init__

__init__(
    run: 'And | Or | Nor | Not | Lt | Gt | Lte | Gte | Eq | Ne | In | NotIn | Exists | Regex | Contains | FilterExpr | dict[str, Any]' = And(()),
    state: 'StateFilter'
) → None
Args:
  • run (Union[And, Or, Nor, Not, Lt, Gt, Lte, Gte, Eq, Ne, In, NotIn, Exists, Regex, Contains, FilterExpr, Dict[str, Any]]): Filters that must match any runs that will trigger this event.
  • state (StateFilter): Run state condition(s) that must be satisfied for this event to trigger.
Returns: An RunStateFilter object.