Skip to main content
GitHub source

class OnRunMetric

A run metric satisfies a user-defined condition. Examples: Define an event that triggers for any run in project “my-project” when the average of the last 5 values of metric “my-metric” exceeds 123.45:

method OnRunMetric.__init__

Args:
  • event_type (Literal[RUN_METRIC_THRESHOLD, RUN_METRIC_CHANGE, RUN_METRIC_ZSCORE]):
  • scope (ProjectScope): The scope of the event: must be a project.
  • filter (RunMetricFilter): Run and/or metric condition(s) that must be satisfied for this event to trigger.
Returns: An OnRunMetric object.