OnRunMetric

class OnRunMetric

A run metric satisfies a user-defined condition.

method OnRunMetric.__init__

__init__(
    event_type: 'Literal[RUN_METRIC_THRESHOLD, RUN_METRIC_CHANGE]',
    scope: 'ProjectScope',
    filter: 'RunMetricFilter'
)  None

Args:

  • event_type (Literal[RUN_METRIC_THRESHOLD, RUN_METRIC_CHANGE]):
  • scope (ProjectScope): The scope of the event: only projects are valid scopes for this event.
  • filter (RunMetricFilter): Run and/or metric condition(s) that must be satisfied for this event to trigger an automation.

Returns: An OnRunMetric object.